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
20 questions
Web Development Tutorial 10 Quiz Review

Quiz
•
9th - 12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
20 questions
Python

Quiz
•
12th Grade
15 questions
Exam 1 Practice

Quiz
•
University
20 questions
Array and Loops in C#

Quiz
•
University
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University