Basic Javascript Quiz - 1

Basic Javascript Quiz - 1

9 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Actions that can be detected by javascript are called ?

  1. HTML
  2. Events
  3. Array
  4. ArrayList
Question 2 Multiple Choice (Single Answer)

A variable that your webpage can store on or retrieve from the users computer is known as ?

  1. Applet
  2. Java
  3. Cookie
  4. Session
Question 3 Multiple Choice (Single Answer)

In JavaScript, capital letters are different from lowercase letters ?

  1. Not on windows platforms
  2. Yes
  3. No
  4. Not on Linux Platform
Question 4 Multiple Choice (Single Answer)

Which is detected when the mouse moves over a link ?

  1. overMouse event
  2. onMouseOver event
  3. onRollOver event
  4. OnMouseOut event
Question 5 Multiple Choice (Single Answer)

How do you read the first character in a string ?

  1. stringName.charAt(0);
  2. stringName.substring(1);
  3. stringName.charAt(1);
  4. stringName.charAt(2);
Question 6 Multiple Choice (Single Answer)

Which has no syntax error ?

  1. alert("hello "+3+" times);
  2. alert("hello "+3 times);
  3. alert("hello +3+ times");
  4. alert("hello "+3 +" times);
Question 7 Multiple Choice (Single Answer)

Which method will open a new window ?

  1. popUp(PageURL,WindowName,settings);
  2. window.launch(PageURL,WindowName,settings);
  3. window.close(PageURL,WindowName,settings);
  4. window.open(PageURL,WindowName,settings);
Question 8 Multiple Choice (Single Answer)

Which method is used to search for a substring ?

  1. stringVariable.substring(subString)
  2. stringVariable.find(subString)
  3. stringVariable.indexOf(subString)
  4. stringVariable.indexOf(charAt(0))
Question 9 Multiple Choice (Single Answer)

Inside which HTML element do we put the JavaScript?

  1. <scripting>
  2. <javascript>
  3. <js>
  4. <script>