

Functions + Loop Review
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Noah Marestaing
Used 2+ times
FREE Resource
1 Slide • 9 Questions
1
Functions + Loop Review
By Noah Marestaing
2
Multiple Choice
What will get printed?
function math_stuff(a, b, c) {
console.log(a + b + c)
}
math_stuff(1, 4, 5)
math_stuff(2, 2, 2)
145
222
9
4
10
6
nothing
3
Multiple Choice
How many times will banana get printed?
var numbers = [1, 5, 6, 7, 8]
for (var i = 0; i < numbers.length; i++) {
console.log("banana")
}
5
infinite
0
4
4
Multiple Choice
How many times will this loop?
var a = 5
while (a < 10) {
console.log("abcde")
}
0
10
5
infinite
5
Multiple Choice
True or False: This function will work.
function attack(attack_pwr) {
hp = hp - attack_pwr
True
False
6
Multiple Choice
var name = prompt("what is your name")
name = "Peter"
What will be the value of name?
"Peter"
whatever the user typed
error
0
7
Multiple Choice
Which is NOT one of the 3 parts of a loop?
condition
start
format
iteration
8
Multiple Choice
var colors = ["orange", "green", "violet"]
Which will add a new color into this array?
colors.add("magenta")
colors.push("magenta")
colors.pop("magenta")
add("magenta").colors
9
Fill in the Blanks
Type answer...
10
Multiple Choice
Which will correctly create a function called add which adds two numbers together?
function add(a, b)
console.log(a + b)
function add(a, b) {
console.log(a + b)
}
function add () {
console.log(a + b)
}
function add [a, b] (
console.log(a + b)
)
Functions + Loop Review
By Noah Marestaing
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
6 questions
ALG 2 BFs Review
Presentation
•
9th - 12th Grade
7 questions
Sheet Formulas
Presentation
•
9th - 12th Grade
7 questions
A1-U3.4a Lesson: Identifying Arithmetic Sequences
Presentation
•
9th - 12th Grade
6 questions
Fairfield MS - 7th Grade - 01/08/2025
Presentation
•
9th - 12th Grade
9 questions
Second Week
Presentation
•
9th - 12th Grade
9 questions
Poetic Sound Devices
Presentation
•
9th - 12th Grade
7 questions
Cell Diagrams
Presentation
•
9th - 12th Grade
10 questions
How to Write a Resume
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Review 4
Quiz
•
3rd Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
16 questions
1.1-1.2 Quiz Review
Quiz
•
9th - 12th Grade
12 questions
Exponent Expressions
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th - 7th Grade
11 questions
Northeast States
Quiz
•
3rd - 4th Grade
10 questions
Characterization
Quiz
•
3rd - 7th Grade
10 questions
Common Denominators
Quiz
•
5th Grade