Solutions for Web Development 2025/2026
Which corner of the padding edge does the padding-box value set the
background relative to? - correct answer upper left
Which tag enables developers to include dynamic code in an html
document? - correct answer var name = "student";
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) ? 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
What must follow the name of a function in a javascript function
declaration? - correct answer parenthesis
Which method should a developer use to create a message and request
user input in a text field? - correct answer prompt
Given the following javascript:
Var name = "student";
Which code statement modifies the name variable so that all characters are
uppercase? - correct answer name = name.touppercase();
Which document object model (dom) method does the canvas element
use? - correct answer getcontext()
Which technology is used to access the document object model (dom)? -
correct answer javascript
Which javascript application programming interface (api) allows for the
creation and manipulation of 2-d images? - correct answer canvas
, What uses predefined code to add functionality to html5 pages, such as
media display and manipulation, document editing, and web storage? -
correct answer application programming interface (api)
Given the following code:
Ctx.beginpath();
Ctx.linewidth = 3;
Ctx.fillstyle = "red";
Ctx.arc(75, 75, 50, 0, math.pi * 2, true);
Ctx.fill();ctx.moveto(0, 0);
Ctx.lineto(100, 100);
Which canvas application programming interface (api) method should a
developer use to add the line to the drawn path on a canvas? - correct
answer stroke()
Which method of the geolocation application programming interface (api)
should a developer use to get periodic updates of a user's coordinates? -
correct answer watchposition()
Which statement should a developer add to the dragover function to allow
the image to be dragged and dropped onto the section element? - correct
answer event.preventdefault();
Which line of code should a developer use to create an interface that can
retrieve data in a client browser? - correct answer new xmlhttprequest();