Python Unit 2 Quiz 2

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Gerri McCann
Used 25+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Quiz sobre a aula passada!

Quiz
•
9th - 12th Grade
10 questions
Introduction to C++ 2024/25

Quiz
•
12th Grade
11 questions
Python Quiz

Quiz
•
12th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
17 questions
Python

Quiz
•
6th - 10th Grade
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
8 questions
T3 Y7 Grasshopper App

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade