
Control Structures Quiz
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Aldo Chapa
Used 2+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in JavaScript?
function: myFunction() {}
function myFunction() {}
def myFunction() {}
function = myFunction() {}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a Boolean value in JavaScript?
0
"true"
true
`"false"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator represents "AND" in JavaScript?
&&
||
!
==
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following comparison in JavaScript: 10 == "10"`?
true
false
undefined
null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? ```javascript let x = 0; while (x < 3) { console.log(x); x++; } ```
0 1 2
1 2 3
0 1 2 3
1 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to exit a loop prematurely in JavaScript?
exit
stop
break
end
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid function call in JavaScript?
myFunction;
myFunction[];
myFunction();
myFunction{}
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
11 questions
Ôn tập GK 2 Tin học 8
Quiz
•
8th Grade
15 questions
Files and Documents Computer Basics
Quiz
•
KG - 8th Grade
10 questions
Kuiz Senang
Quiz
•
7th - 9th Grade
15 questions
Speed Typing Test with Coding Vocabulary
Quiz
•
3rd - 8th Grade
10 questions
Алгоритмические конструкции
Quiz
•
6th - 10th Grade
10 questions
Swift Playgrounds Quiz
Quiz
•
8th Grade
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
16 questions
DATA SCIENCE Assessment (April)
Quiz
•
8th - 12th 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
