
Python Quiz - 20
Quiz
•
Architecture, Other
•
12th Grade - University
•
Hard

shanmugaraja .
Used 2+ times
FREE Resource
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
10 questions
Quiz Pkwu by Akmal
Quiz
•
12th Grade
11 questions
Monopoly vs. Perfect Competition
Quiz
•
11th - 12th Grade
11 questions
Monopolistic Competition!
Quiz
•
11th - 12th Grade
10 questions
uC LCD
Quiz
•
University
10 questions
[MACRO] GROUP 4 ACE NHÀ HỌ NGUYỄN - WEEK 4 LEARNING QUIZ
Quiz
•
University
10 questions
Java set3
Quiz
•
University
10 questions
Micro Economic Analysis (M.com) Sem 1 19.10.24
Quiz
•
University
10 questions
Web Tasarım ve Temelleri
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Architecture
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade