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
What is printed when this code segment is executed?
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 Wayground
12 questions
Python Programming - Iteration

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

Quiz
•
8th - 10th Grade
10 questions
Network issues and communication/ Security issues Grade 10

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

Quiz
•
9th - 11th Grade
12 questions
Project-Stem Unit 1 python coding

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

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

Quiz
•
10th - 11th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade