What is the last thing printed by the following program?
Unit 4 Assessment Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Aziza Munem
Used 123+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10
20
30
60
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We want to simulate constantly flipping a coin until we get 3 heads in a row. What kind of loop should we use?
For Loop
While Loop
Loop and a half
Infinite Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the following program print "hello"?
10
11
9
This code will loop infinitely
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code continually asks the user for a password until they guess the correct password, then ends. But there is one problem.
Which of the following will fix this program?
Change the True in line 3 to be password != SECRET_PASSWORD so that the program doesn’t loop infinitely
Change the True in line 3 to be password == SECRET_PASSWORD so that the program doesn’t loop infinitely
Add a break; statement after line 6 so that the program doesn’t loop infinitely
Put line 7 inside of an else statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program print when run?
4
5
4
5
6
5
4
6
5
4
0
2
6
4
6
5
6
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the boolean variable can_vote at the end of this program?
True
False
Yes
none, there is a syntax error in this code
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
0
5
True
Nothing will print
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Quiz Scratch kelas 8

Quiz
•
12th Grade
20 questions
Iteration

Quiz
•
11th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
20 questions
Jago PHP

Quiz
•
11th Grade
20 questions
Creative Coding Review

Quiz
•
8th - 12th Grade
20 questions
National 5 Programming (VB and Theory)

Quiz
•
1st - 11th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade