1. Theory Fundamentals
A section of Computer Science, 9608
Listing 10 of 304 questions
The design of a web-based application can require the use of client-side scripting. Describe what is meant by client-side scripting. A user requests a web page by keying the Uniform Resource Locator (URL) into the address bar of their web browser. The requested page contains a client-side script. Describe the sequence of steps leading to the display of the web page on the computer screen. A web page used for data capture consists of: • two text boxes for the entry of: • a product code • the number of items to be purchased. • a button which is clicked when the user wants to submit this order. Study the following web page. Untitled Document function myButton_onmousedown() { var Message1 = "ERROR – Order refused"; var Message2 = "Product code OK"; var x = document.forms["form1"]["txtProductCode"].value; if (x == "") { alert(Message1) } else { alert(Message2) } } Product code: Number: Submit order: The developer has used three variables in the JavaScript code. State the identifiers used. The button has an event whose identifier is onMouseDown. When the submit button is clicked, some code is executed. State the line numbers that contain this code. From line to line The JavaScript code uses a selection statement. State the line number that contains the condition. Line number: Describe the purpose of the validation check that the code performs. Name and describe two other types of validation check that could be appropriate for this data capture form. Validation check: Description Validation check: Description
9608_s17_qp_11
THEORY
2017
Paper 1, Variant 1
Questions Discovered
304