
Code.org 7
Flashcard
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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)
Back
num % 2 == 0;
2.
FLASHCARD QUESTION
Front
Options: [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]
Back
[0, 3, 6, -1, 9]
3.
FLASHCARD QUESTION
Front
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. Options: 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)
Back
findMin(-1,1), findMin(1,-1), findMin(1,1)
4.
FLASHCARD QUESTION
Front
listAverage() returns the average number in a list. Which of these functions does this correctly?
Back
5.
FLASHCARD QUESTION
Front
What is printed to the console?
console.log(15 % 4);
Back
3
6.
FLASHCARD QUESTION
Front
Which term refers to a solution to a large problem that is based on the solutions of smaller subproblems?
Back
procedural abstraction
7.
FLASHCARD QUESTION
Front
Where should return false; be written in the code?
Back
OPTION C
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
Деревья
Flashcard
•
9th - 12th Grade
15 questions
The Writing Process
Flashcard
•
9th - 12th Grade
15 questions
Past Simple VS Prsent Perfect
Flashcard
•
KG - University
15 questions
American West - Lesson 17: Plains Wars of the 1860s
Flashcard
•
10th - 11th Grade
15 questions
UNIT 4 Test Review
Flashcard
•
9th - 12th Grade
10 questions
Algebra
Flashcard
•
12th Grade
12 questions
E4 Final Exam: Biographies and Autobiographies (Smith)
Flashcard
•
12th Grade
10 questions
9 клас. Алгебра. Арифметична прогресія
Flashcard
•
KG - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade