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

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



0%

Python Quiz- II input() and eval()

click here to learn input() function and eval function

1 / 14

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

2 / 14

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

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

3 / 14

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

4 / 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')

5 / 14

What will be the output of following statements?

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

6 / 14

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

7 / 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')

 

8 / 14

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

9 / 14

what is the use eval() function?

10 / 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')

11 / 14

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

12 / 14

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

13 / 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')

14 / 14

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



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