
Functional Programming in JavaScript
Authored by Anonymous Anonymous
Mathematics
1st - 5th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Let point be an object { x: 0, y: 0 }. What is the result of { x: 1, ...point }?
{ x: 0, y: 0 }
{ x: 0, y: 1 }
{ x: 1, y: 0 }
{ x: 1, y : 1 }
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the output of the console.log?
{ x: 0, y: 0 }
[ 0, 0 ]
undefined
[Function: getPoint]
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What will happen if the following code is executed?
A SyntaxError will be raised in the first line.
A SyntaxError will be raised in the second line.
The console.log will output [] (i.e. the empty array)
The console.log will output [Function (anonymous)]
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does { ...obj1, ...obj2 } do (assuming that obj1 and obj2 are objects)?
Creates a new object containing obj1 and obj2 as properties.
Creates a new object containing the keys of obj1 and obj2 as properties.
Creates a new object containing keys of obj1 and obj2 as properties unless obj1 or obj2 have equal keys.
Copies obj2 into obj1.
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these statements about the filter method is true?
It retrieves all of the elements that meet a certain predicate
The returned elements are deep copied
The returned elements are shallow copied
It only works for primitive values
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does the expression Object.entries({ x: 0, y: 0 }).map(([x1, x2]) => [x1, x2]) return?
{ x: 0, y: 0 }
[ [ 'x', 0 ], [ 'y', 0 ] ]
Nothing, a SyntaxError will happen
[ 0, 0 ]
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these statements are true about pure functions?
They have no side effects
They are easily testable
They don't mutate global state
Their output(s) depends only on their input(s)
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
10 questions
EXAMEN FINAL (MATEMATICAS) - GRADO: Quinto
Quiz
•
1st Grade
10 questions
الاعداد حتى 10,000
Quiz
•
3rd Grade
10 questions
SIMETRI LIPAT DAN PUTAR PADA BANGUN DATAR
Quiz
•
3rd Grade
10 questions
Tema 6 Mate - Operaciones decimales
Quiz
•
5th Grade
10 questions
PERKALIAN 2
Quiz
•
4th Grade
11 questions
Multiplication in math(x)
Quiz
•
3rd - 4th Grade
12 questions
La multiplicaciòn
Quiz
•
3rd Grade
10 questions
Mental Math
Quiz
•
4th - 5th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Mathematics
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
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
15 questions
Adding and Subtracting Fractions with Like Denominators
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade