Class 12 Python Revision Tour 1 Quiz

Preview



0%

Python Revision Tour 1 Quiz

1 / 26

Which of the following cannot be a variable ?

2 / 26

Which of the following is valid arithmetic operator in Python :

 

3 / 26

The  expression 8/4/2 will evaluate equivalent to which of the following expression :

4 / 26

The value of the expressions 4/(3*(4-2)) and 4/3*(4-2) is the same .

5 / 26

Which of the following expression results in an error ?

6 / 26

Which of the following operators can be used on numeric values ?

 

7 / 26

Which of these is not a core data type ?

8 / 26

Which among the following list of operators has the highest precedence ?

+, -, ** , % , / , << , >> |

9 / 26

In a nested loop, a break statement terminates all the nested loops in one go.

10 / 26

Only if statement has else clause in Python.

11 / 26

What is the value of x ?

x = int ( 13.25 + 4/2 )

12 / 26

String can be surrounded by three sets of single quotation marks or double quotation marks.

13 / 26

Which of the following is not a keyword ?

14 / 26

What will be the value of the expression ?

14 + 13 % 15

 

15 / 26

Which of the following statement prints the output as given below

hello \ dear \ friend

16 / 26

Which of the following is an invalid Variable ?

17 / 26

The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same .

18 / 26

Which of the following code  will give following  output ?

        Hello

       Dear

       Friend

 

 

19 / 26

How would you write xy  in Python as an expression ?

20 / 26

Evaluate the expression below

if A = 16 and  B = 15.

A % B / / A

21 / 26

The expressions 2**2**3 is evaluated as: (2**2)**3 .

22 / 26

The expression int(x) implies that the variable x is converted to integer

23 / 26

Loops in Python can also have else clause .

24 / 26

Variable is a placeholder for data in Python.

25 / 26

what  type of value does input ( ) return ?

26 / 26

Variable can be assigned only once in Python.



 

Lesson tags: python quiz for class 12
Back to: CBSE class 12 Computer Science notes