
Parameters/Returns/Libraries

Quiz
•
Computers
•
9th Grade
•
Hard
Darrin Patterson
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python - тест

Quiz
•
1st - 12th Grade
16 questions
Variables

Quiz
•
7th - 10th Grade
16 questions
Python есептер 1

Quiz
•
9th - 12th Grade
16 questions
Повторення "Lazarus"

Quiz
•
9th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
Coding1 m.3

Quiz
•
9th Grade
12 questions
Lazarus. Кнопки та написи

Quiz
•
1st - 12th Grade
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade