430 NUR EXAM WITH CORRECT
QUESTIONS AND ANSWERS 2025
Javascript allows a programmer to add, remove, and change nodes in the
DOM (T/F) - CORRECT-ANSWERS>>>>True
<button onlick="appendListItem('append to me')">...</button>. What
happens when the button is clicked? - CORRECT-ANSWERS>>>>the browser
looks for a javascript function called appendListItem
<ul id="appendToMe">...</ul>. How do you select this unordered list? -
CORRECT-ANSWERS>>>>document.getElemenetById('appendToMe')
Does
var h1 = document.createElement('h1');
create a new h1 node in the DOM and append it to the body element? -
CORRECT-ANSWERS>>>>False
<body onload="init()">
when browser fully loads the body and DOM, it will call the init function? -
CORRECT-ANSWERS>>>>True
how can you reset a form in js? - CORRECT-ANSWERS>>>>create a function
that accepts a form and then use form.reset()
, function resetForm(form) {
form.reset()
}
console.log("-------")
for(var i=0; i<5; i++) {
console.log(i)
}
console.log("-------")
what prints to the console? - CORRECT-ANSWERS>>>>--------
0
1
2
3
4
--------
onmousedown = "startDrawing(event)"
onmouseup = "stopDrawing(event)"
What happens when user clicks down mouse?
What happens when user lets go of click? - CORRECT-ANSWERS>>>>click
down = startDrawing
let go = stopDrawing
Most likely reason for this error?:
QUESTIONS AND ANSWERS 2025
Javascript allows a programmer to add, remove, and change nodes in the
DOM (T/F) - CORRECT-ANSWERS>>>>True
<button onlick="appendListItem('append to me')">...</button>. What
happens when the button is clicked? - CORRECT-ANSWERS>>>>the browser
looks for a javascript function called appendListItem
<ul id="appendToMe">...</ul>. How do you select this unordered list? -
CORRECT-ANSWERS>>>>document.getElemenetById('appendToMe')
Does
var h1 = document.createElement('h1');
create a new h1 node in the DOM and append it to the body element? -
CORRECT-ANSWERS>>>>False
<body onload="init()">
when browser fully loads the body and DOM, it will call the init function? -
CORRECT-ANSWERS>>>>True
how can you reset a form in js? - CORRECT-ANSWERS>>>>create a function
that accepts a form and then use form.reset()
, function resetForm(form) {
form.reset()
}
console.log("-------")
for(var i=0; i<5; i++) {
console.log(i)
}
console.log("-------")
what prints to the console? - CORRECT-ANSWERS>>>>--------
0
1
2
3
4
--------
onmousedown = "startDrawing(event)"
onmouseup = "stopDrawing(event)"
What happens when user clicks down mouse?
What happens when user lets go of click? - CORRECT-ANSWERS>>>>click
down = startDrawing
let go = stopDrawing
Most likely reason for this error?: