What is printed when this code segment is executed?
Lab 9 Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Pauline White
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5
3
1
531
5
3
51
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is x considered to be after this line of code executes?
An integer
A String
There is not enough information to answer this question.
It depends what the user typed.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following lists all of the possible values that could be printed?
7,8,9,10
8,9,10
8,9,10,11
7,8,9,10,11
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this code segment, what is the loop variable?
count
x
count and x are both loop variables.
There is no loop variable.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose the user enters 3, 8, 6, 7 in order. What would be the output of this code segment?
Correct in 1 tries!
Correct in 2 tries!
Correct in 3 tries!
Correct in 4 tries!
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the user types 7 on the first prompt?
The program prints, "Correct in 1 try!"
The program prints, "Correct in 2 tries!"
The program will print "Try again" continuously.
The program will have a runtime error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if the user types 6 at the first prompt?
The program will print "Try again" until the user types 7 and then print "Correct in x tries!" where x is the number of inputs the user made.
The program will print "Try again" and then print "Correct in 1 try!"
The program will print "Try again" and then print "Correct in 2 tries!"
The program will continuously print "Try again."
Similar Resources on Quizizz
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Python Programming

Quiz
•
7th - 9th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
8 questions
Year 9 Programming Mini Assessment

Quiz
•
9th Grade
10 questions
ICT Java programming workshop

Quiz
•
9th Grade
10 questions
BTEC DIT C3 LAB - External Threats

Quiz
•
10th - 11th Grade
10 questions
Computer Malware

Quiz
•
6th - 12th 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