

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
The two types of loops we've learned about are for loops and
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
11 questions
Revising & Editing
Presentation
•
9th - 12th Grade
8 questions
Topic Sentences
Presentation
•
9th - 12th Grade
10 questions
Rational Root Theorem
Presentation
•
9th - 12th Grade
10 questions
Evaluating Logs
Presentation
•
10th - 12th Grade
9 questions
Programming
Presentation
•
9th - 12th Grade
9 questions
Project 2 Checkpoint 3:
Presentation
•
9th - 12th Grade
9 questions
Mutations
Presentation
•
9th - 11th Grade
10 questions
Python Data Types
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade