FBISE, NCP & NBF-aligned resources for Classes 9–12

/14

Computer Chapter 3 : Topic 3.5

Use JavaScript to create a dynamic website

1 / 14

A student adds JavaScript to an HTML webpage so that a welcome message changes according to the user's name. What is the main purpose of using JavaScript in this situation?

2 / 14

A webpage displays the same information to every visitor. After JavaScript is added, the content changes based on user actions. What type of website has been created?

3 / 14

A button on a webpage changes the text of a paragraph when clicked. Which feature of JavaScript is being demonstrated?

4 / 14

A student creates a webpage where clicking a button hides an image and clicking another button shows it again. How does this make the website dynamic?

5 / 14

A website updates the number of items in a shopping cart immediately after a product is selected. Which role of JavaScript is illustrated here?

6 / 14

A developer uses JavaScript to change the background color of a webpage when a user selects a theme. What aspect of the website is being modified?

7 / 14

A webpage validates user input and displays an error message if a required field is empty. Why is JavaScript useful in this scenario?

8 / 14

A news website automatically displays the latest headlines without requiring users to refresh the page. Which characteristic of a dynamic website is demonstrated?

9 / 14

A programmer creates a JavaScript function that adds new items to a list whenever a user submits information. What does this demonstrate?

10 / 14

Which situation best shows JavaScript transforming a static HTML page into a dynamic website?

11 / 14

A webpage contains a button that increases the font size of text whenever it is clicked. Which capability of JavaScript is being used?

12 / 14

A login page uses JavaScript to display "Welcome Back" immediately after successful login. Why is this considered a dynamic feature?

13 / 14

A teacher asks students to identify the main benefit of using JavaScript with HTML. Which answer is most appropriate?

14 / 14

A student develops a webpage where images, text, and styles change automatically according to user preferences. Which statement best describes the result?

Your score is

0%

9th class objective books