0
Alien head

Basic Javascript Quiz - 1

Description: Basic Javascript Quiz - 1
Number of Questions: 9
Created by:
Tags: javascript

Actions that can be detected by javascript are called ?

  1. HTML

  2. Events

  3. Array

  4. ArrayList

Answer: 2

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

Answer: 3

In JavaScript, capital letters are different from lowercase letters ?

  1. Not on windows platforms

  2. Yes

  3. No

  4. Not on Linux Platform

Answer: 2

Which is detected when the mouse moves over a link ?

  1. overMouse event

  2. onMouseOver event

  3. onRollOver event

  4. OnMouseOut event

Answer: 2

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);

Answer: 1

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);

Answer: 3

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);

Answer: 4

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))

Answer: 3

Inside which HTML element do we put the JavaScript?

Answer: 4
+ View questions