Python Quiz-II | input() & eval()

You must first complete Python Quiz – I before viewing this Lesson



0%

Python Quiz- II input() and eval()

1 / 14

What will be the data type of variable val if value 2+3j is input by using following statement?

val=eval(input('Enter a value')

2 / 14

Which of the following can be used to read boolean values True/False?

3 / 14

What is that default data type of value read using input() function?

4 / 14

Which of the following can be used to read floating point value?

5 / 14

What will be the output of following statements?

>>> b=eval(‘2.5’)
>>> print(type(b))

6 / 14

what is the use eval() function?

7 / 14

Which of the following is the syntax for reading a variable?

8 / 14

What will be the data type of variable val if value True is input by using following statement?

val=eval(input('Enter a value')

 

9 / 14

What will be the result of following statement if values 10,20  are input by using following statement?

val=eval(input('Enter a value')

10 / 14

Which of the following can be used to read integer value?

11 / 14

What will be the data type of variable val if value 2.5 is input by using following statement?

val=eval(input('Enter a value')

12 / 14

Which of the following can be used to read complex value?

13 / 14

What will be the result of following statement if value 'ABC'  is input by using following statement?

val=eval(input('Enter a value')

14 / 14

Which function of python is used to read value of a variable?



Lesson tags: eval() quiz, input() quiz, python quiz
Back to: CBSE class 11 Computer Science Notes