Python Quiz-V | Python Quiz on Data Handling

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



0%

Python Quiz- V (Data Handling)

1 / 22

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

2 / 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

3 / 22

What will be the output of following:

x,y=4,8

z=x/y*y

print(z)

4 / 22

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

5 / 22

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

6 / 22

What will be the output of bool(0.0)?

7 / 22

What line in following code contains error ?

1. x=4

2.  z=x/0

3. print(z)

8 / 22

Identify the data type of  "2+3j"

9 / 22

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

10 / 22

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

11 / 22

What will be the output of following:

print('Hello',end='')

print('Bye')

12 / 22

What will be the output of :

10%3 == 10%3.0

13 / 22

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

14 / 22

Which of the following is immutable?

15 / 22

Identify the data type of  3j

16 / 22

What is the error in following code:

1. x=4

2. y=2

3. x="ABC"

4. print(x/y)

17 / 22

What will be the output of following?

3+5/2

18 / 22

What will be the data type of 2+3.5

19 / 22

What will be the output of 6<6 or 20

20 / 22

What will be the output of following

number=10

print(number!=10)

21 / 22

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

22 / 22

What are errors in following code

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

2. b=a/2

3. print(a,b)



Spread the love
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
Spread the love