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)

Code.org 7

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Similar Resources on Quizizz
10 questions
Arrays

Flashcard
•
10th - 12th Grade
20 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
16 questions
AP CSP Unit 5 List Pseudocode Flashcard 2

Flashcard
•
9th - 12th Grade
13 questions
App Lab Review

Flashcard
•
9th - 12th Grade
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
15 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
12 questions
Code.org - Unit 6 Lists, Loops, and Traversals

Flashcard
•
10th Grade - University
10 questions
Arrays

Flashcard
•
10th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade