ECMAScript6 Hands-On Fresco Play Final Assessment Answer – Symbols – Destructuring Content – Classes – Arrow Functions

Disclaimer: The main motive to provide this solution is to help and support those who are unable to do these courses due to facing some issue and having a little bit lack of knowledge. All of the material and information contained on this website is for knowledge and education purposes only.
1.ES6 is the first time that JavaScript has built in models
a. False
b. True
Answer: True.
2.The following are states of promis, except _________.
a. Resolved
b. Rejected
c. Pending
d. Approved
Answer : Approved.
3.Variables declared in scope are accessible ___________.
a. None of the options
b. Anywhere in the program
c. In that scope only
D. In all scope nested inside it
Answer: In all scope nested inside it
4.The bodies of class declaration and a class expression are executed in the strict mode
a. True.
b. False.
Answer: True
5. Maps can be used to store ___________.
a. Relative mapping
b. Hash values
c. Geographical data
D. Key value pairs
Answer: Key value pairs
6. During distruvcturing, you can either declare variables or assign to them, or both
a. True.
b. False.
Answer: False
7.It is always a good practice to physically separate the code based on ____________.
a. Dependency
B. Requirement
c. All the options
d. Functionality
Answer: Functionality
8. Template literals can be reused
a. True.
b. False.
Answer: True
9.ECMAScript is a __________.
a. Language standard
b. Scripting language
c. Programming standard
d.Programming language
Answer: Language standard
10. “Class player extends student”
which of the following is not true about the above line code?
- Student is the parent class
- Student derives the properties of the player class
- Player is the child class
- Player derives the properties of the student class
Answer: Student derives the properties of the player class
11.Arrow functions are less verbose than traditional functions
a. True.
b. False.
Answer: True
12. Which keyword can be used to implement inheritance in ES6?
a. Extends
b. Inherits
c. Derives
d. Implements
Answer: Extends
13. What will be printed if the following code is executed.
let x = 150;
if(x>100) {
x=1
}
Console.log(x) ;
a.1
b. 150
c. error
d. 100
Answer: 1
14.Template literals does not allow us to ________.
a.Build complex HTML and XML templates
b.None of the options
c. Evaluate an expression in template
d. create complex string easily
Answer: None of the options
15. The keyword let allows redeclaring variables
a. True.
b. False.
Answer: False
16. __________ features help us to simplify the inheritance concept
a. Functions
b. Modules
c. Classes
d. Child
Answer: Classes
17.Variables declared with which of the following constructs do not have the block scope
a. Const
b. Let
c. Var
Answer: Const
18.Map can use _______ value as key
a. Location
b. Any
c. String
d.Hash
Answer: Any
19. Which of the following parameter can be used to expand a single array into multiple arguments
a. Rest
b. Spread
c. Default
Answer: Spread
20.Declaring variables with which of the following keyword will make the variable immutable
a. Let
b. Var
c. Const