Server Side And Client Side Scripting - Study Mode

[#1] The word “document” mainly refers to
Correct Answer

(B) Static Information

Explanation

Solution: Some pages present static information and can be called documents.

[#2] Which object is the main entry point to all client-side JavaScript features and APIs?
Correct Answer

(C) Window

Explanation

Solution: 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.

[#3] Which identifier is used to represent a web browser window or frame?
Correct Answer

(B) window

Explanation

Solution: 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] Which property in the Window object is used to refer to a Location object?
Correct Answer

(D) location

Explanation

Solution: The Window object defines properties like location, which refers to a Location object that specifies the URL currently displayed in the window and allows a script to load a new URL into the window.

[#5] Which Window object method is used to display message in a dialog box?
Correct Answer

(A) alert()

Explanation

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