
Code.org Unit 7 Review
Authored by Thomas Martinez
Computers
10th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 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;
isEven(num)
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Here is the API for a robot library.
// moves the robot forward
function moveForward();
// turns the robot to the left
function rotateLeft();
// turns the robot to the right
function rotateRight();
// checks if a robot can move in any direction
// direction {string} - the direction to be checked
// return {Boolean} - true if the robot can move in that direction, otherwise returns false
function canMove(direction);
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
[2, 5, 3, 1, 6]
[1, 4, -1, 0, 1]
[0, 3, 6, -1, 9]
[5, 2, 6, 3, 9]
[5, 1, 7, -1, 9]
4.
MULTIPLE CHOICE QUESTION
2 mins • 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.
findMin(-1, 0)
findMin(2,4)
findMin(5,10)
findMin(5,3)
findMin(7,2)
findMin(5,1)
findMin(1,1)
findMin(-2,2)
findMin(0,3)
findMin(-1,1)
findMin(1,-1)
findMin(1,1)
5.
MULTIPLE CHOICE QUESTION
2 mins • 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?
// calculate birth month based on the day of the month, day of the week, and the birth year
// dayMonth {number} - a day of a month from 1 to 31
// dayWeek {string} - the name of the day of the week
// year {number} - the birth year
// return {string} - the month you were born
BirthdayLibrary.birthMonth(dayMonth, dayWeek, year);
1
4
0
3
-1
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
listAverage() returns the average number in a list. Which of these functions does this correctly?
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed to the console?
console.log(15 % 4);
0
1
2
3
.1
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
Trắc nghiệm Tin 10-Chủ đề A
Quiz
•
10th - 11th Grade
20 questions
الوحدة 1- الشبكات السلكية واللاسلكية والانترنت - حاسب 2
Quiz
•
10th - 12th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
20 questions
1.1.3 Proses Penyelesaian Masalah
Quiz
•
11th Grade
21 questions
Visual Basic Assessment
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade