Tag: programming languages

Questions Related to programming languages

Which of the following HTTP response codes indicate a successful response from the server

  1. 200

  2. 304

  3. 404

  4. None of The above


Correct Option: A

onreadystatechange is a method of XMLHttpRequest Object

  1. True

  2. False


Correct Option: B

POST requests can also be send through the open method of the XMLHttpRequest Object

  1. True

  2. False


Correct Option: B

All the HTML objects like Form, Select, Textarea and others are implicitly an instance of Element as well

  1. True

  2. False


Correct Option: B

window.location.href="www.google.com". The given statement when executed would result in one of the following:

  1. It will give an error

  2. It will execute and nothing will happen

  3. It will execute and www.google.com is going to open

  4. None of The above


Correct Option: C
  1. When browser is closed

  2. When the page reloads as well.

  3. Only when you navigate out of the page.

  4. All Of the Above


Correct Option: D