Code.org 7

Code.org 7

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

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

Media Image

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?