
JavaScript Output Quiz
Authored by Karen Tan
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? let x = 5; let y = "5"; console.log(x == y);
true
false
undefined
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output? let a; console.log(a);
null
undefined
Error
NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be logged to the console? const PI = 3.14; PI = 3.14159; console.log(PI);
3.14
3.14159
Error
undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when running the following code? var x = 10; console.log(y); var y = 20;
10
undefined
ReferenceError
20
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output? console.log(2 + "2");
4
22
NaN
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? console.log(2 * "2");
4
22
NaN
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed? let result = 10 > 5 ? "Yes" : "No"; console.log(result);
Yes
No
true
false
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
16 questions
Computer (Set A)
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
Hashing
Quiz
•
University
20 questions
C - Structures
Quiz
•
University
10 questions
ระบบทางเทคโนโลยี ม.4
Quiz
•
10th Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
CP N5 Theory Test 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade