Programming in Python · Quiz 1 · Jan 2026
Programming in Python · Quiz 1 · Jan 2026
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 14 published solutions
Question 2 MCQ · 3.0 marks
Consider the following code:

What will be the output?
6406536343723.
6406536343724.
6406536343725.
6406536343726.
A published solution is not available for this question yet.
Report a correction for Q2
Question 3 MCQ · 3.0 marks
Consider the following code:

What will be the output?
6406536343727.
6406536343728.
6406536343729.
6406536343730.
A published solution is not available for this question yet.
Report a correction for Q3
Question 4 MCQ · 3.0 marks
Consider the following Python code:

What will be the output?
6406536343735.
6406536343736.
6406536343737.
6406536343738.
A published solution is not available for this question yet.
Report a correction for Q4
Question 5 MCQ · 4.0 marks
Consider the following code:

What will be the output?
6406536343731.
6406536343732.
6406536343733.
6406536343734.
A published solution is not available for this question yet.
Report a correction for Q5
Question 6 MSQ · 4.0 marks
Consider the following Python code:

Which of the following statements are true?
6406536343739.The final value of

is
6406536343740.The character

increases

by
6406536343741.The letter

increases the value of

by

and the character

increases

by
6406536343742.The letter

increases the value of

by

and the character

increases

by

A published solution is not available for this question yet.
Report a correction for Q6
Question 7 MSQ · 4.0 marks
Consider the following Python code:

Which of the following statements are true?
6406536343743.The output of the first

statement is
6406536343744.The output of the second

statement is
6406536343745.The default value of

is used in the second function call
6406536343746.The function

returns two values as a tuple
6406536343747.The output of the second

statement is

A published solution is not available for this question yet.
Report a correction for Q7
Question 8 NAT · 4.0 marks
What is the output of the following snippet of code?

A published solution is not available for this question yet.
Report a correction for Q8
Question 9 NAT · 4.0 marks
Consider the following snippet of code. What will the output be?

A published solution is not available for this question yet.
Report a correction for Q9
Question 10 NAT · 4.0 marks
What is the output of the following snippet of code?
**Note:**

:checks whether an object belongs to a given type or any of
its subclasses.

A published solution is not available for this question yet.
Report a correction for Q10
Question 11 NAT · 3.0 marks
What is the output of the following snippet of code?

A published solution is not available for this question yet.
Report a correction for Q11
Question 12 MCQ · 4.0 marks
Consider the following snippet of code and answer the sub-questions:

What is the value of

after executing the given code?
6406536343752.
6406536343753.
6406536343754.
6406536343755.
A published solution is not available for this question yet.
Report a correction for Q12
Question 13 MCQ · 3.0 marks
Consider the following snippet of code and answer the sub-questions:

In the given code, if we change the condition to

instead of

, what will be the value of

?
6406536343756.
6406536343757.
6406536343758.
6406536343759.
A published solution is not available for this question yet.
Report a correction for Q13
Question 14 MCQ · 4.0 marks
Consider the following snippet of code and answer the sub-questions:

What are the values of

and

after executing the given code?
6406536343760.
6406536343761.
6406536343762.
6406536343763.
A published solution is not available for this question yet.
Report a correction for Q14
Question 15 MSQ · 3.0 marks
Consider the following snippet of code and answer the sub-questions:

Which of the following statements are true?
6406536343764.Both

and

are substrings of
6406536343765.The expression

evaluates to
6406536343766.The comparison ignores uppercase and lowercase letters
6406536343767.The expression

evaluates to

A published solution is not available for this question yet.
Report a correction for Q15