Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

JavaScript and interactive web pages

Question 1 of 10

Question 1 of 10

Write a JavaScript function that checks whether a form field with id "age" contains a number from 12 to 20, and shows an alert if it does not.

Question 2 of 10

Question 2 of 10

Explain the roles of HTML, CSS and JavaScript in an interactive web application, and the difference between client-side and server-side code.

Question 3 of 10

Question 3 of 10

JavaScript runs in the web browser.

Question 4 of 10

Question 4 of 10

JavaScript arrays are written with

Question 5 of 10

Question 5 of 10

Explain why a website must validate data on the server even if it already validates with JavaScript.

Question 6 of 10

Question 6 of 10

Which shows a message in a pop-up box?

Question 7 of 10

Question 7 of 10

A variable declared with const

Question 8 of 10

Question 8 of 10

In JavaScript, "3" + 4 gives the string "___".

Question 9 of 10

Question 9 of 10

console.log() is used to

Question 10 of 10

Question 10 of 10

The HTML tag used to add JavaScript is <___>.

Questions written by OtisamLMS in the style of the WASSCE. They are not WAEC past questions.