Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mkhlz/81b00c712cc61207511286490989e3ef to your computer and use it in GitHub Desktop.

Select an option

Save mkhlz/81b00c712cc61207511286490989e3ef to your computer and use it in GitHub Desktop.

STANDARD XII — INFORMATION TECHNOLOGY

Question Paper | Total Marks: 100 | Time: 3 Hours

Instructions: All questions are compulsory. Read each question carefully before answering. Wrap all HTML/code answers in backticks.


SECTION A — Fill in the Blanks

(20 Questions × 1 Mark = 20 Marks)

  1. <input type="______"> defines a color picker in HTML5.
  2. The ______ attribute specifies that an input field must be filled out before submitting the form.
  3. The <meta> tag is placed between the ______ and ______ tags in an HTML document.
  4. CSS stands for Cascading ______ Sheets.
  5. In CSS, the ______ selector acts as a wildcard character and selects all elements on a webpage.
  6. The <ol> tag defines an ______ list.
  7. An unordered list is created using the ______ tag.
  8. The ______ attribute of the <audio> tag makes audio start playing as soon as it is ready.
  9. Clickable regions defined on an image map are called ______.
  10. The <iframe> element creates an ______ frame.
  11. SEO stands for Search Engine ______.
  12. ______ Hat SEO includes relevant content, well-labeled images, and relevant links as part of good design.
  13. The ______ file tells the search engine which pages to exclude from indexing.
  14. JavaScript is a/an ______ scripting language (not compiled).
  15. The ______ statement is used to jump out of a loop in JavaScript.
  16. DOM stands for Document ______ Model.
  17. The ______ property can be used to get or change any HTML element's content including <html> and <body>.
  18. IoT stands for Internet of ______.
  19. The three primary service models of cloud computing are IaaS, PaaS, and ______.
  20. 5G is the ______ generation of cellular network technology.

SECTION B — True or False

(10 Questions × 1 Mark = 10 Marks)

  1. <input type="color"> is a valid HTML5 input type that defines a color picker.
  2. The placeholder attribute requires a separate <label> tag to display hint text inside a field.
  3. The <meta> tag is a paired tag (it has both an opening and a closing tag).
  4. Inline CSS is used to apply styling on a single element or line.
  5. The CSS ID selector is written with a period character (.) followed by the ID name.
  6. An ordered list can be both numerical and alphabetical.
  7. HTML5 does not support disc, circle, and square as values for the type attribute of <ul>; CSS style should be used instead.
  8. White Hat SEO includes invisible text, stuffed keywords, and duplicate content.
  9. JavaScript is a server-side scripting language.
  10. Math.ceil(x) returns the next integer greater than or equal to a given number (rounds up).

SECTION C — Multiple Choice Questions (1 Correct Answer)

(10 Questions × 1 Mark = 10 Marks)

  1. Which <input> type defines a field for entering a URL?

    • a) <input type="link">
    • b) <input type="href">
    • c) <input type="url">
    • d) <input type="web">
  2. Which CSS property defines the flow of content around an element?

    • a) display
    • b) position
    • c) float
    • d) padding
  3. Which character is used to create an ID selector in CSS?

    • a) %
    • b) $
    • c) @
    • d) #
  4. The <area> tag attribute that defines the URL for a clickable region in an image map is:

    • a) src
    • b) href
    • c) link
    • d) target
  5. Which tag is used to embed audio files on webpages in HTML5?

    • a) <sound>
    • b) <media>
    • c) <audio>
    • d) <embed>
  6. SEO is a subset of:

    • a) Social Media Optimization
    • b) Search Engine Marketing
    • c) Content Marketing
    • d) Email Marketing
  7. What does the confirm() method of the Window object display?

    • a) A box with only an OK button
    • b) A box with OK and Cancel buttons
    • c) A box with only a Cancel button
    • d) A box with an input field
  8. Which String object property returns the number of characters in a string?

    • a) size
    • b) count
    • c) charAt
    • d) length
  9. In cloud computing, IaaS stands for:

    • a) Internet as a Service
    • b) Infrastructure as a Service
    • c) Integration as a Service
    • d) Information as a Service
  10. 5G can support up to how many devices per square kilometer compared to 4G?

    • a) One thousand
    • b) One lakh
    • c) One million
    • d) One billion

SECTION D — Multiple Choice Questions (2 Correct Answers)

(5 Questions × 2 Marks = 10 Marks)

  1. Which two are valid attributes of the <audio> tag?

    • a) autoplay
    • b) href
    • c) controls
    • d) font
    • e) bgsound
  2. Which two are valid types of cloud computing deployment?

    • a) Public Cloud
    • b) Lateral Cloud
    • c) Private Cloud
    • d) Dynamic Cloud
    • e) Static Cloud
  3. Which two are valid properties of the Document object in JavaScript?

    • a) URL
    • b) title
    • c) name
    • d) status
  4. Which two are valid methods of the Date object in JavaScript?

    • a) setTime()
    • b) getValidTime()
    • c) getTime()
    • d) setValidTime()
  5. Which two are recognized SEO techniques based on search engine approval?

    • a) White Hat SEO
    • b) Blue Hat SEO
    • c) Black Hat SEO
    • d) Green Hat SEO
    • e) Red Hat SEO

SECTION E — Multiple Choice Questions (3 Correct Answers)

(3 Questions × 3 Marks = 9 Marks)

  1. Which three are valid CSS positioning types?

    • a) Static
    • b) Dynamic
    • c) Fixed
    • d) Absolute
    • e) Nested
    • f) Circular
  2. Which three are valid HTML5 <input> types?

    • a) <input type="email">
    • b) <input type="sound">
    • c) <input type="range">
    • d) <input type="date">
    • e) <input type="picture">
    • f) <input type="list">
  3. Which three are valid methods of the JavaScript Array object?

    • a) push()
    • b) attach()
    • c) pop()
    • d) append()
    • e) reverse()
    • f) insert()

SECTION F — Match the Following

(2 Questions × 5 Sub-questions × 1 Mark = 10 Marks)

Q. 49 — Match the HTML/CSS terms with their descriptions:

Column A Column B
1. <ul> a) Client side image map
2. usemap b) CSS property for text color
3. color c) Creates a bulleted list
4. <img> d) Image used as a submit button
5. <input type="image"> e) Inserts an image on a web page
f) Creates an ordered list
g) Defines a text area

Q. 50 — Match the JavaScript/Technology terms with their descriptions:

Column A Column B
1. ceil() a) Removes white spaces from both sides of a string
2. trim() b) Returns next integer greater than or equal to given number
3. write() c) Internet of Things
4. IoT d) Software as a Service
5. SaaS e) Writes HTML expressions or JavaScript code to a document
f) Returns next integer less than or equal to given number
g) Platform as a Service

SECTION G — Brief Answers

(5 Questions × 3 Marks = 15 Marks)

  1. (3 marks) Define SEO. State its two types with a short description of each.

  2. (3 marks) Explain the difference between Inline CSS, Internal (Embedded) CSS, and External CSS. Give one example of each.

  3. (3 marks) What is the DOM (Document Object Model)? Name and describe any three methods or properties of the Document object.

  4. (3 marks) What is Cloud Computing? Name and briefly explain the three primary service models of cloud computing.

  5. (3 marks) Explain the float CSS property. What are its three types? Give a CSS example for each type.


SECTION H — Practical Coding Questions

(2 Questions × 8 Marks = 16 Marks)

  1. (8 marks) Write a complete HTML5 program that:

    • Creates a form to accept: Name (text), Email (email), Date of Birth (date), Office Phone Number (tel, with pattern [0-9]{2}-[0-9]{10}), and Homepage URL (url)
    • Includes a submit button using an image (<input type="image">)
    • Uses internal CSS to style the page heading with a green background color, red text, and the font "Comic Sans MS"
    • All form fields should use the required attribute and appropriate placeholder text
  2. (8 marks) Write a complete HTML5 + JavaScript program that:

    • Accepts a number from the user via a text input field
    • On clicking a button, uses a for loop to display the multiplication table of that number (1 to 10) on the page using document.write()
    • Uses a switch statement to display the day name for a number entered by the user (1 = Monday … 7 = Sunday; default = "Invalid day")
    • Both features must be in separate functions triggered by two separate buttons

End of Question Paper


Summary of Marks:

Section Type Questions Marks Each Total
A Fill in the Blanks 20 1 20
B True or False 10 1 10
C MCQ – 1 Correct 10 1 10
D MCQ – 2 Correct 5 2 10
E MCQ – 3 Correct 3 3 9
F Match the Following 2 × 5 1 10
G Brief Answers 5 3 15
H Coding Practical 2 8 16
Grand Total 100
@mkhlz
Copy link
Author

mkhlz commented Mar 7, 2026

ANSWER KEY — XII IT Question Paper


SECTION A — Fill in the Blanks (1 mark each)

Q.No Answer PDF / Page / Section
1 color PDF 1 (Ch.1) – Page 1, HTML5 advanced <input> elements table
2 required PDF 1 (Ch.1) – Page 2, Input Restrictions table
3 <head> and </head> PDF 1 (Ch.1) – Page 4, Section 1.3 <meta> tag
4 Style PDF 1 (Ch.1) – Page 5, Section 1.4 Cascading Style Sheets in HTML5
5 Universal PDF 1 (Ch.1) – Page 9, Universal Selector
6 ordered PDF 1 (Ch.1) – Page 13, Section 1.5 Ordered list or numbered list
7 <ul> PDF 1 (Ch.1) – Page 14, Section 1.6 Unordered list or bulleted list
8 autoplay PDF 1 (Ch.1) – Page 17, Attributes of <audio> tag table
9 hotspots PDF 1 (Ch.1) – Page 19, Section 1.9 Image map in HTML5
10 inline PDF 1 (Ch.1) – Page 20, Section 1.10 Inline Frame in HTML5
11 Optimization PDF 2 (Ch.2) – Page 27, Section 2.1 Introduction
12 White PDF 2 (Ch.2) – Page 28, Section 2.3 Techniques of SEO – White Hat Strategies
13 Robots.txt PDF 2 (Ch.2) – Page 31, Creating Robots.txt
14 interpreted PDF 3 (Ch.3) – Page 35, Section 3.1 Introduction
15 break PDF 3 (Ch.3) – Page 39, Break and continue statements
16 Object PDF 3 (Ch.3) – Page 40, DOM (Document Object Model)
17 innerHTML PDF 3 (Ch.3) – Page 41, The innerHTML Property
18 Things PDF 4 (Ch.4) – Page 53, Section 4.1 IoT (Internet of Things)
19 SaaS PDF 4 (Ch.4) – Page 54, Models of Cloud Computing
20 fifth PDF 4 (Ch.4) – Page 57, Section 4.4 5G

SECTION B — True or False (1 mark each)

Q.No Answer Explanation PDF / Page / Section
21 True <input type="color"> is listed as defining a color picker PDF 1 – Page 1, HTML5 advanced <input> elements
22 False placeholder acts as a temporary label WITHOUT requiring a label tag PDF 1 – Page 2, Input Restrictions table
23 False <meta> is a singular (empty) tag with no closing tag PDF 1 – Page 4, Section 1.3 <meta> tag
24 True Inline CSS applies on a single line or element PDF 1 – Page 5–6, Section 1.4 Types of CSS – Inline
25 False The ID selector uses the hash # character, not a period . PDF 1 – Page 8, CSS Id Selector
26 True An ordered list can be numerical or alphabetical PDF 1 – Page 13, Section 1.5 Ordered list
27 True HTML5 does not support disc/circle/square type attribute; use CSS style instead PDF 1 – Page 15, Attributes of <ul> tag – Note
28 False Duplicate content and invisible text are Black Hat strategies, not White Hat PDF 2 – Page 28, Section 2.3 Techniques of SEO
29 False JavaScript is a client-side scripting language PDF 3 – Page 35–36, Section 3.1 Introduction
30 True Math.ceil(x) returns the next integer greater than or equal to a given number (rounding up) PDF 3 – Page 45, Math Object methods table

SECTION C — MCQ 1 Correct (1 mark each)

Q.No Answer PDF / Page / Section
31 c) <input type="url"> PDF 1 – Page 1, HTML5 advanced <input> elements table
32 c) float PDF 1 – Page 11, Float Property
33 d) # PDF 1 – Page 8, CSS Id Selector
34 b) href PDF 1 – Page 20, Attributes of <area> table
35 c) <audio> PDF 1 – Page 17, <Audio> Tag
36 b) Search Engine Marketing PDF 2 – Page 27, Section 2.1 Introduction
37 b) OK and Cancel buttons PDF 3 – Page 42, Window Object methods table – confirm()
38 d) length PDF 3 – Page 45, String Object – Property table
39 b) Infrastructure as a Service PDF 4 – Page 54, Infrastructure as a Service (IaaS)
40 c) One million PDF 4 – Page 57, Section 4.4 5G

SECTION D — MCQ 2 Correct (2 marks each)

Q.No Correct Answers PDF / Page / Section
41 a) autoplay, c) controls PDF 1 – Page 17, Attributes of <audio> tag table
42 a) Public Cloud, c) Private Cloud PDF 4 – Page 55, Types of Cloud Computing
43 a) URL, b) title PDF 3 – Page 41, DOM Object – Property table
44 a) setTime(), c) getTime() PDF 3 – Page 46, Date Object methods table
45 a) White Hat SEO, c) Black Hat SEO PDF 2 – Page 28, Section 2.3 Techniques of SEO

SECTION E — MCQ 3 Correct (3 marks each)

Q.No Correct Answers PDF / Page / Section
46 a) Static, c) Fixed, d) Absolute PDF 1 – Page 10, Positioning in CSS – four types
47 a) email, c) range, d) date PDF 1 – Page 1–2, HTML5 advanced <input> elements table
48 a) push(), c) pop(), e) reverse() PDF 3 – Page 47–48, Array Object methods table

SECTION F — Match the Following (1 mark per correct pair)

Q. 49

Column A Correct Match PDF / Page / Section
1. <ul> c) Creates a bulleted list PDF 1 – Page 14, Section 1.6 Unordered list
2. usemap a) Client side image map PDF 1 – Page 19, Section 1.9 Image map
3. color b) CSS property for text color PDF 1 – Page 6, CSS Properties table
4. <img> e) Inserts an image on a web page PDF 1 – Page 19, <Img> tag definition
5. <input type="image"> d) Image used as a submit button PDF 1 – Page 1, HTML5 advanced <input> elements

Q. 50

Column A Correct Match PDF / Page / Section
1. ceil() b) Returns next integer greater than or equal to given number PDF 3 – Page 45, Math Object methods table
2. trim() a) Removes white spaces from both sides of a string PDF 3 – Page 45, String Object methods table
3. write() e) Writes HTML expressions or JavaScript code to a document PDF 3 – Page 41, DOM Object methods table
4. IoT c) Internet of Things PDF 4 – Page 53, Section 4.1 IoT
5. SaaS d) Software as a Service PDF 4 – Page 55, Software as a Service (SaaS)

SECTION G — Brief Answers (3 marks each)

Q.No Key Points Expected PDF / Page / Section
51 SEO = Search Engine Optimization; technique for ranking high in search results. On-Page SEO = good keywords, content, titles. Off-Page SEO = link building, backlinks, SMO. PDF 2 – Pages 27–28, Sections 2.1 & 2.2
52 Inline: style attribute on a single element e.g. <p style="color:blue">. Internal: <style> block inside <head>. External: separate .css file linked via <link rel="stylesheet" href="style.css">. PDF 1 – Pages 5–7, Section 1.4 Types of CSS
53 DOM = programming interface for HTML/XML documents defining logical structure. Properties: title, URL, head, body. Methods: write(), writeln(), getElementById(). PDF 3 – Pages 40–41, Section 3.3 DOM
54 Cloud Computing = on-demand network access to shared computing resources. IaaS = storage/servers access. PaaS = platform to develop/manage apps. SaaS = software delivered via internet on subscription. PDF 4 – Pages 54–55, Section 4.2 Cloud Computing
55 float property defines the flow of content. Types: float:left (element floats to left), float:right (element floats to right), float:none (default, shows as is). Example: .box{float:left;} PDF 1 – Page 11, Float Property

SECTION H — Coding Practical (8 marks each)

Q. 56 — Marking Scheme

Sub-component Marks
Correct <!DOCTYPE html> and HTML structure 1
Internal CSS with heading styled (green background, red text, Comic Sans MS font) 2
Form with Name (type="text"), Email (type="email"), DOB (type="date"), Phone (type="tel" with pattern="[0-9]{2}-[0-9]{10}"), URL (type="url") 3
required attribute and placeholder used correctly on fields 1
Submit button using <input type="image"> 1

Reference: PDF 1 – Page 3 (Forms in HTML5 example), Pages 5–6 (Internal CSS), Page 1–2 (input types)


Q. 57 — Marking Scheme

Sub-component Marks
Correct HTML structure with <script> block 1
Form with text input and two buttons (one for table, one for day) 1
display() function using correct for loop (1 to 10) printing a*i 2
document.write() used correctly inside the loop 1
switchDay() function with correct switch-case for 7 days + default + break 2
Functions triggered correctly by onClick events 1

Reference: PDF 3 – Page 38 (Program for loop – multiplication table), Page 37 (switch-case program – days of week)


Answer Key prepared from: PDF 1 (Ch.1 – Advanced Web Designing), PDF 2 (Ch.2 – Introduction to SEO), PDF 3 (Ch.3 – Advanced JavaScript), PDF 4 (Ch.4 – Emerging Technologies)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment