Questions
Question 1 Multiple Choice (Single Answer)
Actions that can be detected by javascript are called ?
- HTML
- Events
- Array
- ArrayList
Question 2 Multiple Choice (Single Answer)
A variable that your webpage can store on or retrieve from the users computer is known as ?
- Applet
- Java
- Cookie
- Session
Question 3 Multiple Choice (Single Answer)
In JavaScript, capital letters are different from lowercase letters ?
- Not on windows platforms
- Yes
- No
- Not on Linux Platform
Question 4 Multiple Choice (Single Answer)
Which is detected when the mouse moves over a link ?
- overMouse event
- onMouseOver event
- onRollOver event
- OnMouseOut event
Question 5 Multiple Choice (Single Answer)
How do you read the first character in a string ?
- stringName.charAt(0);
- stringName.substring(1);
- stringName.charAt(1);
- stringName.charAt(2);
Question 6 Multiple Choice (Single Answer)
Which has no syntax error ?
- alert("hello "+3+" times);
- alert("hello "+3 times);
- alert("hello +3+ times");
- alert("hello "+3 +" times);
Question 7 Multiple Choice (Single Answer)
Which method will open a new window ?
- popUp(PageURL,WindowName,settings);
- window.launch(PageURL,WindowName,settings);
- window.close(PageURL,WindowName,settings);
- window.open(PageURL,WindowName,settings);
Question 8 Multiple Choice (Single Answer)
Which method is used to search for a substring ?
- stringVariable.substring(subString)
- stringVariable.find(subString)
- stringVariable.indexOf(subString)
- stringVariable.indexOf(charAt(0))
Question 9 Multiple Choice (Single Answer)
Inside which HTML element do we put the JavaScript?
- <scripting>
- <javascript>
- <js>
- <script>