In browser development, what does DOM stand for?
Dynamic Object Manipulation
Digital Order Management
Document Object Model
Data Object Manager
Which keyword is used to declare a variable in JavaScript with block-level scope?
block
let
var
const
Which of the following is NOT a built-in function in JavaScript for interacting with the user through the browser?
confirm()
prompt()
console.log()
alert()
What value is returned by confirm('Are you sure?') if the user clicks the 'Cancel' button?
confirm('Are you sure?')
true
null
undefined
false
What does the Array.isArray() method return when passed an object?
Array.isArray()
"object"
object
Which logical operator returns true if and only if both operands are true?
XOR (^)
NOT (!)
OR (||)
AND (&&)
What is the relationship between HTML, CSS, and JavaScript in web development?
They are completely independent languages.
HTML provides structure, CSS styles the content, and JavaScript adds behavior.
JavaScript is used to write HTML and CSS code.
CSS is used to write HTML and JavaScript code.
Which of the following is a valid way to define an arrow function that takes one parameter and returns its square?
const square = x => x * x;
const square = (x) => { x * x };
function square(x) { return x * x; }
let square = function(x) { return x * x }
Which method is used to select an HTML element with a specific ID?
querySelector()
querySelectorAll()
getElementById()
getElementbyId()
Which keyword is used to declare a variable whose value should not change after its initial assignment?
static