Data types, mutability and object identity Theory part 1
What We'll Learn
A quick overview of today's lecture
Data types, mutability and object identity Theory part 1
Concept ID: XI_U2_DATA_TYPES_MUTABILITY_IDENTITY.
Primary Sub-subtopic: Data types, mutability and object identity.
Question-bank grouping: Python Basics and Data Concepts.
Use this lecture for theory, examples, misconceptions, and short PYQ checks mapped to this concept ID.
Key things we'll cover
Data types, mutability and object identity
PYQ references used by all prompt types12 included0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
Included
ID 1154 · 2025 · 1 mark(s)
What shape represents a decision in a flowchart?
a) A diamond
b) A rectangle
c) An oval
d) None of these
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1228 · 2025 · 1 mark(s)
Consider the given expression:
not True and False or True
Which of the following will be correct output if the given expression is evaluated?
(a) True
(b) False
(c) NONE
(d) NULL
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1256 · 2025 · 1 mark(s)
An empty/null statement in Python is ……………….
(a) pass
(b) None
(c) Null
(d) break
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1298 · 2025 · 1 mark(s)
The ___________ statement forms the selection construct in Python.
A) for
B) while
C) if
D) None
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1439 · 2025 · 1 mark(s)
Assertion (A): Python allows dynamic typing of variables.
Reasoning (R): A variable in Python must be declared with a specific data type before assigning a value.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1468 · 2025 · 1 mark(s)
What is the output of the expression:
not (True or False)
(a) False
(b) True
(c) None
(d) Error
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1513 · 2025 · 1 mark(s)
What is the default value of an uninitialized variable in Python?
(a) False
(b) 0
(c) None
(d) Undefined
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1518 · 2025 · 1 mark(s)
What is the output of the following expression?
(30+ 7) * 3 > 15 and (9 * 2) <= 50
(a) True
(b) False
(c) Error
(d) None
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1594 · 2025 · 1 mark(s)
Consider the following statements:
a=0
b=10
c=b/a
The above code results in
a) Syntax Error
b) Logical Error
c) Runtime Error
d) None of the above
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1091 · 2025 · 2 mark(s)
Write a Python program that takes an integer as an input from the user and check whether a number is divisible by 3 and 5 both.
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1092 · 2025 · 2 mark(s)
Write a Python program that takes an integer input from the user and prints its table.
Python Basics and Data Concepts → Data types, mutability and object identity
Included
ID 1130 · 2025 · 2 mark(s)
What is output of the following code:
x=5
y=(5)
print(type(x))
print(type(y))
Python Basics and Data Concepts → Data types, mutability and object identity