FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Topic 2.1
HTML, CSS & JavaScript
1 / 15
A student wants to create the basic structure of a webpage including headings, paragraphs, images, and links. Which technology is primarily used for this purpose?
Reasoning: HTML (HyperText Markup Language) is used to define the structure and content of webpages.
2 / 15
A webpage contains all the required text and images, but the content appears plain and unorganized. Which technology should be used to improve its appearance?
Reasoning: CSS (Cascading Style Sheets) controls the presentation, colors, fonts, and layout of webpages.
3 / 15
A developer wants a button to display a message immediately when clicked by a user without reloading the page. Which technology is most suitable?
Reasoning: JavaScript adds interactivity and responds to user actions.
4 / 15
Which statement best describes the primary role of HTML in web development?
Reasoning: HTML provides the framework and content elements of a webpage.
5 / 15
A web designer changes the font size, text color, and page background without modifying the webpage content. Which technology is being used?
Reasoning: CSS is responsible for styling and formatting webpage elements.
6 / 15
Which technology enables a webpage to validate user input before a form is submitted to the server?
Reasoning: JavaScript can check user input and provide instant feedback.
7 / 15
A student claims that HTML can make images move across a webpage when a button is clicked. Why is this claim incorrect?
Reasoning: Interactive behavior requires JavaScript, while HTML defines structure.
8 / 15
Which of the following tasks would most likely require CSS rather than HTML or JavaScript?
Reasoning: CSS controls visual styling such as colors and fonts.
9 / 15
A webpage uses HTML, CSS, and JavaScript together. Which option correctly matches their functions?
Reasoning: HTML provides structure, CSS handles styling, and JavaScript adds functionality.
10 / 15
A developer wants all headings on a website to appear in the same font and color without editing each heading individually. Which technology provides the best solution?
Reasoning: CSS allows consistent styling of multiple elements.
11 / 15
Which feature of JavaScript makes it different from HTML and CSS when building webpages?
Reasoning: JavaScript adds functionality and interactivity to webpages.
12 / 15
A webpage contains headings, paragraphs, images, colors, and an interactive calculator. Which technology is primarily responsible for the calculator's operation?
Reasoning: Calculations and user interactions are handled by JavaScript.
13 / 15
Which statement correctly identifies the relationship between HTML and CSS in webpage development?
Reasoning: HTML organizes content, while CSS determines its appearance.
14 / 15
A student removes all CSS code from a webpage but leaves the HTML unchanged. What is the most likely result?
Reasoning: HTML content remains visible, but formatting and design are removed.
15 / 15
A web developer wants users to receive an immediate warning when they enter an invalid email address into a form. Which technology should be used?
Reasoning: JavaScript can validate user input and display instant feedback without reloading the page.
Your score is
Restart quiz