
CS2 Unit 7 Review
Quiz
•
Instructional Technology
•
12th Grade
•
Hard
Used 4+ times
FREE Resource
Enhance your content
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segment.
num % 2 == 0;
num % 0 == 2;
num % 1 == 0;
num % 1 == 2;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which code segment will guarantee that the robot makes it to the grey square without hitting a wall or a barrier (black square)?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed to the console after this program runs?
[2, 5, 3, 1, 6]
[5, 2, 6, 3, 9]
[0, 3, 6, -1, 9]
[-1, 2, 6, -2, 8]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function calls would provide the most helpful test of this function?
Remember: With tests, you are attempting to figure out all the possible ways the function could be broken.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birth month?
4
1
0
3
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
listAverage() returns the average number in a list. Which of these functions does this correctly?
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is printed to the console?
3
2
1
4
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Funzioni in PHP
Quiz
•
12th Grade
15 questions
Data Science in Marketing Quiz
Quiz
•
12th Grade
16 questions
M05 - Estruturas de Dados Python
Quiz
•
10th Grade - University
10 questions
Safety Instrumented System
Quiz
•
12th Grade
20 questions
Revisões sobre redes
Quiz
•
9th - 12th Grade
20 questions
Cibersegurança
Quiz
•
12th Grade - University
19 questions
AI in Education Quiz
Quiz
•
12th Grade
20 questions
programación c++ 2 parcial-2Q
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade