L73_118 Prep for Test
Quiz
•
Computers
•
12th Grade
•
Hard
Tarase Mcgee
Used 15+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What happens when the condition in the if statement contains the following condition (" ")?
The code block runs
The code block does not run
An error is thrown
The program crashes
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does an else if statement allow you to do?
Declare variables
Check multiple conditions in a single block of code
Create infinite loops
Define functions
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If the condition is changed to true, what event will occur?
Declare variables
Check multiple conditions in a single block of code
Create infinite loops
Define functions
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the code shown?
no output will be shown
true
false
not equal
Answer explanation
The equality operator can lead to some strange behavior in JavaScript. For example, "0" == 0 is true, even though one is a string and one is a number.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the code shown?
no output will be shown
true
false
not equal
Answer explanation
The strict equality operator === is used to check if two values are equal and share the same type.
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which of the following are falsy values in JavaScript? Select all that apply
null
NaN
"0"
undefined
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the code shown?
"Condition is true"
"Condition is false"
Nothing
"Error"
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
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
15 questions
ICT 0513 - Chapter 4 : System Unit
Quiz
•
University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
From Binary To Denary Conversion - IGCSE
Quiz
•
7th Grade - Professio...
20 questions
DWDM-2
Quiz
•
University
15 questions
History of Computers
Quiz
•
6th - 12th Grade
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
