Python Unit 2 Quiz 2
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium

Gerri McCann
Used 25+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
x = 3
y = 5
z = 2
print(y ** z + z)
What is output?
12
17
25
27
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
x = 3
y = - 4
z = 1
print( x + y * y )
2
-2
19
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by:
x = 19.29428347
x = x * 100
num = int(x)
print(num)
19.2943
19
1929
19.29
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code is necessary for random numbers to work in Python?
import random
import integer
x = randomint
x = int(input("Enter a number"))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Python Command?
int
str
input
dec
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
print(7 % 4)
0
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
print(8 % 4)
0
1
2
3
4
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
พื้นฐานภาษาไพทอน-2-คำสั่ง Print
Quiz
•
7th - 12th Grade
15 questions
Python. GuiZero
Quiz
•
7th - 12th Grade
10 questions
TJBL WAN UAS 2023
Quiz
•
11th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
10 questions
Fundamentals of Algorithms
Quiz
•
10th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
13 questions
Kuis Simulasi Burung dan Bank Darah Informatika Kelas XI SMA
Quiz
•
11th Grade
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
