JavaScript Questions & Answers – JavaScript Subsets

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “JavaScript Subsets”. 1. The Crockford’s subset does not include which function in JavaScript? a) eval() b) coeval() c) equal() d) equivalent() 2. What does javascript use instead of == and !=? a) It uses bitwise checking b) It uses === and !== instead … Read more

advertisement

JavaScript Questions & Answers – Pattern Matching and Regular Expressions

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Pattern Matching and Regular Expressions”. 1. The ‘$’ present in the RegExp object is called a ____________ a) character b) matcher c) metacharacter d) metadata 2. Consider the following JavaScript statement containing regular expressions and check if the pattern matches? var text = … Read more

advertisement

JavaScript Questions & Answers – Modules in JavaScript

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Modules in JavaScript”. 1. The functions provide() and require() of Dojo toolkit and Google’s Closure library are used for ___________ a) declaring and loading modules b) declaring functions c) declaring modules d) loading modules 2. The maximum number of global symbols a module … Read more

advertisement

JavaScript Questions & Answers – Augmentation of Classes

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Augmentation of Classes”. 1. The four kinds of class members are ________ a) Instance methods, Instance fields, Static method, Dynamic method b) Instance fields, Instance methods, Class fields, Class methods c) Instance fields, Non-instance fields, Dynamic methods, Global methods d) Global methods, Local … Read more

advertisement

JavaScript Questions & Answers – Classes in JavaScript

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Classes in JavaScript”. 1. The behaviour of the instances present of a class inside a method is defined by __________ a) Method b) Classes c) Interfaces d) Classes and Interfaces 2. The keyword or the property that you use to refer to an … Read more

advertisement

JavaScript Questions & Answers – Closures

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Closures”. 1. What kind of scoping does JavaScript use? a) Literal b) Lexical c) Segmental d) Sequential 2. What must be done in order to implement Lexical Scoping? a) Get the object b) Dereference the current scope chain c) Reference the current scope … Read more

advertisement

JavaScript Questions & Answers – Functions and Functional Programming

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Functions and Functional Programming”. 1. What will be the output of the following JavaScript statement? var grand_Total=eval("10*10+5"); a) 10*10+5 b) 105 as a string c) 105 as an integer value d) Exception is thrown 2. Do functions in JavaScript necessarily return a value? … Read more

advertisement

JavaScript Questions & Answers – Defining and Invoking Functions

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Defining and Invoking Functions”. 1. The function definitions in JavaScript begins with _____________ a) Identifier and Parentheses b) Return type and Identifier c) Return type, Function keyword, Identifier and Parentheses d) Identifier and Return type 2. What will be the output of the … Read more

advertisement

JavaScript Questions & Answers – Array and Related Methods

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Array and Related Methods”. 1. What is the observation made in the following JavaScript code? var count = [1,,3]; a) The omitted value takes “undefined” b) This results in an error c) This results in an exception d) The omitted value takes an … Read more

advertisement

JavaScript Questions & Answers – Object Attributes and Serialization

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Object Attributes and Serialization”. 1. The unordered collection of properties, each of which has a name and a value is called _________ a) String b) Object c) Serialized Object d) Array 2. The object has three object attributes namely ________ a) Class, parameters, … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.