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
Fundamentals of Programming C++

Quiz
•
9th Grade - University
24 questions
Basic JavaScript Concepts

Quiz
•
University
21 questions
Quiz 1

Quiz
•
9th - 12th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
20 questions
Computer Science Explorations Final Review

Quiz
•
9th - 12th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

Quiz
•
University
20 questions
JAVA Basics Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade