Skip to main content

Chapter 6

Web Technology I

NEB Class 11 past exam questions

Past questions and answers

17 questions set from this chapter, 4 of them more than once; 1 is most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.

  • Most repeated · 4 of 29 exams
  • Asked 4 times
  • CDC Class 11 Computer Science Model Question · 1 mark
  • 2078 Model Set A · 1 mark
  • 2078 Model Set B · 1 mark
  • 2078 Third Term · Science Morning · Trinity · 1 mark
  • 2078 Third Term · Science Morning · 1 mark

How to insert an image in web page using HTML tag? (a) <img=...> (b) <img source=...> (c) <img src=...> (d) <img href=..>

Answer

(c) <img src=...>

The <img> tag is an empty (self-closing) element whose src attribute holds the path or URL of the image file, e.g. <img src="pic.jpg" alt="photo">. source and href are not valid attributes of <img>, and src is written as an attribute, not after an equals sign in the tag name.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • Asked 2 times
  • 2078 Annual · Trinity (Management) · 1 mark
  • 2078 Model Set E · 1 mark

Which one is the correct HTML code to give one space? (a)   (b) &space; (c) &sp; (d) None

Answer

(a) &nbsp;

&nbsp; is the HTML entity for a non-breaking space. HTML ignores extra ordinary spaces, so &nbsp; is used to add one.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • Asked 2 times
  • 2078 Annual · Trinity (Management) · 1+4 marks
  • 2078 Model Set E · 1+4 marks

Define CSS. Explain internal CSS with an example.

Answer

CSS: CSS (Cascading Style Sheets) is a language used to describe the presentation of HTML elements, such as colours, fonts and layout.

Internal CSS: In internal CSS, the style rules are written inside a <style> tag in the <head> section of the same HTML document. The rules apply to the whole page, so it is useful when one page has its own style.

Example:

<!DOCTYPE html>
<html>
<head>
  <title>Internal CSS</title>
  <style>
    h1 { color: green; text-align: center; }
    p  { color: navy; font-size: 18px; }
  </style>
</head>
<body>
  <h1>Welcome</h1>
  <p>This paragraph is styled using internal CSS.</p>
</body>
</html>

Here every <h1> becomes green and centred and every <p> becomes navy with 18px text.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2078 Model Set C · 5 marks
  • 2078 Third Term · Science Morning · Trinity · 5 marks

Explain any five tags with attributes used in HTML 5.0.

Answer

Five HTML5 tags with their attributes are given below.

  1. <audio> plays sound. Attributes: src (file address), controls (shows play/pause buttons), autoplay (starts automatically), loop (repeats).
  2. <video> plays video. Attributes: src, controls, width, height, poster (image shown before playing).
  3. <canvas> provides an area to draw graphics using JavaScript. Attributes: id, width, height.
  4. <input> (with new HTML5 types) takes user input. Attributes: type (such as email, date, number), placeholder, required, name.
  5. <section> (semantic tag) groups related content of a page. Attribute: id or class, used to identify or style the section.

Example:

<video src="movie.mp4" width="320" height="240" controls></video>

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • CDC Class 11 Computer Science Model Question · 5 marks
  • 2078 Model Set A · 5 marks

Define different types of CSS.

Answer

Types of CSS

CSS (Cascading Style Sheets) can be applied to an HTML document in three ways. Each type is defined below.

1. Inline CSS Styles are written directly inside an HTML tag using the style attribute. It affects only that single element.

<p style="color: blue; font-size: 20px;">Hello</p>
  • Advantage: Quick to apply and overrides other styles.
  • Disadvantage: Mixes content with presentation; cannot be reused.

2. Internal (Embedded) CSS Styles are written inside a <style> tag placed within the <head> section of the HTML document. It applies to the whole page.

<head>
  <style>
    p { color: blue; font-size: 20px; }
  </style>
</head>
  • Advantage: Controls the styling of an entire single page from one place.
  • Disadvantage: Cannot be reused across multiple pages.

3. External CSS Styles are written in a separate file with a .css extension and linked to the HTML document using the <link> tag in the <head> section. One CSS file can style many pages.

<head>
  <link rel="stylesheet" href="style.css">
</head>
/* style.css */
p { color: blue; font-size: 20px; }
  • Advantage: Separates content from presentation and can be reused across many pages, making site-wide changes easy.
  • Disadvantage: An extra file must be loaded, which may slightly slow the first page load.

Summary: Inline CSS styles one element, internal CSS styles one page, and external CSS styles many pages from a single file.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2076 · NEB Old Course 130 'B' · 2.5+2.5 marks

Explain the <OL> tag and <img> tag with their properties and values.

Answer

<ol> tag: It creates an ordered (numbered) list. Each item is written inside <li>.

Properties and values:

  • type: sets the numbering style. Values: 1 (numbers), A (capital letters), a (small letters), I (capital Roman), i (small Roman).
  • start: sets the first number, such as start="5".
  • reversed: numbers the list in descending order.
<ol type="A" start="1">
  <li>Input</li>
  <li>Process</li>
  <li>Output</li>
</ol>

<img> tag: It inserts an image in a web page. It is an empty tag with no closing tag.

Properties and values:

  • src: address of the image file, such as src="photo.jpg".
  • alt: alternative text shown if the image cannot load, such as alt="My photo".
  • width and height: size of the image in pixels, such as width="200".
  • border: thickness of the border, such as border="2".
<img src="photo.jpg" alt="My photo" width="200" height="150">

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 Model Set C · 1 mark

HTML 5.0 uses the following graphics tags: (a) canvas (b) canvas 2.0 (c) SVG (d) a and c

Answer

(d) a and c

HTML5 provides the <canvas> tag, which draws graphics using JavaScript, and the <svg> tag for scalable vector graphics. "canvas 2.0" is not an HTML5 tag.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • 2078 Model Set D · 1 mark
  • Trinity Class 11 Computer Science Third Term · 1 mark

If we want to insert a table in HTML we use ...? (a) <table> tag (b) <image> tag (c) <body> tag (d) <table structure> tag

Answer

(a) <table> tag

The <table> tag creates a table, with <tr> for rows and <td> for cells.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • 2078 Third Term · Science Day · Trinity · 1 mark

HTML stands for - (a) High Text Machine Language (b) Hyper Text and links Markup Language (c) Hyper Text Markup Language (d) None of these

Answer

(c) Hyper Text Markup Language

HTML is the standard markup language used to create and structure web pages.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • 2078 Third Term · Science Day · Trinity · 1 mark

Which of the following tags is used for inserting the largest heading in HTML? (a) <h3> (b) <h1> (c) <h5> (d) <h6>

Answer

(b) <h1>

HTML has six heading tags from <h1> to <h6>. <h1> gives the largest heading and <h6> the smallest.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

  • 2078 Annual · Trinity (Science) · 5 marks

Write types of tags. Define CSS. Write CSS code with HTML to write two paragraphs with different styles.

Answer

Types of tags: HTML tags are of two types.

  • Paired (container) tags have an opening and a closing tag, such as <p>...</p>, <b>...</b> and <h1>...</h1>.
  • Unpaired (empty) tags have no closing tag, such as <br>, <hr> and <img>.

CSS: CSS (Cascading Style Sheets) is a style sheet language used to control the look of a web page, such as colour, font, size and layout. It separates the design from the HTML content.

HTML with CSS for two paragraphs in different styles:

<!DOCTYPE html>
<html>
<head>
  <title>Two Paragraphs</title>
  <style>
    #first  { color: blue; font-size: 20px; font-family: Arial; }
    #second { color: red; font-size: 16px; font-style: italic; text-align: center; }
  </style>
</head>
<body>
  <p id="first">This is the first paragraph in blue.</p>
  <p id="second">This is the second paragraph in red italic.</p>
</body>
</html>

The two paragraphs are selected by their id and each gets its own style.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 Model Set B · 1+2+2 marks
  • Trinity Class 11 Computer Science Third Term · 1+2+2 marks

What is the CSS concept? How would you use it in your web page? Give an example.

Answer

CSS concept: CSS (Cascading Style Sheets) is a style sheet language that defines how HTML elements are displayed, including colour, font, spacing and layout. It keeps the design separate from the content, so one style sheet can change the look of many pages.

Using CSS in a web page: CSS can be applied in three ways.

  1. Inline CSS: using the style attribute in an element.
  2. Internal CSS: writing rules inside a <style> tag in the <head>.
  3. External CSS: writing rules in a separate .css file and linking it with <link rel="stylesheet" href="style.css"> in the <head>.

Example (internal CSS):

<html>
<head>
  <style>
    body { background-color: lightyellow; }
    h1   { color: red; }
  </style>
</head>
<body>
  <h1>My Page</h1>
</body>
</html>

This gives the page a light yellow background and a red heading.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 Model Set D · 1.5+3.5 marks

List any three tags available in HTML 5.0 and explain any one with an example.

Answer

Three tags in HTML5: <audio>, <video> and <canvas>. Others include <header>, <footer>, <section> and <article>.

Explanation of <video>: The <video> tag embeds a video in a web page without any plug-in. Its main attributes are src (the video file), controls (shows play, pause and volume buttons), width and height (size of the player), and autoplay. Text written between the tags is shown by browsers that do not support it.

Example:

<video src="lesson.mp4" width="400" height="300" controls>
  Your browser does not support the video tag.
</video>

This displays a 400 by 300 player with playback controls.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 Third Term · Science Day · Trinity · 5 marks

Explain HTML. Write HTML code to give any two examples of inline CSS.

Answer

HTML: HTML (Hyper Text Markup Language) is the standard markup language used to create web pages. It uses tags to describe the structure of a page, such as headings, paragraphs, links, images and tables, and a web browser reads these tags to display the page.

Inline CSS: Inline CSS applies a style to a single element using its style attribute.

Two examples:

<html>
<head>
  <title>Inline CSS</title>
</head>
<body>
  <h1 style="color: blue; text-align: center;">Welcome to My Page</h1>
  <p style="color: red; font-size: 20px; font-family: Arial;">This paragraph uses inline CSS.</p>
</body>
</html>

In the first example the heading becomes blue and centred. In the second the paragraph becomes red, 20px and Arial.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Trinity Class 11 Computer Science Third Term · 1 mark

The correct sequence of HTML tags for storing a webpage is (a) Head, Title, HTML, Body (b) HTML, Body, Title, Head (c) HTML, Head, Title, Body (d) None of these

Answer

(c) HTML, Head, Title, Body

A web page starts with <html>. Inside it, <head> comes first and contains <title>, followed by <body> that holds the visible content.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 1 MCQ

Loading…

Questions from CDC Class 11 Computer Science Model Question (New Course) (CDC/NEB model paper, Sub.Code 4271, first Class 11 new-course batch), NEB Grade XI Computer Science 2076 (2019) Sub. Code 130 'B' (old course) (NEB board exam, old course, 75 marks; only questions that fit the current outline were taken), Trinity International SS & College Class 11 Computer Science 4271 Annual 2078 (Science) (School annual exam (not NEB), 2078 (2021), 50 marks, as posted on plkcomputersir.blogspot.com), Trinity International SS & College Class 11 Computer Science 4271 Annual 2078 (Management) (School annual exam (not NEB), 2078 (2021), 50 marks), Class 11 Computer Science Five Set Model Questions 2078 (Sets A-E) (Model question sets 2078 following the CDC grid (Set A reprints the CDC model); compiled on plkcomputersir.blogspot.com), Trinity Class 11 Computer First Class Test 2078 (Sets A and B) (School class test, 25 marks, 2078), Trinity Class 11 Computer Second Class Test 2078 (Morning and Day) (School class test, 25 marks, 2078), Trinity Class 11 Computer Science First Term 2078 (School first-term exam, 2078 (2021), 50 marks), Trinity Class 11 Computer Science Second Term 2078 (Science, Morning and Day) (School second-term exam, 2078, 50 marks), Trinity Class 11 Computer Science Second Term 2078 (Management, Morning and Day) (School second-term exam, 2078, 50 marks), Class 11 Computer Science Second Term 2079 (Science, Morning and Day) (School second-term exam, 2079, 50 marks (Day paper is only partly posted)), Class 11 Computer Science Second Term 2079 (Management, Morning and Day) (School second-term exam, 2079, 50 marks), Trinity Class 11 Computer Science Third Term 2078 (Science, Morning and Day) (School third-term exam, 2078, 50 marks) and Trinity Class 11 Computer Science Third Term (Management, Morning and Day) (School third-term exam, page title 2078 but the paper header reads 3rd Term Examination 2079, 50 marks). Answers are written for this site; check them against your class notes.

Chapter titles and hours from the official syllabus ↗