Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Python Programming
Quiz 1: Python Programming: Output and Data Types
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
What is the output of the following code : Print 9//2
Question 2
Multiple Choice
Which function overloads the >> operator?
Question 3
Multiple Choice
What is the output of the following program : I = 0 While i < 3: Print i Print i+1
Question 4
Multiple Choice
Which module in Python supports regular expressions?
Question 5
Multiple Choice
What is the output of the following program : Print 0.1 + 0.2 == 0.3
Question 6
Multiple Choice
Which of these is not a core data type?
Question 7
Multiple Choice
What data type is the object below? L = [1, 23, „hello?, 1]
Question 8
Multiple Choice
What is the output of the following program : Def myfunc(a) : A = a + 2 A = a * 2 Return a Print myfunc(2)
Question 9
Multiple Choice
What is the output of the expression : 3*1**3
Question 10
Multiple Choice
What is the output of the following program : Print '{0:.2}'.format(1.0 / 3)
Question 11
Multiple Choice
What is the output of the following program : Print '{0:-2%}'.format(1.0 / 3)
Question 12
Multiple Choice
What is the output of the following program : I = 0 While i < 3: Print I I += 1 Else: Print 0
Question 13
Multiple Choice
What is the output of the following program : I = 0 While i < 5: Print(i) I += 1 If i == 3: Break Else: Print(0)
Question 14
Multiple Choice
What is the output of the following program : Print 'cd'.partition('cd')
Question 15
Multiple Choice
What is the output of the following program : Print 'abcefd'.replace('cd', '12')
Question 16
Multiple Choice
What will be displayed by the following code? Def f(value, values) : V = 1 Values[0] = 44 T = 3 V = [1, 2, 3] F(t, v) Print(t, v[0])
Question 17
Multiple Choice
Predict the output of following python programs Dictionary1 = {'Google' : 1,'Facebook' : 2,'Microsoft' : 3} Dictionary2 = {'GFG' : 1,'Microsoft' : 2,'Youtube' : 3} Dictionary1.update(dictionary2) ; For key, values in dictionary1.items() : Print(key, values)
Question 18
Multiple Choice
What is the output of the following program? Dictionary1 = {'GFG' : 1,'Google' : 2,'GFG' : 3} Print(dictionary1['GFG']) ;
Question 19
Multiple Choice
What is the output of the following program? Temp = dict() Temp['key1'] = {'key1' : 44, 'key2' : 566} Temp['key2'] = [1, 2, 3, 4] For (key, values) in temp.items() : Print(values, end = "")
Question 20
Multiple Choice
What is the output of the following program? Data = [2, 3, 9] Temp = [[x for x in[data]] For x in range(3) ] Print (temp)
showing 1 - 20 of 48
Prev
Next
Prev
1
2
3
Next
Related Quizzes
Previous slide
Next slide
Access For Free