"The <missing phrase> structure in Python executes a series of statements continuously for a set number of iterations." Which of the following expressions would best be used in place of <missing phrase> to make the above sentence true?
AP CSP Unit 4 Quiz 1 PRACTICE

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Scott Chamberlain
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If
Repeat n times
While
For
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is false?
Scratch is a block-based programming language; therefore, there is no possibility of syntax errors.
Scratch is a drag-and-drop text based programming language; therefore, it introduces the possibility of syntax errors.
Python is a text-based programming language; therefore, it introduces the possibility of syntax errors.
Python allows users to create a wide variety of programs with its text-based programming constructs.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python code print?
46
55
65
Nothing will be printed - the loop never stops.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer completes the user manual for a video game she has developed and realizes she wants to swap the names of two characters, “Shockwave” and “Rain.” She already completed the manual, so she wants to write a program to swap where those names appear in the text.
Consider the programmer’s goal of changing all occurrences of “Shockwave” to “Rain” and all occurrences of “Rain” to “Shockwave.” The programmer will use the fact that the name, “Dreamer” does not appear anywhere in the original text.
Which of the following algorithms can be used to accomplish this?
First, change all occurrences of “Shockwave” to “Dreamer” and then change all occurrences of “Dreamer” to “Rain”.
First, change all occurrences of “Shockwave” to “Dreamer,” then change all occurrences of “Dreamer” to “Rain” and then change all occurrences of “Rain” to “Shockwave”.
First, change all occurrences of “Shockwave” to “Dreamer,” then change all occurrences of “Rain” to “Shockwave” and then change all occurrences of “Dreamer” to “Rain”.
First, change all occurrences of “Shockwave” to “Dreamer,” then change all occurrences of “Dreamer” to “Rain” and then change all occurrences of “Shockwave” to “Rain”.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python code print? You may assume x, y, and z are integers.
The largest of the three numbers x, y, and z
The smallest of the three numbers x, y, and z
The median of the three numbers x, y, and z
The number printed cannot be predicted based on the relative sizes of the three numbers x, y, and z
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following procedures.
What is displayed as a result of executing the following program if fn = Tim, mn = Berners and ln = Lee?
Tim Berners Lee Lee Berners Tim
Lee Berners Tim Tim Berners Lee
Tim Berners Lee Berners Tim
Lee Berners Tim Berners Lee
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an effective way of finding and correcting errors?
Deleting the code segments are restarting that section of code
Posting on a bunch of coding forums online waiting for a coding master to help you
Changing every variable name in your program
Using extra output statements to check values of variable at different points in the program
Similar Resources on Quizizz
10 questions
Sejarah Internet IX/1

Quiz
•
9th Grade
10 questions
Java

Quiz
•
12th Grade
11 questions
AP CSP Review 11Q

Quiz
•
10th - 12th Grade
10 questions
History of the Internet

Quiz
•
11th Grade
9 questions
KS3 - Internet and www

Quiz
•
7th - 9th Grade
10 questions
HTML Fundamentals

Quiz
•
9th Grade
10 questions
Introducción HTML

Quiz
•
12th Grade
10 questions
TIK - HTML Dasar

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University