
CS2 Unit 7 Review

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
Used 4+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Phishing quiz

Quiz
•
1st - 12th Grade
20 questions
Lego EV3 Robotics Quiz (Multiple Choice)

Quiz
•
9th - 12th Grade
15 questions
MIL REVIEW ACTIVITY

Quiz
•
11th - 12th Grade
20 questions
Channels of Distribution Quiz

Quiz
•
11th Grade - University
10 questions
Artificial Intelligence#3

Quiz
•
9th - 12th Grade
20 questions
TESTOUT - CH 8

Quiz
•
9th - 12th Grade
10 questions
AI in Classroom: Pros & Cons

Quiz
•
12th Grade
19 questions
PowerPoint

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade