Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Rami Nasser
Used 13+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of the code ?
x= "python is a high level language"
print(x[5].replace("n","*"))
pytho* is a high level language
python is a high level language
*
Error
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can we swap two numbers a = 10, b = 20 in python without using third variable?
a = b
b = a
a,b = b,a
both a & b
b = a
a = b
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of the code ?
0
1
2
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
d = {'foo': 100, 'bar': 200, 'baz': 300}
What is the result of this statement:
d['bar':'baz']
200 300
(200, 300)
It raises an exception
[200, 300]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
0 1 2 3 4 Here
0 1 2 3 4 5 6 7 8 9 Here
0 1 2 3 4
0 1 2 3 4 5 6 7 8 9
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
Error
100
101
99
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
Error
12 4
4 12
4 15
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
outer
error
inner
error
outer
inner
Error
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
2 7
1 5
1 7
2 5
Similar Resources on Wayground
7 questions
ESBrotherX_Medical AI_Lecture
Quiz
•
University
11 questions
Video Watermaking
Quiz
•
University
10 questions
NETIQUETTE AND DIGITAL FOOTPRINT
Quiz
•
University
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Living in the IT Era
Quiz
•
University
12 questions
ICT450-TOPIC 1
Quiz
•
University
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 Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
