MauryaHub PYQ Practice

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:
Source diagram or notation
What will be the output?
6406536343723.Source diagram or notation
6406536343724.Source diagram or notation
6406536343725.Source diagram or notation
6406536343726.Source diagram or notation

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:
Source diagram or notation
What will be the output?
6406536343727.Source diagram or notation
6406536343728.Source diagram or notation
6406536343729.Source diagram or notation
6406536343730.Source diagram or notation

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:
Source diagram or notation
What will be the output?
6406536343735.Source diagram or notation
6406536343736.Source diagram or notation
6406536343737.Source diagram or notation
6406536343738.Source diagram or notation

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:
Source diagram or notation
What will be the output?
6406536343731.Source diagram or notation
6406536343732.Source diagram or notation
6406536343733.Source diagram or notation
6406536343734.Source diagram or notation

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:
Source diagram or notation
Which of the following statements are true?
6406536343739.
The final value of
Source diagram or notation
is
Source diagram or notation
6406536343740.
The character
Source diagram or notation
increases
Source diagram or notation
by
Source diagram or notation
6406536343741.
The letter
Source diagram or notation
increases the value of
Source diagram or notation
by
Source diagram or notation
and the character
Source diagram or notation
increases
Source diagram or notation
by
Source diagram or notation
6406536343742.
The letter
Source diagram or notation
increases the value of
Source diagram or notation
by
Source diagram or notation
and the character
Source diagram or notation
increases
Source diagram or notation
by
Source diagram or notation

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:
Source diagram or notation
Which of the following statements are true?
6406536343743.
The output of the first
Source diagram or notation
statement is
Source diagram or notation
6406536343744.
The output of the second
Source diagram or notation
statement is
Source diagram or notation
6406536343745.
The default value of
Source diagram or notation
is used in the second function call
6406536343746.
The function
Source diagram or notation
returns two values as a tuple
6406536343747.
The output of the second
Source diagram or notation
statement is
Source diagram or notation

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?
Source diagram or notation

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?
Source diagram or notation

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:**
Source diagram or notation
:checks whether an object belongs to a given type or any of its subclasses.
Source diagram or notation

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?
Source diagram or notation

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:
Source diagram or notation
What is the value of
Source diagram or notation
after executing the given code?
6406536343752.Source diagram or notation
6406536343753.Source diagram or notation
6406536343754.Source diagram or notation
6406536343755.Source diagram or notation

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:
Source diagram or notation
In the given code, if we change the condition to
Source diagram or notation
instead of
Source diagram or notation
, what will be the value of
Source diagram or notation
?
6406536343756.Source diagram or notation
6406536343757.Source diagram or notation
6406536343758.Source diagram or notation
6406536343759.Source diagram or notation

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:
Source diagram or notation
What are the values of
Source diagram or notation
and
Source diagram or notation
after executing the given code?
6406536343760.Source diagram or notation
6406536343761.Source diagram or notation
6406536343762.Source diagram or notation
6406536343763.Source diagram or notation

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:
Source diagram or notation
Which of the following statements are true?
6406536343764.
Both
Source diagram or notation
and
Source diagram or notation
are substrings of
Source diagram or notation
6406536343765.
The expression
Source diagram or notation
evaluates to
Source diagram or notation
6406536343766.
The comparison ignores uppercase and lowercase letters
6406536343767.
The expression
Source diagram or notation
evaluates to
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15