CBSE Class 12 Python Revision & Practice Hub

Welcome to the Python Quiz (Class 12).

Time is up!
Your quiz has been submitted automatically.
Thank you for participating.


Quiz


CBSE PREVIOUS YEAR MCQ


Please continue and access the quiz.


Basic Data Types, Operators, Input / Output

1 / 50

What is the result of ’10’ + ’20’?

2 / 50

Which data type is immutable?

3 / 50

What is the output of print(type(1/2))?

4 / 50

Which logical operator returns True if at least one condition is true?

5 / 50

How do you write a multi-line comment string in Python?

6 / 50

Which method adds an element to the end of a list?

7 / 50

Which function gives the unique memory address of an object?

8 / 50

Which operator is used for addition in Python?

9 / 50

Which logical operator returns True only if both conditions are true?

10 / 50

Which escape character represents a new line?

11 / 50

Which brackets are used to define a tuple?

12 / 50

Which function is used to take input from the user?

13 / 50

How do you access the value associated with key ‘k’ in dict d?

14 / 50

What is the output of bool(1)?

15 / 50

What is the output of bool(0)?

16 / 50

What is the output of 5 + 2 * 3?

17 / 50

What is the output of 2 ** 3?

18 / 50

What is the file extension for Python files?

19 / 50

What is the output of print(10 // 3)?

20 / 50

What is int(3.9)?

21 / 50

Python is a ______ typed language.

22 / 50

Which logical operator reverses the boolean result?

23 / 50

Which operator checks if two variables point to the same object in memory?

24 / 50

Which operator checks if two values are equal?

25 / 50

What happens if you use a Python keyword as a variable name?

26 / 50

Which operator checks if a value exists inside a list?

27 / 50

Which symbol is used to assign a value to a variable?

28 / 50

Which keyword is used to define a function?

29 / 50

What sequence does range(3) generate?

30 / 50

Which parameter in print() changes the separator between arguments?

31 / 50

Which of these is an INVALID variable name?

32 / 50

What is the output of len(‘Python’)?

33 / 50

What is the result of 3 * ‘A’?

34 / 50

Which operator returns the remainder of a division?

35 / 50

Which brackets are used to define a list?

36 / 50

Which parameter in print() prevents a new line at the end?

37 / 50

Which operator represents ‘not equal to’?

38 / 50

If s = ‘Python’, what is s[0]?

39 / 50

Is Python case-sensitive?

40 / 50

Which of these is a valid boolean value in Python?

41 / 50

Which symbol is used for single-line comments?

42 / 50

If s = ‘Python’, what is s[-1]?

43 / 50

What is the return type of the input() function?

44 / 50

How do you start a formatted string (f-string)?

45 / 50

Which of these is a complex number in Python?

46 / 50

Which brackets are used to define a dictionary?

47 / 50

How do you convert the integer 5 to a float?

48 / 50

Which function is used to output text to the console?

49 / 50

Which function returns the data type of a variable?

50 / 50

Which data type stores decimal values?

Your score is

The average score is 44%

0%

Comments are closed.

Scroll to Top