Website Building and Optimization | A+ Level Solutions
2025/2026
Which CSS selector defines an element with a class attribute equal to
subject correct answer
.subject
Which background-size property value scales the background image to the
greatest height and width that fits within the specified content area correct
answer
contain
The background-origin property has a value named padding-box. Which
corner of the padding edge does the padding-box value set the background
relative to correct answer
Upper left
Which option declares a variable called name and assigns the literal value
Student to it correct answer
var name = "Student";
Why is JavaScript considered a scripting language correct answer
The code must be interpreted.
Which code segment declares a variable and assigns a Boolean value to it
correct answer
var enabled = true;
, Which code segment contains a logical expression correct answer
if (total > 250){discount = true;}
Which code segment contains a logical expression correct answer
var discount = (total > 250) correct answer true : false;
Which variable name format does JavaScript use correct answer
_address
Which data type contains properties and methods correct answer
Object
A user's information defaults onto a form. Which event triggers if the user
keys in a new value in the First Name field correct answer
change
Which JavaScript event handler is associated with the form object correct
answer
onreset
What are variables that are passed to a function called correct answer
Arguments