LSU ISDS 3105 FINAL EXAM
2025/2026 UPDATED EXAM WITH
VERIFIED SOLUTIONS.
1. Which of the following event properties or methods returns a
Boolean value that indicates whether an event can have its
default action terminated?
a. evt.stopImmediatePropagation()
b. evt.defaultPrevented
c. evt.cancelable
d. evt.stopPropogation() - correct answer -evt.cancelable
2. which of the following provides the correct syntax for adding an
event handler to a page element as an HTML attribute?
a. <element script = "onevent";>
b. <element onevent = "script">
c. <element = "script">
d. <element = "onevent"> - correct answer -<element onevent
= "script">
3. The ______ event handler is applied to a page when it is about
to be unloaded by the browser.
a. onbeforeunload
b. onload
c. onunload
, Page | 2
d. onbeforeload - correct answer -onbeforeunload
4. Which of the following is the correct location of a key on a
keyboard if the value of the keyboard property evt.location is 3?
a. The key is located on the keyboard's right edge.
b. The key is located on the keyboard's left edge.
c. The key is located on the numeric pad.
d. The key is located in the standard position. - correct answer
-The key is located on the numeric pad.
5. Which of the following is the syntax to define a cursor in
JavaScript?
a. object.style.cursorTypes = cursor;
b. object.style.cursor = cursorTypes;
c. object.cursorTypes = cursor.style;
d. object.style = cursorTypes; - correct answer -
object.style.cursor = cursorTypes;
6. Which of the following JavaScript expressions is equivalent to
the given HTML code?
7. <div id =" menu1" class = "menu">
a. document.getElementById("menu1").className = "menu";
, Page | 3
b. document.getElementById("menu1")."menu";
c. Document.getelementbyId(menu1= "class name".menu);
d. Document.getelementbyId("menu1").menu= "class"; -
correct answer -document.getElementById ("menu1"
.className = "menu";
8. For options buttons and check boxes, use the ______ event
handler in response to the user clicking those elements.
a. oninput
b. onclick
c. onreset
d. onselect - correct answer -onclick
9. Identify the description for the \b character type.
a. A word boundary
b. A blank space
c. Any character
d. Not a word boundary - correct answer -A word boundary
10. Identify the description of the option.selected property.
a. It returns true if more than one option can be selected from
the list.
b. It returns true if the option has been selected by default.
c. It returns true if no option can be selected from the list.