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. function findMin(num1, num2){ if(num1 < num2){ return num1; } else { return num2; }} 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)
AP CSP Unit 7: Parameters, Returns, and Libraries

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

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
findMin(-1,1) findMin(1,-1) findMin(1,1)
2.
FLASHCARD QUESTION
Front
listAverage() returns the average number in a list. Which of these functions does this correctly?
Back
3.
FLASHCARD QUESTION
Front
What is printed to the console?
console.log(15 % 4);
Back
3
4.
FLASHCARD QUESTION
Front
Which of the following is NOT true about procedural abstraction? Procedural abstraction improves code readability, Procedural abstraction manages complexity by allowing for code reuse, Procedural abstraction improves the speed at which a program executes, Procedural abstraction allows a solution to a large problem to be based on the solution of smaller subproblems
Back
Procedural abstraction improves the speed at which a program executes
5.
FLASHCARD QUESTION
Front
This function finds the minimum number in a list. What should <MISSING CODE SEGMENT> be replaced with in order for this function to operate as expected? function min(numList){ var min = numList[0]; for(var i=0; i<numList.length; i++){ if(numList[i] < min){ <MISSING CODE SEGMENT> } } return min; }
Back
min = numList[i];
6.
FLASHCARD QUESTION
Front
Algorithms can be created in all the following ways EXCEPT: creating from an idea, combining existing algorithms, removing sequencing, selection, and iteration from an algorithm, modifying existing algorithms
Back
removing sequencing, selection, and iteration from an algorithm
7.
FLASHCARD QUESTION
Front
Using existing algorithms as building blocks for new algorithms has all the following benefits EXCEPT: reduces development time, reduces testing, simplifies debugging, removes procedural abstraction
Back
removes procedural abstraction
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Computer Science

Flashcard
•
9th - 12th Grade
15 questions
2 Review Polynomials and Rational Functions

Flashcard
•
9th - 12th Grade
14 questions
Excel Functions and Formulas

Flashcard
•
9th - 11th Grade
18 questions
AP CSP Unit 1 Vocab Flashcard (1.1 through 1.3)

Flashcard
•
9th - 12th Grade
21 questions
AP CSP Unit 7 Review

Flashcard
•
11th Grade
16 questions
AP CSP Unit 3 Ch 1 Vocab

Flashcard
•
9th - 12th Grade
13 questions
MS App > MS Excel Formulas FINAL EXAM

Flashcard
•
9th - 12th Grade
17 questions
Vocab Homework 1st Week - 4th 9 Weeks

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

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

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

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

Quiz
•
KG - University