FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Test # 3
1 / 20
A student is designing a webpage for a school event and wants to display a logo stored in a folder on the computer. The student also wants a text description to appear if the image cannot be loaded due to an incorrect file path or missing file.
Reasoning: src specifies the image location, while alt provides an alternative description.
2 / 20
While creating a webpage, a student inserts an image without specifying its dimensions. When the page loads, the image appears much larger than expected and affects the page layout. What is the most likely explanation for this behavior?
Reasoning: Without width and height, the browser displays the image in its original size.
3 / 20
A web developer wants to ensure that an image occupies a specific amount of space on a webpage regardless of its original dimensions. Which attributes should be used to control the displayed size of the image?
Reasoning: width and height control the displayed dimensions of an image.
4 / 20
A teacher is preparing online notes and wants to list computer hardware devices using bullet symbols because the order of items does not matter. Which HTML element is most suitable for creating such a list?
Reasoning:
5 / 20
A student is making a webpage containing instructions for installing software. Since each step must be followed in sequence, the list should automatically display numbers beside each item. Which tag should be selected?
6 / 20
A webpage displays a list with square and circular symbols before each item. The designer intentionally avoided numbering because the sequence of items has no significance. Which type of list is being used?
Reasoning: Unordered lists use bullets such as disc, circle, and square.
7 / 20
A student notices that one list on a webpage uses numbers while another uses letters such as A, B, and C. Both lists are intended to show information in a specific order. Which HTML structure supports this behavior?
Reasoning: Ordered lists can use numbers or alphabets for sequencing.
8 / 20
A school website displays an image of the campus. The developer wants visually impaired users to understand the image through screen readers even if the picture is not visible. Which attribute helps achieve this goal?
Reasoning: The alt attribute provides descriptive text for accessibility.
9 / 20
A webpage contains a list of favorite programming languages. The order in which the languages appear does not indicate ranking or priority. Which list type should be used to represent this information correctly?
Reasoning: Unordered lists are used when sequence is not important.
10 / 20
A student creates a recipe webpage where ingredients are shown with bullets, while preparation steps are shown with numbers. Why are two different list types being used?
Reasoning: Ingredients do not require order, but preparation steps must follow a sequence.
11 / 20
While testing a webpage, a student discovers that an image is not displayed because the file path is incorrect. Instead, a short description appears where the image should have been. Which attribute is responsible?
Reasoning: The alt attribute displays alternative text when the image cannot load.
12 / 20
A web designer wants a list to display items using bullet styles such as disc, circle, and square. Which HTML element provides this functionality without requiring a specific order?
13 / 20
A student is preparing a webpage that shows the top three winners of a competition. Since the positions are important and indicate ranking, which list type should be used?
Reasoning: Ordered lists are used when ranking or sequence matters.
14 / 20
A webpage contains an image tag with only the src attribute specified. Which important feature will be missing if the image fails to load due to a network or file error?
Reasoning: Without the alt attribute, no alternative description will be shown when the image cannot be displayed.
15 / 20
A school administrator is creating a webpage to display student names, roll numbers, and fee submission status in rows and columns. The information must be arranged neatly so that users can easily compare records. Which HTML element should be used as the main container?
Reasoning: The
16 / 20
A student designs a table where the first row contains headings such as Name, Roll No, and Fee Status. Which HTML tag should be used for these heading cells instead of normal data cells?
17 / 20
A web developer wants users to visit a school's online admission form by clicking a piece of text on a webpage. Which HTML tag is specifically used to create such clickable links?
Reasoning: The tag is used to create hyperlinks.
18 / 20
A webpage contains a hyperlink that should open an external website in a new browser tab while keeping the current page available. Which target value should be used with the hyperlink?
Reasoning: The value blank opens the linked page in a new tab or window.
19 / 20
A student wants to improve the appearance of a webpage by changing colors, fonts, spacing, and layout without modifying the HTML content itself. Which technology is specifically designed for this purpose?
Reasoning: CSS is used to style and format HTML elements.
20 / 20
A website contains twenty pages that should all have the same colors and fonts. The developer wants style changes to be applied to every page by editing only one file. Which CSS method is most suitable?
Reasoning: External CSS allows multiple pages to share the same stylesheet.
Your score is
Restart quiz