
Phyton Basic Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Nitika Chanana
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error. Mixing operators between numbers and strings are not supported
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
p, q, r = 10, 20 ,30
print(p, q, r)
10
20
10 20 30
Error: invalid syntax
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
valueOne = 5 ** 2
valueTwo = 5 ** 3
print(valueOne)
print(valueTwo)
10
15
25
125
55
555
Error: invalid syntax
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
for i in range(10, 15, 1):
print( i, end=', ')
10 11 12 13 14 15
10, 11, 12, 13, 14,
10, 11, 12, 13, 14,15,
10 11 12 13 14
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
var = "James" * 2 * 3
print(var)
JamesJamesJamesJamesJamesJames
JamesJamesJamesJamesJames
JamesJames
Error: invalid syntax
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
x = 36 / 4 * (3 + 2) * 4 + 2
print(x)
182
37
117
The Program executed with errors
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
def calculate (num1, num2=4):
res = num1 * num2
print(res)
calculate(5, 6)
20
30
24
The program executed with errors
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
11 questions
Quiz 1 - Hardware and Software
Quiz
•
9th - 12th Grade
10 questions
OCR 1.5 Networks 1
Quiz
•
11th Grade
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
10 questions
TỪ BÀI TOÁN ĐẾN CHƯƠNG TRÌNH
Quiz
•
11th Grade
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
