
Review 1

Quiz
•
Other
•
9th - 12th Grade
•
Easy
Joyce Lee
Used 1+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A student wrote the following program to remove all occurrences of the strings "the" and "a" from the list wordList. While debugging the program, the student realizes that the loop never terminates. Which of the following changes can be made so that the program works as intended?
Inserting index ← index + 1 between lines 6 and 7
Inserting index ← index + 1 between lines 7 and 8
Inserting index ← index - 1 between lines 6 and 7
Inserting index ← index - 1 between lines 7 and 8
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The transmission control protocol (TCP) and Internet protocol (IP) are used in Internet communication. Which of the following best describes the purpose of these protocols?
To ensure that communications between devices on the Internet are above a minimum transmission speed
To ensure that private data is inaccessible to unauthorized devices on the Internet
To establish a common standard for sending messages between devices on the Internet
To validate the ownership of encryption keys used in Internet communication
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following spinner, which is used to determine how pieces are to be moved on a game board. The region labeled "Move 1 space" is six times as large as each of the other two regions.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
An Internet user has a need to send private data to another user. Which of the following provides the most security when transmitting private data?
Certifying the data with a Creative Commons license before sending it
Sending the data using a high-bandwidth connection
Sending the data using public-key encryption
Sending the data using redundant routing
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following procedure is intended to return true if at least two of the three parameters are equal in value and is intended to return false otherwise. For which of the following procedure calls does the procedure NOT return the intended value?
AnyPairs ("bat", "cat", "rat")
AnyPairs ("bat", "bat", "rat")
AnyPairs ("bat", "cat", "bat")
AnyPairs ("bat", "cat", "cat")
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the following program, assume that the variable n has been initialized with an integer value. Which of the following is NOT a possible value displayed by the program?
too high
in range
too low
out of range
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following algorithm is intended to determine the average height, in centimeters, of a group of people in a room. Each person has a card, a pencil, and an eraser. Step 2 of the algorithm is missing.
Step 1: All people stand up.
Step 2: (missing step)
Step 3: Each standing person finds another standing person and they form a pair. If a person cannot find an unpaired standing person, that person remains standing and waits until the next opportunity to form pairs.
Step 4: In each pair, one person hands their card to the other person and sits down.
Step 5: At this point, the standing person in each pair is holding two cards. The standing person in each pair replaces the top number on their card with the sum of the top numbers on the two cards and replaces the bottom number on their card with the sum of the bottom numbers on the two cards. The sitting partner’s card is discarded.
Step 6: Repeat steps 3–5 until there is only one person standing.
Step 7: The last person standing divides the top number by the bottom number to determine the average height.
Which of the following can be used as step 2 so that the algorithm works as intended?
Step 2: Each person writes their height, in centimeters, at the top of the card and writes the number 1 at the bottom of the card.
Step 2: Each person writes their height, in centimeters, at the top of the card and writes the number 2 at the bottom of the card.
Step 2: Each person writes the number 1 at the top of the card and writes their height, in centimeters, at the bottom of the card.
Step 2: Each person writes the number 2 at the top of the card and writes their height, in centimeters, at the bottom of the card.
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
OSE Week 3

Quiz
•
8th Grade - University
38 questions
Financial Mgt Vocabulary

Quiz
•
9th - 12th Grade
36 questions
Credit Management

Quiz
•
9th - 12th Grade
37 questions
Economic Choice

Quiz
•
KG - University
32 questions
N6 Bus Mgt Stakeholder Conflict and Interdependence

Quiz
•
12th Grade
30 questions
Universal Systems Model

Quiz
•
9th Grade
30 questions
N6 Bus Mgt Decision Making (exc SWOT)

Quiz
•
12th Grade
31 questions
Orthographic Projections & Alphabet of Lines

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade