Only approved questions will enter the prompt. Questions repeated across selected lectures are automatically de-duplicated in the final prompt.
IncludedL41: Data types, mutability and object identity Theory part 12025 · 1 mark(s)
What shape represents a decision in a flowchart?
a) A diamond
b) A rectangle
c) An oval
d) None of these
IncludedL41: Data types, mutability and object identity Theory part 12025 · 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
IncludedL41: Data types, mutability and object identity Theory part 12025 · 1 mark(s)
An empty/null statement in Python is ……………….
(a) pass
(b) None
(c) Null
(d) break
IncludedL41: Data types, mutability and object identity Theory part 12025 · 1 mark(s)
The ___________ statement forms the selection construct in Python.
A) for
B) while
C) if
D) None
IncludedL41: Data types, mutability and object identity Theory part 12025 · 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.
IncludedL41: Data types, mutability and object identity Theory part 12025 · 1 mark(s)
What is the output of the expression:
not (True or False)
(a) False
(b) True
(c) None
(d) Error
IncludedL41: Data types, mutability and object identity Theory part 12025 · 1 mark(s)
What is the default value of an uninitialized variable in Python?
(a) False
(b) 0
(c) None
(d) Undefined
IncludedL41: Data types, mutability and object identity Theory part 12025 · 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
IncludedL41: Data types, mutability and object identity Theory part 12025 · 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
IncludedL41: Data types, mutability and object identity Theory part 12025 · 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.
IncludedL41: Data types, mutability and object identity Theory part 12025 · 2 mark(s)
Write a Python program that takes an integer input from the user and prints its table.
IncludedL41: Data types, mutability and object identity Theory part 12025 · 2 mark(s)
What is output of the following code:
x=5
y=(5)
print(type(x))
print(type(y))
Reset All Progress?
This will clear all Done and Missed marks and rebuild the schedule from scratch.
A backup will be created automatically before resetting. You can restore it from the Backups page.