This document contains 14 multiple choice questions about JavaScript. The questions cover topics such as where JavaScript code runs, what JavaScript can be used for, valid and invalid variable declarations in JavaScript, and that JavaScript is an object-based language. Each question includes the answer and time and difficulty metrics.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9K views
Javascript MCQ Part 1
This document contains 14 multiple choice questions about JavaScript. The questions cover topics such as where JavaScript code runs, what JavaScript can be used for, valid and invalid variable declarations in JavaScript, and that JavaScript is an object-based language. Each question includes the answer and time and difficulty metrics.
(a) Read From or Write to Files in the Client (b) Access Web Pages Hosted on Another Domain (c) Protect Your Page Source or Images (d) Real-time Networking Apps Ans: (d) Time(sec): 10 | Complexity: Easy
Q(3). What are possible work through the Javascript code
(A) Web/Mobile Apps (B) Gaming (C) Command line tools (D) Video streaming
(a) Only (b) A & D (c) A, B & D (d) All Ans: (d) Time(sec): 10 | Complexity: Easy
Q(4). Node is combination of _______________ Technology which
helps Javascript to run outside of Browser. (a) C# and SpiderMonkey (b) v8 and C++ (c) SpiderMonkey and v8 (d) JVM and Javascript Engine Ans: (b) Time(sec): 20 | Complexity: Medium
Q(6). which are the invalid variable assignment in Javascript
(a) var xor = "javaScript"; (b) let for = "function"; (c) const ifelse = "loop"; (d) var lets = "while"; Ans: (b) Time(sec): 20 | Complexity: Easy
Q(7). which are the valid variable assignment in Javascript
(a) var x y = "javaScript"; (b) let new-javascript = "function"; (c) var 2Count = "loop"; (d) var my_name = "Joe"; Ans: (d) Time(sec): 20 | Complexity: Easy
"use strict"; x = 23; var x; (a) 23 (b) null (c) undefined (d) Error : 'x' is not declared
Ans: (d) Time(sec): 10 | Complexity: Medium
Q(10). Question On Variables declared with following which syntax
(a) int num; (b) Integer num; (c) integer num; (d) var num; Ans: (d) Time(sec): 10 | Complexity: Easy
Q(11). javaScript variable is a Case__________________
(a) Non Sensetive (b) Sensetive (c) A and B (d) None of above Ans: (b) Time(sec): 10 | Complexity: Easy Q(12). Multiple Declaration of variables are separated by __________________ (a) Comma (b) SemiColon (c) Astrisk (d) Colon Ans: (a) Time(sec): 10 | Complexity: Easy
Q(13). We can declare ___________________ at a time. Select most
appropriate option (a) One or More Variables (b) More than one variable (c) One Variable Only (d) None of these Ans: (a) Time(sec): 10 | Complexity: Medium