JavaScript Language | 10 Minute‐Test 19


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 are the forms of client-side storage?

A.
Web Databases
B.
FileSystem API
C.
Offline Web Applications
D.
All of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

The various forms of client-side storage are web databases, filesystem API, Offline web applications and cookies.

2.

Which of the following is a way of embedding Client-side JavaScript code within HTML documents?

A.
From javascript:encoding
B.
External file specified by the src attribute of a “script” tag
C.
Both a and b
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

The Client-side JavaScript code is embedded within HTML documents in four ways :
1.Inline, between a pair of “script” tags
2.From an external file specified by the src attribute of a “script” tag
3.In an HTML event handler attribute, such as onclick or onmouseover
4.In a URL that uses the special javascript: protocol.

3.

The word “document” mainly refers to

A.
Dynamic Information
B.
Static Information
C.
Both a and b
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

Some pages present static information and can be called documents.

4.

What is the property to access the first child of a node?

A.
timestamp.Child1
B.
timestamp.Child(1)
C.
timestamp.Child(0)
D.
timestamp.firstChild

Your Answer: Option (Not Answered)

Correct Answer: Option D

Explanation:

The first child of a node can be accessed using the firstChild property.

5.

The libraries that build a new higher-level API for client-side programming is

A.
Library
B.
Framework
C.
APIs
D.
All of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

Many web developers find it useful to build their web applications on top of a clientside framework library. These libraries are “frameworks” in the sense that they build a new higher-level API for client-side programming on top of the standard and proprietary APIs offered by web browsers: once you adopt a framework, your code needs to be written to use the APIs defined by that framework.

6.

Which function among the following lets to register a function to be invoked once?

A.
setTimeout()
B.
setTotaltime()
C.
Intervalset()
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

setTimeout() and setInterval() allow you to register a function to be invoked once or repeatedly after a specified amount of time has elapsed.

7.

The URL property belongs to which of the following object?

A.
Document
B.
Element
C.
Location
D.
All of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option A

Explanation:

The Document object has a URL property, which is a static string that holds the URL of the document when it was first loaded.

8.

What is the code snippet to go back to a history twice?

A.
history(2);
B.
history(-2);
C.
history.go(-2);
D.
history.go(2);

Your Answer: Option (Not Answered)

Correct Answer: Option C

Explanation:

The above code snippet goes back 2, like clicking the Back button twice.

9.

Each tab in the single web browser window is called as

A.
Browser Information
B.
Browsing context
C.
Both a and b
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

A single web browser window on your desktop may contain several tabs. Each tab is an independent browsing context.

10.

The central object in a larger API is known as

A.
Document Object Material
B.
Document Object Model
C.
Binary Object Model
D.
None of the mentioned

Your Answer: Option (Not Answered)

Correct Answer: Option B

Explanation:

The Document object does not stand alone, however. It is the central object in a larger API, known as the Document Object Model, or DOM, for representing and manipulating document content.


Submit your test now to view the Results and Statistics with answer explanation.