Class 12 Python Revision Tour 2 MCQ | Python Revision Tour 2 Class 12 Quiz

Preview

Class 12 Python Revision Tour 2 MCQ | Python Revision Tour 2 Class 12 Quiz



1
Created on By Lucky

Class 12 Python Revision Tour 2 Quiz

1 / 26

A dictionary can contain keys of any valid Python types.

2 / 26

For any index n, s[:n] will give you original string s .

3 / 26

A list of characters is similar to a string type .

4 / 26

The max ( ) and min ( ) when used with tuples, can work if elements of the tuple are all of the same type.

5 / 26

The clear ( ) removes all the elements of a dictionary but does not delete the empty dictionary .

6 / 26

You can combine a numeric value and a string by using the + symbol .

7 / 26

The keys of a dictionary must be of immutable types .

8 / 26

A given object may appear in a list more than once .

9 / 26

All elements in a list must be of the same type .

10 / 26

There is no conceptual limit to the size of a list

11 / 26

Do both the following represent the same list” .

[ ‘a’, ‘b’ , ‘c’ ]

[‘c’ , ‘a’ , ‘b’ ]

12 / 26

A list may contain any type of objects except another list .

13 / 26

Identify the valid declaration of L :

 L = [ 1, 23, ‘hi’, 6 ]

14 / 26

Which is the correct form of declaration of dictionary ?

15 / 26

Which line of code will cause an error ?

  1. num = [ 5 , 4 , 3 , [ 2 ] , 1 ]
  2. print (num [-3 ] )
  3. print (num[3] )
  4. print

16 / 26

What is the output of this code

> > > int( “3” + “4” )

17 / 26

Which line of code produces an error ?

18 / 26

What is the output of this code ?

String1 = “my”

String2 = “work”

print ( String1 + String2.upper() )

 

19 / 26

What is the output of this code ?

String1 = “my”

String2 = “work”

print ( String1 + String2 )

 

20 / 26

Which two lines of code are valid strings in Python ?

21 / 26

List AL is Defined as follows :

AL = [ 1,2,3,4,5 ]

Which of the following statements removes the middle element 3 from it so that the list AL equals [1,2,4,5,] ?

22 / 26

What is the value of the following expression ?

3 + 3.  , 3* * 3.  

 

23 / 26

What data type is the object below ?

L = ( 1, 23, ‘ hello ‘ , 1 )

24 / 26

The keys of a dictionary must be of _______ types.

25 / 26

The numbered position of a letter in a string is called  __________

26 / 26

The numbered position of a letter in a string is called __________

Your score is

The average score is 100%

0%



 

Spread the love
Lesson tags: Class 12 Python Revision Tour 2 MCQ, Class 12 Python Revision Tour 2 Quiz, python quiz for class 12, Python Revision Tour 2 Quiz
Back to: CBSE class 12 Computer Science notes
Spread the love