APA1 - Quick JS recap
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Steve Rich
Used 4+ times
FREE Resource
Enhance your content in a minute
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output on line 7?
7
13
14
15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line has on it a template string literal?
Line 1
Line 2
Line 4
Line 6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line in this conditional will be executed?
Line 4
Line 6
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In this code, what is the purpose of the " ? : " symbols?
It's a conditional ternary operator used to assign a value to canVote based on the age.
It's a syntax error, and the code won't run.
It's a shorthand way to define an if-else statement.
It's used to compare the value of age with 18.
Answer explanation
The ? : symbols represent the ternary operator in JavaScript. It's a concise way to write an if-else statement in a single line. In this case, it checks if age is greater than or equal to 18. If true, it assigns "Yes" to canVote; otherwise, it assigns "No".
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In this code, when would the grade be set to "F"?
When score is greater than or equal to 90.
When score is between 80 and 89 (inclusive).
When score is between 70 and 79 (inclusive).
When score is between 60 and 69 (inclusive).
When score is less than 60.
Answer explanation
The code uses nested ternary operators to assign a grade based on the score. The final part of the expression : "F" acts as a default case. This means that if none of the previous conditions are met (i.e., the score is not greater than or equal to 60), the grade will be set to "F".
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In this code, what would happen if the day was "Tuesday"?
It would log to the console: "It's the start of the week."
It would log to the console: "It's midweek!"
It would log to the console: "It's the weekend!"
It would log to the console: "It's just another day."
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this code, what would happen if the time was -5?
It would log "Good morning!" to the console.
It would log "Good afternoon!" to the console.
It would log "Good evening!" to the console.
There would be a syntax 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
Already have an account?
Similar Resources on Wayground
15 questions
E-Commerce M1
Quiz
•
University
19 questions
Categories of Computers
Quiz
•
9th Grade - University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
12 questions
หน่วยที่ 2 หลักการและความสำคัญของเครือข่ายคอมพิวเตอร์
Quiz
•
University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
15 questions
GK Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
