Explore topic-wise MCQs in Technical Programming.

This section includes 47 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

 Which of the following Node types have a node value equal to null?

A. Document
B. DocumentFragment
C. DocumentType
D. All of the mentioned
Answer» E.
2.

 What is the property textContent?

A. Sets the textual content of a node
B. Returns the textual content of a node
C. Both a and b
D. None of the mentioned
Answer» D. None of the mentioned
3.

The events that represents occurrences related to the browser window are

A. Window
B. Element
C. Display
D. Handlers
Answer» B. Element
4.

Which of the following key property holds the key name as a string?

A. keyName
B. key
C. keyName(string)
D. Nameofkey(string)
Answer» C. keyName(string)
5.

The process by which the browser decides which objects to trigger event handlers on is

A. Event Triggering
B. Event Listening
C. Event Handling
D. Event propogation
Answer» E.
6.

What is the datatype of the go() method’s parameter?

A. String
B. Integer
C. Double
D. Float
Answer» C. Double
7.

Which of the following property specifies the string of text that was entered?

A. message
B. data
C. string
D. text
Answer» C. string
8.

Which of the following defines the Cookie visibility?

A. Document Path
B. localStorage
C. sessionStorage
D. All of the mentioned
Answer» E.
9.

Which is the most appropriate database for developers requiring huge amount of data?

A. Database
B. Datawarehouse
C. Web databases
D. Access
Answer» D. Access
10.

What will be the reaction when a catch clause has no conditionals ?

A. Takes it to be 0
B. Takes it to be 1
C. Takes it to be true
D. Takes it to be false
Answer» D. Takes it to be false
11.

What does the subexpression /java(script)?/ result in ?

A. It matches “java” followed by the optional “script”
B. It matches “java” followed by any number of “script”
C. It matches “java” followed by a minimum of one “script”
D. None of the mentioned
Answer» B. It matches “java” followed by any number of “script”
12.

Consider the following statement containing regular expressions   var text = "testing: 1, 2, 3";    var pattern = /\d+/g;   In order to check if the pattern matches, the statement is

A. text==pattern
B. text.equals(pattern)
C. text.equals(pattern)
D. pattern.test(text)
Answer» E.
13.

To define each of the set classes as a property of the sets object (namespace) for the module, the statement is

A. sets = sets.AbstractEnumerableSet.extend();
B. sets.SingletonSet = sets.AbstractEnumerableSet.extend(...);
C. sets.SingletonSet = sets.extend(...);
D. sets = sets.extend(...);
Answer» C. sets.SingletonSet = sets.extend(...);
14.

Which are the two functions that are not allowed in any secure subset?

A. evaluate() and restrict()
B. eval() and the Function() constructor
C. debugger() and test()
D. eval() and debugger()
Answer» C. debugger() and test()
15.

Why was “The Good Parts” designed as a language subset in JavaScript?

A. To improve programmer flexibility
B. To balance the work load of the programmer
C. To create an in-built compiler and interpreter
D. To improve programmer productivity
Answer» E.
16.

Consider the following code snippet   console.log(p)   If p is not defined, what would be the result or type of error?

A. Zero
B. Null
C. ReferenceError
D. ValueNotFoundError
Answer» D. ValueNotFoundError
17.

When a class B can extend another class A, we say that

A. A is the superclass and B is the subclass
B. B is the superclass and A is the subclass
C. Both A and B are the superclass
D. Both A and B are the subclass
Answer» B. B is the superclass and A is the subclass
18.

 The basic difference between JavaScript and Java is

A. There is no difference
B. Functions are considered as fields
C. Variables are specific
D. functions are values, and there is no hard distinction between methods and fields
Answer» E.
19.

Which are usually variables that are used internally in object methods and also are globally visible variables?

A. Object properties
B. Variable properties
C. Method properties
D. Internal properties
Answer» C. Method properties
20.

Which of the following attributes are common to both audio and video?

A. enter
B. control
C. controls
D. All of the mentioned
Answer» D. All of the mentioned
21.

Which of the following is not the property of the video tag?

A. width
B. height
C. breadth
D. None of the mentioned
Answer» D. None of the mentioned
22.

Which of the following elements are used to include audio?

A. audio
B. video
C. svg
D. All of the mentioned
Answer» B. video
23.

Which HTML element is used to include images?

A. image
B. img
C. src
D. sourceimg
Answer» C. src
24.

 Which is the method invoked to begin a path?

A. begin()
B. path()
C. createPath()
D. beginPath()
Answer» E.
25.

What is the returning value of the getContext() method?

A. Drawing model
B. CanvasRenderingContext2D object
C. Context2D object
D. None of the mentioned
Answer» C. Context2D object
26.

From which version of IE is canvas supported?

A. 7
B. 8
C. 9
D. Not yet supported
Answer» D. Not yet supported
27.

What is the return type of the remote server?

A. HTTP Response
B. HTTP Request
C. Get Request
D. None of the mentioned
Answer» B. HTTP Request
28.

What is the purpose of the JavaScript Engine?

A. Compiling the JavaScript
B. Interpreting the JavaScript
C. Both a and b
D. None of the mentioned
Answer» C. Both a and b
29.

Which of the following browsers use Webkit?

A. Chrome
B. Internet Explorer
C. Safari
D. Both a and c
Answer» E.
30.

What does Rhino do when the getter and setter methods exist?

A. It becomes JavaScript properties
B. Java classes are used to avoid them
C. Both a and b
D. None of the mentioned
Answer» B. Java classes are used to avoid them
31.

Which handler is triggered when the content of the document in the window is stable and ready for manipulation?

A. onload
B. manipulate
C. create
D. None of the mentioned
Answer» B. manipulate
32.

Which identifier is used to represent a web browser window or frame?

A. frames
B. window
C. location
D. frame
Answer» C. location
33.

One of the main advantage of using src attribute is

A. It becomes self-cached
B. It makes the HTML file modular
C. It restricts manipulation in the HTML file
D. It simplifies the HTML files
Answer» E.
34.

Which of the following are not advanced services?

A. Data storage
B. Networking
C. XMLHttpRequest object
D. None of the mentioned
Answer» E.
35.

What does Dojo and YUI have in common?

A. Facilitates DOM utilities and UI Widgets
B. Doesnot facilitates DOM utilities and UI Widgets
C. Client-side library
D. None of the mentioned
Answer» B. Doesnot facilitates DOM utilities and UI Widgets
36.

Which is the in-house library of Yahoo!?

A. Dojo
B. YUI
C. Prototype
D. Closure
Answer» C. Prototype
37.

Among the below given functions, Node supports which of the following client-side timer functions?

A. getInterval()
B. Interval()
C. clearTime()
D. clearTimeout()
Answer» E.
38.

What is the alternative command used in Node for load()?

A. store()
B. module()
C. log()
D. require()
Answer» E.
39.

Consider the below given syntax   book[datatype]=assignment_value;   In the above syntax, the datatype within the square brackets must be

A. An integer
B. A String
C. An object
D. None of the mentioned
Answer» C. An object
40.

Consider the following code snippet   function f(o)  {      if (o === undefined) debugger; } What could be the task of the statement debugger?

A. It does nothing but a simple breakpoint
B. It debugs the error in that statement and restarts the statement’s execution
C. It is used as a keyword that debugs the entire program at once
D. All of the mentioned
Answer» B. It debugs the error in that statement and restarts the statement’s execution
41.

One of the special feature of an interpreter in reference with the for loop is that

A. Before each iteration, the interpreter evaluates the variable expression and assigns the name of the property
B. The iterations can be infinite when an interpreter is used
C. The body of the loop is executed only once
D. All of the mentioned
Answer» B. The iterations can be infinite when an interpreter is used
42.

JavaScript Code can be called by using

A. RMI
B. Triggering Event
C. Preprocessor
D. Function/Method
Answer» E.
43.

  For the below mentioned code snippet:   var o = new Object();   The equivalent statement is:

A. var o = Object();
B. var o;
C. var o= new Object;
D. Object o=new Object();
Answer» D. Object o=new Object();
44.

Consider the following statements   var text = "testing: 1, 2, 3"; // Sample text   var pattern = /\d+/g // Matches all instances of one or more digits   In order to check if the pattern matches with the string “text”, the statement is

A. text==pattern
B. text.equals(pattern)
C. text.test(pattern)
D. pattern.test(text)
Answer» E.
45.

What will happen if a return statement does not have an associated expression?

A. It returns the value 0
B. It will throw an exception
C. It returns the undefined value
D. None of the mentioned
Answer» D. None of the mentioned
46.

What is the fundamental rule of lexical scoping?

A. Functions are declared in the scope
B. Functions are executed using scope chain
C. Both a and b
D. None of the mentioned
Answer» C. Both a and b
47.

The pop() method of the array does which of the following task ?

A. decrements the total length by 1
B. increments the total length by 1
C. prints the first element but no effect on the length
D. None of the above
Answer» B. increments the total length by 1