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
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
15 questions
CodeHS Python Unit 5 Looping Flashcard

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
10 questions
Questionnaire Accouchement

Flashcard
•
KG - University
17 questions
Units 6 and 7 Flashcard

Flashcard
•
11th Grade
14 questions
Java Math and String Libraries

Flashcard
•
9th - 12th Grade
15 questions
CSP Unit 5 Pre-Assessment: Lists, Loops, Traversals

Flashcard
•
11th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade