
Python Quiz - 20
Quiz
•
Architecture, Other
•
12th Grade - University
•
Practice Problem
•
Hard
shanmugaraja .
Used 2+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the correct output of the following string operations
str1 = 'Welcome'
print(str1*2)
WelcomeWelcome
str1str1
Error
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the following output of the following code :
list('Welcome')
['W','e','l','c','o','m','e']
('W','e','l','c','o','m','e')
['welcome']
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the following output of the following code :
>>>L = ['w','e','l','c','o','m','e']
>>>print(len(L))
8
9
7
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the following output of the following code :
>>> L=[“Amit”,”Anita”,”Zee”,”Longest Word”]
>>> print(max(L))
Longest Word
Zee
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code :
L=list(“www.learninghpython.com”)
print(L[20 : -1])
['c','o']
['c','o','m']
(com)
Error
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code :
>>>L=[“Amit”,”Sumit”,”Naina”]
>>>print(L[-1][-1])
['Sumit']
[a]
[Naina]
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code :
L=[0.5 * x for x in range(4)]
print(L)
[0.0, 0.5, 1.0, 1.5]
(0,.5, 1, 1.5)
[0.0, 0.5, 1.0, 1.5, 2.0]
None
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the output of the following code :
L=[‘a’ * x for x in range(4)]
print(L)
[‘ ‘ , ‘a’ , ‘aa’ , ‘aaa’]
[‘a’, ‘aa’, ‘aaa’]
Error
None of the above
Similar Resources on Wayground
11 questions
TIGERS
Quiz
•
8th - 12th Grade
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
10 questions
Prime Ministers of India
Quiz
•
1st Grade - University
10 questions
Latest Technology in Modern Hotel
Quiz
•
University
10 questions
Dragon Mania Ledgends Quiz
Quiz
•
1st Grade - Professio...
11 questions
Media Analysis_Lez.1
Quiz
•
University
10 questions
BUILDING COMPONENTS
Quiz
•
University
10 questions
BHS General Knowledge Test Quiz
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Architecture
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Preterito regular
Quiz
•
10th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
5 questions
Triangle Congruence Theorems
Interactive video
•
9th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
