JavaScript Language | 10 Minute‐Test 21


Instruction

  • Total number of questions : 10.
  • Time alloted : 10 minutes.
  • Each question carry 1 mark.
  • No Negative marks
  • DO NOT refresh the page.
  • All the best :-).

1.

Which is the Microsoft’s own proprietary client-side storage?

A.
IE User Data
B.
Offline Web Applications
C.
Cookies
D.
All of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

Microsoft implements its own proprietary client-side storage mechanism, known as “userData,” in IE5 and later. userData enables the storage of medium amounts of string data and can be used as an alternative to Web Storage in versions of IE before IE8.

2.

Which character in JavaScript code will be interpreted as XML markup?

A.
!
B.
>
C.
&
D.
.

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

If your JavaScript code contains the < or & characters, these characters are interpreted as XML markup.

3.

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

A.
frames
B.
window
C.
location
D.
frame

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

The Window object is the main entry point to all client-side JavaScript features and APIs. It represents a web browser window or frame, and you can refer to it with the identifier window.

4.

The style property belongs to while of the following object?

A.
Element
B.
Window
C.
Location
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

Each Element object has style and className properties that allow scripts to specify CSS styles for a document element or to alter the CSS class names that apply to the element.

5.

Which of the following frameworks focuses on DOM and Ajax utilities?

A.
jQuery
B.
Prototype
C.
Dojo
D.
Both a and b

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

The Prototype library focuses on DOM and Ajax utilities like jQuery does, and adds quite a few core-language utilities as well.

6.

Which is the handler method used to invoke when uncaught JavaScript exceptions occur?

A.
onhalt
B.
onerror
C.
Both a and b
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

The onerror handler method can be registered to be invoked when uncaught JavaScript exceptions occur.

7.

Which among the following is not a property of the Location object?

A.
protocol
B.
host
C.
hostee
D.
hostname

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

The various properties of the location object are the protocol, host, hostname, port, search, and hash.

8.

The length property belongs to which of the following objects?

A.
Window
B.
Element
C.
History
D.
Document

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

The length property of the History object specifies the number of elements in the browsing history list, but for security reasons scripts are not allowed to access the stored URLs.

9.

What is the distinction made by the Client-side JavaScript between windows, tabs, iframes, and frames ?

A.
They are all browsing contexts
B.
They are all browsing informations
C.
They are all Window contexts
D.
They are all Window objects

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

Client-side JavaScript makes very little distinction between windows, tabs, iframes, and frames: they are all browsing contexts, and to JavaScript, they are all Window objects.

10.

The node directly above a node is called

A.
sibling
B.
child
C.
parent
D.
ancestors
Submit your test now to view the Results and Statistics with answer explanation.