JS Loops and Functions
Quiz
•
Information Technology (IT)
•
6th Grade
•
Easy
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in JavaScript?
A function in JavaScript is a type of variable.
A function in JavaScript is a method for creating objects.
A function in JavaScript is a data structure that holds values.
A function in JavaScript is a reusable block of code that performs a specific task.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function in JavaScript?
function call()
call functionName
invoke functionName()
functionName()
3.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
A loop that executes for a pre-defined number of times
4.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
A loop that executes until a condition is met is called
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
for ( var i = 0; i < 50; i++ )
How many times will this loop execute
51 times
49 times
50 times
0 times
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the iterations runs 25 times
for ( var i = 2; i < 26; i ++ )
for ( var i = 0; i < 25; i ++ )
for ( var i = -1 ; i > 25 ; i -- )
for ( var i = 0; i <= 25; i --)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following code, what is the final value of x?
var x = 0;
function myXFunction() {
x = x + 10;
}
x = x + 1;
11
0
10
1
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
8 questions
MIS-RODOCODO
Quiz
•
1st Grade - University
10 questions
Y7 AI + AI Vocab Refresher
Quiz
•
6th Grade
13 questions
Understanding Input and Output Devices
Quiz
•
6th Grade
10 questions
Formativa 6.3
Quiz
•
6th Grade
15 questions
Thế giới crypto
Quiz
•
6th - 8th Grade
15 questions
Grade 6 - Living with AI
Quiz
•
6th Grade - University
15 questions
Introducción a la programación 6°
Quiz
•
6th Grade
9 questions
Condition Programming Quiz
Quiz
•
1st Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
12 questions
Digital Citizenship BSMS
Quiz
•
6th - 8th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
One step Equations
Quiz
•
6th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
