A web page offers a link for users to request another web page, which contains HTML code and JavaScript code. Identify the correct sequence of the following statements.
1.The requested web page is displayed on the client computer.
2.The user clicks on the hyperlink and the web page is requested from the web server.
3.The requested web page content is transmitted to the client computer.
4.The client computer processes the JavaScript code using the web browser software.
5.The web server locates the requested web page.
A2, 5, 3, 1, 4
B2, 5, 4, 3, 1
C5, 2, 3, 4, 1
D2, 5, 3, 4, 1 ✓ Correct
Correct answer: (D) 2, 5, 3, 4, 1
Explanation
The chain begins when the user clicks the hyperlink and the browser requests the page from the web server.
The web server then locates the requested page in its stored files.
Next the content of that page travels back to the client computer.
The browser on the client then processes the JavaScript code contained in the page.
Finally the fully prepared page appears on the client's screen.
Static HTML is read directly, while JavaScript runs on the client to add interactivity.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →