JavaScript and Web Development Programming Quiz

Test your knowledge of JavaScript programming including DOM manipulation, XMLHttpRequest, HTTP protocols, and related web development concepts.

20 Questions Published

Questions

Question 1 True/False

Can we create multiple objects of a single class

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Object parameter of init method in servlet

  1. request
  2. ServletConfig
  3. ServletContext
  4. application
Question 3 Multiple Choice (Single Answer)

intern method is used for

  1. Finding length of string
  2. Clearing elements in Vector
  3. Comparing two Strings
  4. None of above
Question 4 Multiple Choice (Single Answer)

javax.swing.tree is

  1. Package
  2. class
  3. interface
  4. none of the above
Question 5 True/False

The following piece of javascript code is going to work fine. Trial Page

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

onUnload event of Javascript is fired in which of the following conditions

  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
Question 8 True/False

Javascript does not distinguish between name of a function and a variable

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

innerHTML, innerText, outerHTML and outerText. What are these of Element object

  1. Methods
  2. Properties
  3. Objects
  4. None of The above
Question 10 True/False

One can add custom method and properties to objects in javascript without using prototype as well.

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

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
Question 12 True/False

parseJSON is a standard function available in javascript like alert, eval and others.

  1. True
  2. False
Question 13 True/False

document.getElementById("trial").innerHTML() is a valid statement

  1. True
  2. False
Question 14 True/False

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

  1. True
  2. False
Question 15 True/False

It is possible to add custom methods and properties in pre-existing objects like String, Math and others

  1. True
  2. False
Question 16 True/False

onreadystatechange is a method of XMLHttpRequest Object

  1. True
  2. False
Question 17 True/False

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

  1. True
  2. False
Question 18 True/False

URL accessed through XMLHttpRequest's open method is stored in the history of the browser.

  1. True
  2. False
Question 19 Multiple Choice (Multiple Answers)

Please select right set of technologies that are required for implementing Dynamic Content or DHTML in your application

  1. HTML & CSS
  2. Javascript
  3. Ajax
  4. None of The above
Question 20 Multiple Choice (Single Answer)

How many program steps are executed when the program below is processed? data user.tables; infile jobs; input date name $ job $; run; proc sort data=user.tables; by name; run; proc print data=user.tables; run;

  1. three
  2. four
  3. five
  4. six