Hello friends in this post we are going to discuss about ECMA MCQs with Answer | ECMA Fresco Play TCS Dumps | ECMA Fresco Play Answers | ECMA TCS Tfactor Answers | ECMA Objective type questions with answer
Q.1 | ECMAScript is a __________ | Language Standard |
Q.2 | ES6 is the implementation of? | ECMAScript |
Q.3 | All major JavaScript Implementations are based on which standard? | ECMAScript |
Q.4 | ES6 is officially called ______________ | ECMA Script 2015 |
Q.5 | ES6 can be used for ______________ | Both client side and server side scription |
Q.6 | During destructuring, you can either declare variables or assign to them, or both. | FALSE |
Q.7 | Which of the following parameters can be used to expand a single array into multiple arguments? | Spread |
Q.8 | const { x, y } = { x: 11, y: 8 }; is the Same as const { x: x, y: y } = { x: 11, y: 8 }; | TRUE |
Q.9 | Destructuring helps us to extract multiple values from an object via __________. | Object Pattern |
Q.10 | What will be the output of following code snippet? function foo(a = 10, b = 5) { console.log(a, b); } foo(6); | 6,5 |
Q.11 | The following code implements the ______ feature of ES6 function myFunction(x, y, z) { } var args = [0, 1, 2]; | Spread |
Q.12 | “Rest” collects all variables into a single array, while “Spread” expands a single variable into multiple. | TRUE |
Q.13 | Which of the following parameters can be used to define indefinite number of parameters in one single array? | rest |
Q.14 | Template literals does not allow us to _________. | None of the options |
Q.15 | Which is not a lexical inside arrow functions? | None of the options |
Q.16 | Variables declared in a scope are accessible in ___________. | All scopes nested inside it |
Q.17 | In Arrow functions, if there is only one parameter and that parameter is an identifier then the parentheses can be omitted. | TRUE |
Q.18 | Template literals support ____________. | interpolation |
Q.19 | Template literals can be reused __________. | TRUE |
Q.20 | const func= ( x, y ) => { return x + y;}; func(11,12); | 23 |
Q.21 | Select the wrong code Snippet | const func1 = (x, y) => { return x + y; }; |
Q.22 | Instead of using single quotes or double quotes, es6 uses BACKTICK or OPENQUOTE ( ” ` ” ) character to create destructuring pattern. | FALSE |
Q.23 | Arrow Functions are less verbose than traditional functions | TRUE |
Q.24 | Template literals can be defined as _________. | multi-line string literals that support interpolation |
Q.25 | Which keywords can be used to implement inheritance in ES6? | extends |
Q.26 | We can use this data-type to avoid repetitions. | Sets |
Q.27 | The bodies of class declarations and class expressions are executed in strict mode. | TRUE |
Q.28 | class Player extends Student { | Constructor of the Parent Class |
Q.29 | _________ feature helps us to simplify the inheritance concept. | Classes |
Q.30 | Maps can be used to store __________. | Key – value pairs |
Q.31 | Map can use _______ value as Key. | Any |
Q.32 | Which is not true about constructor in ES6? | A class may have any number of constrcutors |
Q.33 | Which is not true about static methods? | Static methods can be directly called with the help of a class object. |
Q.34 | Sets can be used to store __________. | Heterogeneous data |
Q.35 | Objects declared as “const” are immutable. | FALSE |
Q.36 | Which of the following does not declare a block scoped variable? | var |
Q.37 | Keyword “let” allows redeclaring variables. | FALSE |
Q.38 | Promise reactions are callbacks that you register with the Promise method then(), to be notified of a fulfillment or a rejection. | TRUE |
Q.39 | What if promise2 get rejected in the following syntax? Promise.all(promise1, promise2, …..) | It will reject the entire set |
Q.40 | Which of the following is not a state of Promise? | Approved |
Q.41 | A Promise has _________ number of states. | 3 |
Q.42 | Symbols can be created using the factory function _________. | Symbol() |
Q.43 | Declaring variables with which of the following keywords, will make the variable immutable? | Const |
Q.44 | What is the meaning of the following line of code? const pi=3.14; | Const turns variables into constants, and they can’t be changed. |
Q.45 | Variables declared with which of the following constructs do not have block scope? | var |
Q.46 | What will be the output of this code? var sym = new Symbol(); | Syntax Error |
Q.47 | Which method can be used to retrieve symbols from the global symbols registry? | Symbol.KeyFor() |
Q.48 | ES6 is the first time that JavaScript has built-in modules. | TRUE |
Q.49 | Using yield(), Generators can receive input from _________. | next() |