
ES6 Quiz 1
Quiz
•
Computers
•
Professional Development
•
Hard
Standards-aligned
Max Rolseth
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an arrow function in JavaScript that takes two parameters `x` and `y` and returns their sum?
`function(x, y) { return x + y; }`
`(x, y) => { return x + y; }`
`function x+y => { return x + y; }`
`(x, y) => x + y`
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a use of template literals in JavaScript?
To perform complex mathematical operations
To link CSS stylesheets
To embed expressions within string literals
To declare functions
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the spread syntax in JavaScript do?
It condenses multiple values into one array
It spreads the elements of an iterable (like an array) into individual elements
It encrypts data
It creates a new function
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a Promise in JavaScript?
A function that handles asynchronous operations
A data structure that stores multiple values
An object representing the eventual completion or failure of an asynchronous operation
A template for creating multiple objects
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the async/await syntax in JavaScript?
To handle exceptions in synchronous code
To make writing asynchronous code easier and more readable
To increase the execution speed of functions
To iterate over arrays
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you correctly capture the output of a Promise using async/await in JavaScript?
`let result = await Promise;`
`let result = async Promise;`
`let result = await Promise();`
`let result = Promise.await();`
Tags
DOK Level 2: Skill/Concept
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fifteen is 15 and not 20.
Fifteen is 15 and not 25.
Error
Tags
DOK Level 2: Skill/Concept
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
5 questions
Tie_Set_3
Quiz
•
Professional Development
15 questions
Coding Club Kahoot
Quiz
•
Professional Development
5 questions
Python - Numpy Quiz 1
Quiz
•
University - Professi...
10 questions
IT ENGLISH: Research Project Topics - Programming Languages
Quiz
•
Professional Development
10 questions
Introdução JavaScript
Quiz
•
Professional Development
10 questions
Web Development Quiz
Quiz
•
Professional Development
10 questions
ICT QUIZ M3
Quiz
•
Professional Development
12 questions
Javascript Avanzado ft-22b Grupo 5
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade