Instructions: All questions are compulsory. Read each question carefully before answering. Wrap all HTML/code answers in backticks.
<input type="______">defines a color picker in HTML5.- The
______attribute specifies that an input field must be filled out before submitting the form. - The
<meta>tag is placed between the______and______tags in an HTML document. - CSS stands for Cascading
______Sheets. - In CSS, the
______selector acts as a wildcard character and selects all elements on a webpage. - The
<ol>tag defines an______list. - An unordered list is created using the
______tag. - The
______attribute of the<audio>tag makes audio start playing as soon as it is ready. - Clickable regions defined on an image map are called
______. - The
<iframe>element creates an______frame. - SEO stands for Search Engine
______. ______Hat SEO includes relevant content, well-labeled images, and relevant links as part of good design.- The
______file tells the search engine which pages to exclude from indexing. - JavaScript is a/an
______scripting language (not compiled). - The
______statement is used to jump out of a loop in JavaScript. - DOM stands for Document
______Model. - The
______property can be used to get or change any HTML element's content including<html>and<body>. - IoT stands for Internet of
______. - The three primary service models of cloud computing are IaaS, PaaS, and
______. - 5G is the
______generation of cellular network technology.
<input type="color">is a valid HTML5 input type that defines a color picker.- The
placeholderattribute requires a separate<label>tag to display hint text inside a field. - The
<meta>tag is a paired tag (it has both an opening and a closing tag). - Inline CSS is used to apply styling on a single element or line.
- The CSS ID selector is written with a period character (
.) followed by the ID name. - An ordered list can be both numerical and alphabetical.
- HTML5 does not support
disc,circle, andsquareas values for thetypeattribute of<ul>; CSS style should be used instead. - White Hat SEO includes invisible text, stuffed keywords, and duplicate content.
- JavaScript is a server-side scripting language.
Math.ceil(x)returns the next integer greater than or equal to a given number (rounds up).
-
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">
- a)
-
Which CSS property defines the flow of content around an element?
- a)
display - b)
position - c)
float - d)
padding
- a)
-
Which character is used to create an ID selector in CSS?
- a)
% - b)
$ - c)
@ - d)
#
- a)
-
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
- a)
-
Which tag is used to embed audio files on webpages in HTML5?
- a)
<sound> - b)
<media> - c)
<audio> - d)
<embed>
- a)
-
SEO is a subset of:
- a) Social Media Optimization
- b) Search Engine Marketing
- c) Content Marketing
- d) Email Marketing
-
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
-
Which String object property returns the number of characters in a string?
- a)
size - b)
count - c)
charAt - d)
length
- a)
-
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
-
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
-
Which two are valid attributes of the
<audio>tag?- a)
autoplay - b)
href - c)
controls - d)
font - e)
bgsound
- a)
-
Which two are valid types of cloud computing deployment?
- a) Public Cloud
- b) Lateral Cloud
- c) Private Cloud
- d) Dynamic Cloud
- e) Static Cloud
-
Which two are valid properties of the Document object in JavaScript?
- a)
URL - b)
title - c)
name - d)
status
- a)
-
Which two are valid methods of the Date object in JavaScript?
- a)
setTime() - b)
getValidTime() - c)
getTime() - d)
setValidTime()
- a)
-
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
-
Which three are valid CSS positioning types?
- a) Static
- b) Dynamic
- c) Fixed
- d) Absolute
- e) Nested
- f) Circular
-
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">
- a)
-
Which three are valid methods of the JavaScript Array object?
- a)
push() - b)
attach() - c)
pop() - d)
append() - e)
reverse() - f)
insert()
- a)
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 |
-
(3 marks) Define SEO. State its two types with a short description of each.
-
(3 marks) Explain the difference between Inline CSS, Internal (Embedded) CSS, and External CSS. Give one example of each.
-
(3 marks) What is the DOM (Document Object Model)? Name and describe any three methods or properties of the Document object.
-
(3 marks) What is Cloud Computing? Name and briefly explain the three primary service models of cloud computing.
-
(3 marks) Explain the
floatCSS property. What are its three types? Give a CSS example for each type.
-
(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
requiredattribute and appropriateplaceholdertext
- Creates a form to accept: Name (text), Email (email), Date of Birth (date), Office Phone Number (tel, with pattern
-
(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
forloop to display the multiplication table of that number (1 to 10) on the page usingdocument.write() - Uses a
switchstatement 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 |
ANSWER KEY — XII IT Question Paper
SECTION A — Fill in the Blanks (1 mark each)
color<input>elements tablerequired<head>and</head><meta>tag<ul>autoplay<audio>tag tablebreakinnerHTMLSECTION B — True or False (1 mark each)
<input type="color">is listed as defining a color picker<input>elementsplaceholderacts as a temporary label WITHOUT requiring a label tag<meta>is a singular (empty) tag with no closing tag<meta>tag#character, not a period.disc/circle/squaretype attribute; use CSS style instead<ul>tag – NoteMath.ceil(x)returns the next integer greater than or equal to a given number (rounding up)SECTION C — MCQ 1 Correct (1 mark each)
<input type="url"><input>elements tablefloat#href<area>table<audio><Audio>TaglengthSECTION D — MCQ 2 Correct (2 marks each)
autoplay, c)controls<audio>tag tableURL, b)titlesetTime(), c)getTime()SECTION E — MCQ 3 Correct (3 marks each)
email, c)range, d)date<input>elements tablepush(), c)pop(), e)reverse()SECTION F — Match the Following (1 mark per correct pair)
Q. 49
<ul>usemapcolor<img><Img>tag definition<input type="image"><input>elementsQ. 50
ceil()trim()write()SECTION G — Brief Answers (3 marks each)
styleattribute on a single element e.g.<p style="color:blue">. Internal:<style>block inside<head>. External: separate.cssfile linked via<link rel="stylesheet" href="style.css">.title,URL,head,body. Methods:write(),writeln(),getElementById().float:left(element floats to left),float:right(element floats to right),float:none(default, shows as is). Example:.box{float:left;}SECTION H — Coding Practical (8 marks each)
Q. 56 — Marking Scheme
<!DOCTYPE html>and HTML structuretype="text"), Email (type="email"), DOB (type="date"), Phone (type="tel"withpattern="[0-9]{2}-[0-9]{10}"), URL (type="url")requiredattribute andplaceholderused correctly on fields<input type="image">Reference: PDF 1 – Page 3 (Forms in HTML5 example), Pages 5–6 (Internal CSS), Page 1–2 (input types)
Q. 57 — Marking Scheme
<script>blockdisplay()function using correctforloop (1 to 10) printinga*idocument.write()used correctly inside the loopswitchDay()function with correctswitch-casefor 7 days +default+breakonClickeventsReference: 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)