AP CSP Unit 7: Parameters, Returns, and Libraries
Flashcard
•
Computers
•
9th - 12th Grade
•
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.
Back
num % 2 == 0;
2.
FLASHCARD QUESTION
Front
What will be printed to the console after this program runs? Options: [2, 5, 3, 1, 6], [0, 3, 6, -1, 9], [-1, 2, 6, -2, 8], [5, 2, 6, 3, 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. function findMin(num1, num2){ if(num1 < num2){ return num1; } else { return num2; }}
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
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
6.
FLASHCARD QUESTION
Front
Where should return false; be written in the code?
Back
OPTION C
7.
FLASHCARD QUESTION
Front
This function finds the minimum number in a list. What should
Back
min = numList[i];
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
Purpose Clauses
Flashcard
•
10th - 11th Grade
9 questions
Punca Persamaan Kuadratik
Flashcard
•
8th - 11th Grade
15 questions
English to Arabic Clothing Vocabulary
Flashcard
•
9th Grade - University
14 questions
2025 S3/4 CCKS Nutrients
Flashcard
•
8th Grade - University
9 questions
Sorting Algorithms
Flashcard
•
9th - 12th Grade
9 questions
Parts of a Computer
Flashcard
•
9th - 12th Grade
13 questions
[AP CSP] Binary Conversion
Flashcard
•
9th - 12th Grade
10 questions
KUIZ PENDIDIKAN MORAL TINGKATAN 5 UNIT 4
Flashcard
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
16 questions
Lesson 3.5 - If Structures Practice
Quiz
•
11th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade