Exam 1: Python Programming: Output and Data Types
Exam 1: Python Programming: Output and Data Types48 Questions
Select questions type
What is the output of the following program?
L = [1, 3, 5, 7, 9]
Print(L.pop(-3), end = ' ')
Print(L.remove(L[0]), end = ' ')
Print(L)
(Multiple Choice)
4.8/5
(33)
What data type is the object below?
L = [1, 23, „hello?, 1]
(Multiple Choice)
4.8/5
(31)
What is the output of the following program?
L1 = [1, 2, 3, 4]
L2 = L1
L3 = L1.copy()
L4 = list(L1)
L1[0] = [5]
Print(L1, L2, L3, L4)
(Multiple Choice)
4.7/5
(35)
What is the output of the following?
Elements = [0, 1, 2]
Def incr(x):
Return x+1
Print(list(map(elements, incr)))
(Multiple Choice)
4.8/5
(44)
What is the output of the following program :
Print '{0:.2}'.format(1.0 / 3)
(Multiple Choice)
4.9/5
(36)
What is the output of the following program?
Dictionary1 = {'GFG' : 1,'Google' : 2,'GFG' : 3}
Print(dictionary1['GFG']);
(Multiple Choice)
4.9/5
(40)
To read the entire remaining contents of the file as a string from a file object infile, we use
(Multiple Choice)
4.8/5
(44)
Showing 41 - 48 of 48
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)