
Control Structures Quiz

Quiz
•
Computers
•
8th Grade
•
Medium
Aldo Chapa
Used 2+ times
FREE Resource
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{}
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Pseudocode and Flowcharts - Computer Science

Quiz
•
KG - 12th Grade
15 questions
Scratch Programming

Quiz
•
5th - 9th Grade
10 questions
Macam-Macam CMS

Quiz
•
6th - 8th Grade
10 questions
EVALUACIÓN DE LENGUAJES DE PROGRAMACIÓN

Quiz
•
6th - 8th Grade
10 questions
3D Printing Vocabulary - Quiz

Quiz
•
8th Grade
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
Introduction To Java: Hello World

Quiz
•
7th - 12th Grade
15 questions
JS Talks, Quiz #5

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade