Programming -
Exam 2 fully
solved
2025(graded A+)
textContent attribute - answer sets or returns the textual content of
the specified node, and all its descendants
value attribute - answer sets or returns the value of the attribute
DOM Event Model 0 - answer in this model, event handlers are
added as attributes of elements
page loading event - answer occurs when an object has been
loaded; can be used to check the visitor's browser type and browser
version, and load the proper version of the web page based on the
information
UI event - answer events generated by user input devices (mouse
clicks, keyboard strokes, etc.)
, EventTarget interface - answer DOM object representing element
that handles the event (element/document/window = most common
targets)
Event interface - answer represents any event which takes place in
the DOM
Event target attribute - answer a read-only attribute that acts as a
reference to the target to which the event was originally dispatched
EventListener - answer created object that actually handles the
event
addEventListener() - answer attaches an event handler to the
specified element
handleEvent() - answer called by the browser when an event of the
specified type is dispatched by an EventTarget object
event bubbling - answer the event is first captured and handled by
the innermost element and then propagated to outer elements
asynchronous - answer a script will send a request to the server,
and continue its execution without waiting for the reply
Tomcat - answer a web server and servlet container that is used to
deploy and serve Java web applications
webapps - answer directory where web applications are stored
WEB-INF - answer directory that contains all things related to the
application that aren't in the document root of the application