0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1. What will be the data type of x after the following statement if input
entered is 18 ?
x = input(‘Enter a number: ‘)
2. What will be the data type of y after the following statements if input
entered is 50?
x = input(‘Enter a number: ‘)
y = int(x)
3. What will be the data type of y after the following statements?
x = 71
y = float(x)
4. What will be the data type of y after the following statements?
x = 48
y = str(x)
5. What is the data type of x after the following statement?
x = [7, 8, 9, 10]
6. What is the data type of x after the following statement?
x = [‘Today’, ‘Tomorrow’, ‘Yesterday’]
7. What will be the data type of x after the following statement?
x = (34, 81, 50)
8. What will be the data type of x after the following statement?
x = ‘Python 3 Test’
9. What will be the data type of x after the following statement?
x = [2290, 376, 198]
10. What will be the data type of x after the following statement?
x = {‘lang’ :’Python’, ‘version’ : ‘3’}
11. What will be the data type of x after the following statement?
x = {2015, 2016, 2017, 2018}
12. What will be the data type of x after the following statement?
x = [2016, ‘Leap Year’, ‘True’]
13. What will be the data type of x after the following statement?
x = False
14. Which of the following function can be used to find the data type of a
variable?
15.What will be the data type of x after the following statements?
false = “This is not true”
x = false
16. What will be the data type of y after the following statements?
x = [1, 2, 3, 4]
y = tuple(x)
_________.
17.What will be the data type of z after the following statements?
x = [1, 2, 3, 4]
y = tuple(x)
z = list(y)
18. What will be the data type of the output after the following
statements?
x = ‘Python’
y = tuple(x)
print(y)
19. What will be the data type of x after the following statement?
x = {}
Match the following :
Tuple |
Dictionary |
Numeric |