L73_118 Prep for Test

Quiz
•
Computers
•
12th Grade
•
Hard
Tarase Mcgee
Used 15+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Iteration

Quiz
•
9th - 12th Grade
16 questions
A "C" Event-the backbone of modern coding.

Quiz
•
University
20 questions
C-QUEST QUIZ BEE

Quiz
•
University
20 questions
Intro to Programming - AP CSP Unit 2 Review

Quiz
•
9th - 12th Grade
20 questions
function in python

Quiz
•
12th Grade
15 questions
Python Lists

Quiz
•
10th - 12th Grade
15 questions
Control Statements - Java

Quiz
•
University
15 questions
PreTest DFC20113 - Programming Fundamentals

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade