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

Which loop prints 1 to 5 in JavaScript?

Question 2 of 10

Question 2 of 10

An event in JavaScript is

Question 3 of 10

Question 3 of 10

JavaScript arrays are written with

Question 4 of 10

Question 4 of 10

Which code runs a function called check when a button is clicked?

Question 5 of 10

Question 5 of 10

JavaScript is mainly used on websites to

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

Explain what an event is and give four examples of events a web page can respond to.

Question 8 of 10

Question 8 of 10

Write HTML and JavaScript for a button that, when clicked, shows "Welcome to Otisam" in a paragraph with id "msg".

Question 9 of 10

Question 9 of 10

Client-side validation alone is enough to keep a website secure.

Question 10 of 10

Question 10 of 10

JavaScript runs in the web browser.

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