You are on page 1of 7

0

ECMAScript is a __________
ES6 is the implementation of?
All major JavaScript Implementations are based on which standard?
ES6 is officially called ______________
ES6 can be used for ______________
During destructuring, you can either declare variables or assign to them, or both.
Which of the following parameters can be used to expand a single array into multiple arguments?
const { x, y } = { x: 11, y: 8 };
is the Same as
const { x: x, y: y } = { x: 11, y: 8 };
Destructuring helps us to extract multiple values from an object via __________.
What will be the output of following code snippet?
function foo(a = 10, b = 5) {
console.log(a, b);
}
foo(6);
The following code implements the ______ feature of ES6
function myFunction(x, y, z) { }
var args = [0, 1, 2];
myFunction(...args);
"Rest" collects all variables into a single array, while "Spread" expands a single variable into multiple.
Which of the following parameters can be used to define indefinite number of parameters in one single array?
Template literals does not allow us to _________.
Which is not a lexical inside arrow functions?
Variables declared in a scope are accessible in ___________.
In Arrow functions, if there is only one parameter and that parameter is an identifier then the parentheses can be omitted.
Template literals support ____________.
Template literals can be reused __________.
const func= (
x,
y
) => {
return x + y;
};
func(11,12);

Select the wrong code Snippet


Instead of using single quotes or double quotes, es6 uses BACKTICK or OPENQUOTE ( " ` " ) character to create destructuring pattern.
Arrow Functions are less verbose than traditional functions
Template literals can be defined as _________.
Which keywords can be used to implement inheritance in ES6?
We can use this data-type to avoid repetitions.
The bodies of class declarations and class expressions are executed in strict mode.
class Player extends Student {
constructor(roll, name) {
super(roll, name);
this.Player = true;
}
};
_________ feature helps us to simplify the inheritance concept.
Maps can be used to store __________.
Map can use _______ value as Key.
Which is not true about constructor in ES6?
Which is not true about static methods?
Sets can be used to store __________.
Objects declared as "const" are immutable.
Which of the following does not declare a block scoped variable?
What is the significance of the following code snippet?
for (let i = 0; i < 10; i++) {
x += 10;
}
Which of the following statements is not true about level of scope?
I. let keyword declares a block scoped variable.
II. var keyword declares a block scoped variable.
III. const keyword declares a block scoped variable.
IV. let and const are similiar to each other.
What is the scope of the variable "a" in function below?
function val(x){
if(x>0){
let a = x;
console.log(a);
}
}
Keyword "let" allows redeclaring variables.
Promise reactions are callbacks that you register with the Promise method then(), to be notified of a fulfillment or a rejection.
What if promise2 get rejected in the following syntax? Promise.all(promise1, promise2, .....)
Which of the following is not a state of Promise?
A Promise has _________ number of states.
Symbols can be created using the factory function _________.
Declaring variables with which of the following keywords, will make the variable immutable?
What is the meaning of the following line of code?
const pi=3.14;
Variables declared with which of the following constructs do not have block scope?
What will be the output of this code?
var sym = new Symbol();
What will be the output of following code snippet?
const cart =Object.freeze({ name: 'Dove', price: '4.50' });
cart.price = '5.10' ;
console.log(cart);
What will be printed if the following code is executed?
let x=150;
if(x>100)
{
x=1;
}
console.log(x);
Which method can be used to retrieve symbols from the global symbols registry?
ES6 is the first time that JavaScript has built-in modules.
Using yield(), Generators can receive input from _________.
Language Standard
ECMAScript
ECMAScript
ECMA Script 2015
Both client side and server side scription
0
Spread

Object Pattern

6,5
6,5
6,5

Spread

1
rest

None of the options


None of the options
All scopes nested inside it
1

interpolation
1
23

const func1 = (x, y) => { return x + y; };


0
1

multi-line string literals that support interpolation


extends
Sets
1
Constructor of the Parent Class
Classes
Key - value pairs
Any
A class may have any number of constrcutors
Static methods can be directly called with the help of a class object.
Heterogeneous data
0
var

The variable i is valid only inside the for loop

I & III are true and II and IV are false.

Block
0
1
It will reject the entire set
Approved
3
Symbol()
Const

Const turns variables into constants, and they can’


var

Syntax Error

{name: 'dove',price '4,50'}


{name: 'dove',price '4,50'}

1
Symbol.KeyFor()
1
next()

You might also like