Python Quiz-V | Python Quiz on Data Handling

Preview
You must first complete Introduction to Python | Basic Python Components before viewing this Lesson



0%

Python Quiz- V (Data Handling)

1 / 22

What line in following code contains error ?

1. x=4

2.  z=x/0

3. print(z)

2 / 22

Identify the data type of  3j

3 / 22

Variable sname contains "Amit".  What will be the  the output of  print(sname is yourname)

if yourname=input('Enter your name:') contains Amit

 

if value of yourname is entered as Amit

4 / 22

Identify the data type of  ['a','b','c']

5 / 22

Write the output of print(len(str(10//3))).

6 / 22

What will be the output of following:

x,y=4,8

z=x/y*y

print(z)

7 / 22

What will be the output of following?

3+5/2

8 / 22

What will be the output of following

number=10

print(number!=10)

9 / 22

What will be the output of int(4+3/2)?

10 / 22

What is the error in following code:

1. x=4

2. y=2

3. x="ABC"

4. print(x/y)

11 / 22

What will be the output of :

10%3 == 10%3.0

12 / 22

What will be the output of 6<6 or 20

13 / 22

What will be the output of bool(0.0)?

14 / 22

Identify the data type of  "2+3j"

15 / 22

What will be the output of: len(10) or 10

16 / 22

What will be the output of bool(0j)?

17 / 22

What will be the output of bool(str(0))

18 / 22

What are errors in following code

1. a=input('Enter a value')

2. b=a/2

3. print(a,b)

19 / 22

Which of the following is immutable?

20 / 22

What will be the output of 2**2**3

21 / 22

What will be the output of following:

print('Hello',end='')

print('Bye')

22 / 22

What will be the data type of 2+3.5



Lesson tags: python quiz for class 11, python quiz for class 12, Python quiz on data handling
Back to: CBSE class 11 Computer Science Notes