JavaScript Questions & Answers – Loops in JavaScript

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Loops in JavaScript”. 1. What will be the output of the following JavaScript code? function printArray(a) { var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else { do { console.log(a[i]); } while (++i < len); } } a) … Read more

advertisement

JavaScript Questions & Answers – Statements

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Statements”. 1. JavaScript is a _______________ language. a) Object-Oriented b) High-level c) Assembly-language d) Object-Based 2. What will be the output of the following JavaScript code? var a=5 , b=1 var obj = { a : 10 } with(obj) { alert(b) } a) … Read more

advertisement

JavaScript Questions & Answers – Expressions and Operators

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Expressions and Operators”. 1. What will be the output of the following JavaScript code? var string1 = ”123”; var intvalue = 123; alert( string1 + intvalue ); a) 123246 b) 246 c) 123123 d) Exception 2. A function definition expression can be called … Read more

advertisement

JavaScript Questions and Answers – Types, Values and Variables

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Types, Values and Variables”. 1. JavaScript Code can be called by using ___________ a) RMI b) Triggering Event c) Preprocessor d) Function/Method 2. The type of a variable that is volatile is _______________ a) Volatile variable b) Mutable variable c) Immutable variable d) … Read more

advertisement

JavaScript Questions and Answers – Lexical Structure

This set of Javascript Multiple Choice Questions & Answers (MCQs) focuses on “Lexical Structure”. 1. The web development environment (JavaScript) offers which standard construct for data validation of the input entered by the user. a) Controlled loop constructs b) Server page access c) Client side Event d) Permit server-side 2. The main purpose of a … 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.