Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java Script C15 Question 1 (1 point) Which property of the location object can b

ID: 3919903 • Letter: J

Question

Java Script C15

Question 1 (1 point)

Which property of the location object can be used to retrieve the query string from the URL?

Question 1 options:

search

query

params

options

Save

Question 2 (1 point)

Which property of the location object can be used to retrieve the complete URL?

Question 2 options:

path

host

hostname

href

Save

Question 3 (1 point)

The reload() method of the location object has an optional force parameter. If it’s set to true, the browser

Question 3 options:

loads the page from the client

loads the page from cache memory

loads the page from the server

doesn’t reload the page

Save

Question 4 (1 point)

Which of the following statements loads a new page and overwrites the current history page?

Question 4 options:

location.reload();

location.replace("http://wwww.murach.com");

history.replace("http://wwww.murach.com");

history.go("http://wwww.murach.com");

Save

Question 5 (1 point)

Which of the following is not a method of the history object?

Question 5 options:

replace()

back()

forward()

go()

Save

Question 6 (1 point)

Which of the following statements goes back one step in the URL history?

Question 6 options:

history.length = -1;

history.go(1);

history.back();

history.go("back");

Save

Question 7 (1 point)

Session cookies

Question 7 options:

must not have a path

are deleted when the browser is closed

are always encrypted when sent to the web server

are stored on the hard drive

Save

Question 8 (1 point)

Which attribute of a cookie do you set to create a persistent cookie?

Question 8 options:

max-age

path

domain

secure

Save

Question 9 (1 point)

The max-age attribute of a cookie is specified in

Question 9 options:

days

hours

seconds

milliseconds

search

query

params

options

Explanation / Answer

1)Answer:

search

Explanation:

The search property sets or returns the querystring part of a URL, including the question mark (?)

2)Answer:

href

3)Answer:

loads the page from cache memory

Explanation:

The reload() method does the same as the reload button in your browser. By default, the reload() method reloads the page from the cache, but you can force it to reload the page from the server by setting the forceGet parameter to true: location.reload(true).

5)Answer:

replace()

Explanation:

History Object Methods are back( ),forward( ),go( )

7)Answer:

are deleted when the browser is closed

Explanation:

Also called a transient cookie, a cookie that is erased when the user closes the Web browser. The session cookie is stored in temporary memory and is not retained after the browser is closed. Session cookies do not collect information from the user s computer

9)Answer:

seconds

Explanation:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote