JavaScript Language | 10 Minute‐Test 23


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 most appropriate database for developers requiring huge amount of data?

A.
Database
B.
Datawarehouse
C.
Web databases
D.
Access

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

Developers who need to work with really huge amounts of data like to use databases, and the most recent browsers have started to integrate client-side database functionality into their browsers.

2.

What is the code for getting the current time?

A.
now = new Date();
B.
var now = new Date();
C.
var now = Date();
D.
var now = new Date(current);

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

The above code determines the current time and stores it in the variable “now”.

3.

Which Window object method is used to display message in a dialog box?

A.
alert()
B.
prompt()
C.
message()
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

The Window object also defines methods like alert(), which displays a message in a dialog box.

4.

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

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

One of the most important event handlers is the onload handler of the Window object. It is triggered when the content of the document displayed in the window is stable and ready to be manipulated. JavaScript code is commonly wrapped within an onload event handler.

5.

Which is the in-house library of Yahoo!?

A.
Dojo
B.
YUI
C.
Prototype
D.
Closure

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

YUI is the in-house library of Yahoo!, and it is used on their home page.

6.

Which method receives the return value of setInterval() to cancel future invocations?

A.
clearInvocation()
B.
cancelInvocation()
C.
clearInterval()
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

Like setTimeout(), setInterval() returns a value that can be passed to clearInterval() to cancel any future invocations of the scheduled function.

7.

What is the function used to extract arguments from the search property of a URL?

A.
urlArgs()
B.
url()
C.
hash()
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

The urlArgs() function can be used to extract arguments from the search property of a URL.

8.

What is the special feature of the modern web applications?

A.
Can alter contents without loading document
B.
Must load the document to manipulate
C.
Both a and b
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

Modern web applications can dynamically alter their own content without loading a new document.

9.

A new web browser window can be opened using which method of the Window object ?

A.
createtab()
B.
Window.open()
C.
open()
D.
All of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

You can open a new web browser window with the open() method of the Window object. Window.open() loads a specified URL into a new or existing window and returns the Window object that represents that window.

10.

The nodes that represent HTML elements are the

A.
Subclass nodes
B.
HTML nodes
C.
Window nodes
D.
Element nodes
Submit your test now to view the Results and Statistics with answer explanation.