Single Choice Question

  1. How to redirect to another page?
    1. window.location.href = "https://www.newPage.html";
    2. window.location.src = "https://www.newPage.html";
    3. window.location.url = "https://www.newPage.html";
    4. window.url = "https://www.newPage.html";
  2. The object contains information such as resolution, color depth, pixel depth is
    1. window
    2. location
    3. screen
    4. history
  3. The method of the History object is used to go back to the previous page in session history is
    1. window.history.back()
    2. window.history.forward()
    3. window.history.go(-2);
    4. window.history.go();

True or False Question

  1. The window object is used to access the browser window.
  2. The screen object is used to access the screen information of the browser, such as resolution.
  3. The location object is used to access or change the URL of the current page.
  4. The navigator object is used to access the browser window information.
  5. The history object is used to access the URL of the current page.
  6. The method setTimeout() is used to execute a code repeatedly after a given interval.

Definition of Term

  1. window object
  2. history object
  3. location object
  4. navigator object
  5. screen object

Short Answer

  1. Try to explain the most important objects of BOM?
  2. Try to explain the difference between window and document object.
  3. Try to explain the difference between setInterval() and setTimeout().