JavaScript and Web Development Programming Quiz
Test your knowledge of JavaScript programming including DOM manipulation, XMLHttpRequest, HTTP protocols, and related web development concepts.
Questions
Can we create multiple objects of a single class
- True
- False
Object parameter of init method in servlet
- request
- ServletConfig
- ServletContext
- application
intern method is used for
- Finding length of string
- Clearing elements in Vector
- Comparing two Strings
- None of above
javax.swing.tree is
- Package
- class
- interface
- none of the above
The following piece of javascript code is going to work fine. Trial Page
- True
- False
window.location.href="www.google.com". The given statement when executed would result in one of the following:
- It will give an error
- It will execute and nothing will happen
- It will execute and www.google.com is going to open
- None of The above
onUnload event of Javascript is fired in which of the following conditions
- When browser is closed
- When the page reloads as well.
- Only when you navigate out of the page.
- All Of the Above
Javascript does not distinguish between name of a function and a variable
- True
- False
innerHTML, innerText, outerHTML and outerText. What are these of Element object
- Methods
- Properties
- Objects
- None of The above
One can add custom method and properties to objects in javascript without using prototype as well.
- True
- False
Which of the following HTTP response codes indicate a successful response from the server
- 200
- 304
- 404
- None of The above
parseJSON is a standard function available in javascript like alert, eval and others.
- True
- False
document.getElementById("trial").innerHTML() is a valid statement
- True
- False
All the HTML objects like Form, Select, Textarea and others are implicitly an instance of Element as well
- True
- False
It is possible to add custom methods and properties in pre-existing objects like String, Math and others
- True
- False
onreadystatechange is a method of XMLHttpRequest Object
- True
- False
POST requests can also be send through the open method of the XMLHttpRequest Object
- True
- False
URL accessed through XMLHttpRequest's open method is stored in the history of the browser.
- True
- False
Please select right set of technologies that are required for implementing Dynamic Content or DHTML in your application
- HTML & CSS
- Javascript
- Ajax
- None of The above
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;
- three
- four
- five
- six