01. Analytics show that most visitors who start a sign-up form leave the page when they reach its phone number field. Few of them ever press Submit.
What does this symptom most likely indicate?
a) A server outage that occurs each time the completed form is submitted
b) Slow loading caused by large images
c) A usability problem with that field, such as an unclear format
d) Invalid HTML stopping the page from rendering
02. A developer must finish a client deliverable by Friday but is interrupted by chat messages every few minutes and keeps switching between small tasks.
Which techniques would BEST help the developer meet the deadline?
(Choose two.)
a) Answer every message immediately so no colleague waits
b) Block out focused time with notifications muted
c) Work on several tasks at once, switching between them often
d) Split the work into timed subtasks
03. Inside the success callback of navigator.geolocation.getCurrentPosition(), which expression reads the user's latitude from the position argument?
a) position.coords.latitude
b) navigator.geolocation.latitude
c) position.location.latitude
d) position.coordinates.latitude
04. A developer discovers that a change they deployed last week has been sending some customers' order confirmations to the wrong email addresses. The client has not yet noticed.
What is the most appropriate response?
a) Fix the bug quietly, since the client has not noticed any problem yet
b) Tell the client promptly, describing the impact with a proposed fix
c) Mention it at the next scheduled status meeting
d) Fix it, telling the client only if a customer complains
05. A feedback form shows a live character count beneath a <textarea>. The count must update with every character the user types or deletes, not only when the user leaves the field.
Which statement registers the update function correctly?
a) textarea.addEventListener("input", update);
b) textarea.addEventListener("onkeyup", update);
c) textarea.addEventListener("blur", update);
d) textarea.addEventListener("change", update);
06. A client's quote-request form collects a name, an email address and a project description. The client asks the developer to also save everything visitors type into the form, even when they leave without submitting, and to keep all of it indefinitely in case it proves useful later.
Which recommendation BEST reflects ethical reasoning about this data?
a) Save only the submitted fields a quote needs, and delete them once that purpose ends
b) Keep everything indefinitely, but encrypt all of the stored records so that no outsider can read them
c) Save the abandoned text too, after stripping the visitors' names from it
d) Keep everything, and describe the practice in the site's privacy policy
07. A team is planning a site built with HTML, CSS, JavaScript and PHP. A manager asks how JavaScript compares with the other languages on the project.
Which two statements are accurate?
(Choose two.)
a) HTML is a markup language that structures content; it is not a scripting language.
b) PHP runs on the web server, and the browser receives only its output.
c) PHP code is downloaded with the page and executed by the browser, as JavaScript is.
d) JavaScript must be compiled on a server before browsers run it.
08. A developer sets draggable="true" on an image so users can drop it into a <div>. While the image is dragged over the div, the pointer shows that dropping is not allowed, and releasing the image does nothing.
Which two changes are required?
(Choose two.)
a) Set draggable="true" on the div that receives the image
b) Use dragend on the div
c) Handle the drop event on the div
d) Call event.preventDefault() in the dragover handler of the div
09. On a checkout form, clicking the caption text Email must move focus into the email field. The developer also needs a single attribute that disables every shipping control at once when the customer chooses in-store pickup.
Which two markup choices meet these requirements?
(Choose two.)
a) <label name="email">Email</label> placed directly before the <input name="email"> control
b) <label for="email">Email</label> with <input id="email">
c) <fieldset disabled> wrapping all of the shipping controls
d) <legend disabled> as the first child of the shipping <fieldset>
10. A canvas game redraws its whole scene many times a second. The developer is choosing between calling setInterval(draw, 16) and having draw() schedule its own next run with requestAnimationFrame(draw).
Why is requestAnimationFrame() the better choice for this loop?
a) It runs draw() on a background thread so the page never blocks
b) It switches the canvas to vector drawing so shapes stay sharp at any zoom level
c) It clears the canvas automatically before every frame
d) It calls draw() just before each screen repaint, and pauses in hidden tabs