
Parameters/Returns/Libraries
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Darrin Patterson
Used 3+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code segment will guarantee that the robot makes it to the gray square without hitting a wall or a barrier (black square)?
moveForward(); rotateLeft(); moveForward();
rotateRight(); moveForward(); moveForward();
moveForward(); moveForward(); rotateRight();
rotateLeft(); moveForward(); rotateLeft();
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed to the console after this program runs?
[2, 5, 3, 1, 6]
[0, 3, 6, -1, 9]
[-1, 2, 6, -2, 8]
[5, 2, 6, 3, 9]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function calls would provide the most helpful test of this function?
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)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have imported a library with the birthMonth() function. Based on the API, how many strings are input to calculate the birth month?
1
4
0
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed to the console?
console.log(15%4);
2
3
4
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which term refers to a solution to a large problem that is based on the solutions of smaller subproblems?
Procedural abstraction
API
Parameter
Library
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Lesson 2 - CPU
Quiz
•
9th Grade
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
20 questions
Diagnostico recursos digitales
Quiz
•
9th Grade
14 questions
Intro to Robotics
Quiz
•
9th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
Artificial Intelligence and SketchUp
Quiz
•
8th - 10th Grade
10 questions
PC1.8 Evaluate computer program
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
