Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mkhlz/3f298ac688bf0b619afcf51e4e511156 to your computer and use it in GitHub Desktop.

Select an option

Save mkhlz/3f298ac688bf0b619afcf51e4e511156 to your computer and use it in GitHub Desktop.

Standard XII – Information Technology

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

Chapters Covered: Ch.1 – Advanced Web Designing | Ch.2 – Introduction to SEO | Ch.3 – Advanced JavaScript


Section A – Fill in the Blanks (15 Questions × 1 Mark = 15 Marks)

  1. JavaScript is an __________ scripting language that executes its instructions directly without compiling.
  2. __________ script resides on the web server and is executed there.
  3. The __________ statement is used to jump out of a loop early.
  4. DOM stands for __________ .
  5. The __________ object is at the very top of the object hierarchy in JavaScript and is the parent of all other objects.
  6. The length property of the String object returns the __________ of characters in a string.
  7. Math.ceil() returns the next integer __________ than or equal to a given number.
  8. CSS stands for __________ .
  9. The <iframe> element creates an __________ frame.
  10. SEO stands for __________ .
  11. __________ are links on one website that, when clicked, take the user to another site.
  12. The <map> tag has only one attribute called __________ .
  13. An image with multiple hyperlinks is called an __________ .
  14. The __________ type of CSS stylesheet uses the <link> tag inside the <head> section of every page.
  15. The onblur event occurs when a user __________ focus of an element.

Section B – True or False (15 Questions × 1 Mark = 15 Marks)

  1. JavaScript is a case-sensitive language.
  2. Math.ceil() returns the nearest integer less than or equal to a given number.
  3. The MAX_VALUE property of the Number object returns the smallest possible value.
  4. getDay() method of the Date object returns the month in number.
  5. The onKeydown event occurs when the user moves the mouse pointer.
  6. Client-side scripting is more secure than server-side scripting.
  7. JavaScript is a platform-independent scripting language.
  8. The default statement in a switch-case block is mandatory.
  9. HTML5 is currently used because it supports mobile technology.
  10. A CSS file must be saved with a .css extension.
  11. The <meta> tag is placed between <body> and </body> tags.
  12. An unordered list can be numerical or alphabetical.
  13. White Hat SEO techniques are approved by search engines.
  14. The <audio> element supports the controls attribute to display play/pause buttons.
  15. parseInt() converts a given string into a floating-point number.

Section C – Multiple Choice Questions (1 Correct Answer) (10 Questions × 1 Mark = 10 Marks)

Q1. JavaScript is a __________ language.

  • a) Compiled
  • b) Interpreted
  • c) Assembly
  • d) Machine-level

Q2. Which window method displays a dialog box with OK and Cancel buttons?

  • a) alert()
  • b) prompt()
  • c) confirm()
  • d) open()

Q3. Which is the correct syntax for a for loop in JavaScript?

  • a) for(condition; initialization; iteration)
  • b) for(initialization; condition; iteration)
  • c) for(iteration; condition; initialization)
  • d) for(initialization; iteration; condition)

Q4. The innerHTML property is primarily used to:

  • a) Apply CSS styles to HTML elements
  • b) Get or change the content of an HTML element
  • c) Add new sibling elements
  • d) Delete HTML elements permanently

Q5. Which character is used to define an ID selector in CSS?

  • a) %
  • b) $
  • c) @
  • d) #

Q6. The <ol> tag defines a/an:

  • a) Unordered list
  • b) Definition list
  • c) Ordered list
  • d) Nested list

Q7. Which attribute of the <img> tag is used to link a client-side image map?

  • a) src
  • b) alt
  • c) usemap
  • d) href

Q8. Which CSS property defines the flow of content around elements?

  • a) position
  • b) display
  • c) float
  • d) margin

Q9. Which <input> type defines a color picker in HTML5?

  • a) <input type="text">
  • b) <input type="color">
  • c) <input type="range">
  • d) <input type="image">

Q10. Which file tells the search engine which pages to exclude from indexing?

  • a) index.html
  • b) sitemap.xml
  • c) robots.txt
  • d) seo.txt

Section D – Multiple Choice Questions (2 Correct Answers) (5 Questions × 2 Marks = 10 Marks)

Q11. Which of the following are valid methods of the JavaScript Date object? (Choose 2)

  • a) setTime()
  • b) getValidTime()
  • c) getTime()
  • d) setValidTime()

Q12. Which of the following are properties of the Document object? (Choose 2)

  • a) URL
  • b) title
  • c) name
  • d) status

Q13. Which of the following are event handlers used with the text/input object in JavaScript? (Choose 2)

  • a) onBlur
  • b) onMove
  • c) onFocus
  • d) onAction

Q14. Which of the following are types of CSS? (Choose 2)

  • a) Inline
  • b) External
  • c) Circular
  • d) Dynamic

Q15. Image maps are of two types. Which of the following are correct? (Choose 2)

  • a) Network Side
  • b) Client Side
  • c) Computer Side
  • d) Server Side

Section E – Multiple Choice Questions (3 Correct Answers) (5 Questions × 3 Marks = 15 Marks)

Q16. Which of the following are correct methods of the Window object? (Choose 3)

  • a) write()
  • b) alert()
  • c) writeln()
  • d) close()
  • e) open()
  • f) charAt()

Q17. Which of the following are features of JavaScript? (Choose 3)

  • a) Supports event-based programming
  • b) Is a platform-dependent language
  • c) Is a case-insensitive language
  • d) Provides inbuilt objects
  • e) Can handle date and time effectively
  • f) Requires special software to run

Q18. Which of the following are inbuilt objects in JavaScript? (Choose 3)

  • a) Time
  • b) Date
  • c) Inheritance
  • d) Array
  • e) Number
  • f) Function

Q19. Which of the following are attributes used with the <audio> tag? (Choose 3)

  • a) autoplay
  • b) href
  • c) controls
  • d) cntrl
  • e) loop
  • f) bgsound

Q20. Which of the following are CSS positioning types? (Choose 3)

  • a) Static
  • b) Fixed
  • c) Absolute
  • d) Position
  • e) Dynamic
  • f) Nested

Section F – Match the Following (2 Sets × 5 Marks = 10 Marks)

Set 1 – Match the JavaScript Method/Function to its Description

Column A Column B
1. ceil() a) Writes HTML expressions or JavaScript code to a document
2. floor() b) Sets focus to the current window
3. write() c) Removes whitespace from both sides of a string
4. focus() d) Returns the next integer greater than or equal to a given number
5. trim() e) Returns the next integer less than or equal to a given number
f) Removes focus from the current window
g) Displays an alert box with an OK button

Set 2 – Match the HTML/CSS Term to its Description

Column A Column B
1. <ul> a) Used to indicate a client-side image map
2. usemap b) A CSS property
3. color c) Creates a bulleted list
4. <img> d) Defines an image as a submit button
5. <input type="image"> e) Inserts an image on a web page
f) Creates an ordered list
g) Defines a server-side image map

Section G – Brief Answer Questions (5 Questions × 3 Marks = 15 Marks)

Q21. State three differences between client-side scripting and server-side scripting.

Q22. What is the Window object in JavaScript? State any two methods of the Window object with their descriptions.

Q23. What is DOM (Document Object Model)? Name any three properties or methods of the Document object.

Q24. Define SEO. State the two types of SEO with a brief explanation of each.

Q25. Explain the float property in CSS. State its three types with a brief description of each.


Section H – Coding / Practical Questions (2 Questions × 5 Marks = 10 Marks)

Q26. Write an event-driven JavaScript program embedded in an HTML page that:

  • Accepts a number from the user via a text box
  • Displays the multiplication table (1 to 10) of that number when a button is clicked
  • Uses a for loop to generate the table

Q27. Write an HTML5 program that:

  • Creates a form to accept Name (<input type="text">), Email (<input type="email">), and Date of Birth (<input type="date">) from the user
  • Includes a Submit button
  • Applies internal CSS so that the form heading has a background color, a different font family, and centered text alignment

End of Question Paper


Mark Distribution Summary

Section Type Questions Marks Each Total
A Fill in the Blanks 15 1 15
B True or False 15 1 15
C MCQ – 1 Correct 10 1 10
D MCQ – 2 Correct 5 2 10
E MCQ – 3 Correct 5 3 15
F Match the Following 2 sets (5 each) 1 per sub-q 10
G Brief Answers 5 3 15
H Coding Practical 2 5 10
Total 100
@mkhlz
Copy link
Author

mkhlz commented Mar 5, 2026

Answer Key – XII IT Question Paper (100 Marks)

Section A – Fill in the Blanks

Q# Answer Source (Chapter / Page)
1 Interpreted Ch.3 – Advanced JavaScript, Pg. 35 (3.1 Introduction)
2 Server-side Ch.3 – Advanced JavaScript, Pg. 36 (3.1.2 Difference – Point 1)
3 break Ch.3 – Advanced JavaScript, Pg. 39 (Break and Continue Statements)
4 Document Object Model Ch.3 – Advanced JavaScript, Pg. 40 (DOM Section)
5 Window Ch.3 – Advanced JavaScript, Pg. 42 (Window Object)
6 Number (count) Ch.3 – Advanced JavaScript, Pg. 45 (String Object – length property)
7 Greater Ch.3 – Advanced JavaScript, Pg. 45 (Math Object – ceil(x))
8 Cascading Style Sheets Ch.1 – Advanced Web Designing, Pg. 5 (1.4 CSS)
9 Inline Ch.1 – Advanced Web Designing, Pg. 20–21 (1.10 Inline Frame)
10 Search Engine Optimization Ch.2 – SEO, Pg. 27 (2.1 Introduction)
11 Backlinks Ch.2 – SEO, Pg. 30 (5. SEO-Backlinks)
12 name Ch.1 – Advanced Web Designing, Pg. 19–20 (1.9 Image Map – <map> tag)
13 Image map Ch.1 – Advanced Web Designing, Pg. 19 (1.9 Image Map)
14 External Ch.1 – Advanced Web Designing, Pg. 7 (3. External Stylesheet)
15 Loses / leaves Ch.3 – Advanced JavaScript, Pg. 44 (3.4 JavaScript Events – onblur)

Section B – True or False

Q# Answer Reason / Source
1 True Ch.3, Pg. 35 – "It is case sensitive language"
2 False Ch.3, Pg. 45 – ceil() rounds up (≥ given number); floor() rounds down
3 False Ch.3, Pg. 47 – MAX_VALUE returns the largest maximum value
4 False Ch.3, Pg. 46 – getDay() returns day of the week (0–6), not the month
5 False Ch.3, Pg. 44 – onKeydown fires on a key press, not mouse movement
6 False Ch.3, Pg. 36 – Server-side scripting is more secure than client-side
7 True Ch.3, Pg. 35 – "JavaScript is platform independent scripting language"
8 False Ch.3, Pg. 36–37 – "The default statement is not mandatory"
9 True Ch.1, Pg. 1 – "HTML5 is currently used because it supports mobile technology"
10 True Ch.1, Pg. 7 – "must be saved with a .css extension"
11 False Ch.1, Pg. 4 – <meta> is placed between <head> and </head> tags
12 False Ch.1, Pg. 14 – Ordered list can be numerical or alphabetical; unordered uses bullets
13 True Ch.2, Pg. 28 – "White Hat SEO: Techniques that search engines recommends"
14 True Ch.1, Pg. 17 – controls attribute "displays play/pause button etc."
15 False Ch.3, Pg. 47 – parseInt() converts to integer; parseFloat() converts to float

Section C – MCQ (1 Correct)

Q# Answer Source
Q1 b) Interpreted Ch.3, Pg. 35 (3.1 Introduction)
Q2 c) confirm() Ch.3, Pg. 42 (Window Object Methods table)
Q3 b) for(initialization; condition; iteration) Ch.3, Pg. 37 (3.2.2 for…loop Syntax)
Q4 b) Get or change the content of an HTML element Ch.3, Pg. 41 (The innerHTML Property)
Q5 d) # Ch.1, Pg. 8 (CSS Id Selector)
Q6 c) Ordered list Ch.1, Pg. 13 (1.5 Ordered List)
Q7 c) usemap Ch.1, Pg. 19 (1.9 Image Map – <Img> usemap attribute)
Q8 c) float Ch.1, Pg. 11 (Float Property)
Q9 b) <input type="color"> Ch.1, Pg. 1 (HTML5 advanced <input> elements table)
Q10 c) robots.txt Ch.2, Pg. 31 (Creating Robots.txt)

Section D – MCQ (2 Correct)

Q# Answers Source
Q11 a) setTime() and c) getTime() Ch.3, Pg. 46 (Date Object Methods table)
Q12 a) URL and b) title Ch.3, Pg. 41 (DOM Properties table)
Q13 a) onBlur and c) onFocus Ch.3, Pg. 44 (3.4 JavaScript Events table)
Q14 a) Inline and b) External Ch.1, Pg. 5 (Types of CSS)
Q15 b) Client Side and d) Server Side Ch.1, Pg. 19 (1.9 Image Map – "Image Maps are of two types")

Section E – MCQ (3 Correct)

Q# Answers Source
Q16 b) alert(), d) close(), e) open() Ch.3, Pg. 42 (Window Object Methods table)
Q17 a) Supports event-based programming, d) Provides inbuilt objects, e) Can handle date and time effectively Ch.3, Pg. 35 (3.1.1 Features of JavaScript)
Q18 b) Date, d) Array, e) Number Ch.3, Pg. 40, 45–47 (3.5 JavaScript Built-in Objects)
Q19 a) autoplay, c) controls, e) loop Ch.1, Pg. 17 (Attributes of <audio> tag table)
Q20 a) Static, b) Fixed, c) Absolute Ch.1, Pg. 10 (Positioning in CSS – four types listed)

Section F – Match the Following

Set 1 – JavaScript Methods

Column A Correct Match Source
1. ceil() d) Returns the next integer greater than or equal to a given number Ch.3, Pg. 45 (Math Object table)
2. floor() e) Returns the next integer less than or equal to a given number Ch.3, Pg. 46 (Math Object table)
3. write() a) Writes HTML expressions or JavaScript code to a document Ch.3, Pg. 41 (DOM Methods table)
4. focus() b) Sets focus to the current window Ch.3, Pg. 42 (Window Object Methods table)
5. trim() c) Removes whitespace from both sides of a string Ch.3, Pg. 45 (String Object Methods table)

Set 2 – HTML/CSS Terms

Column A Correct Match Source
1. <ul> c) Creates a bulleted list Ch.1, Pg. 14 (1.6 Unordered List)
2. usemap a) Used to indicate a client-side image map Ch.1, Pg. 19 (1.9 Image Map – <Img> usemap)
3. color b) A CSS property Ch.1, Pg. 6 (CSS Properties table)
4. <img> e) Inserts an image on a web page Ch.1, Pg. 19 (1.9 Image Map – <Img> description)
5. <input type="image"> d) Defines an image as a submit button Ch.1, Pg. 1 (HTML5 advanced <input> elements table)

Section G – Brief Answers (Model Answers)

Q# Key Points to Cover Source
Q21 – Client vs Server Scripting 1. Server-side is more secure; source not visible. 2. Server-side communicates with server; client-side needs no server. 3. Client-side: HTML5, JS; Server-side: PHP, ASP.net, Python. 4. Server-side customises pages; client-side used for validation. 5. Server-side needs web server software; client-side needs only a browser. Ch.3, Pg. 36 (3.1.2 – 5 points listed)
Q22 – Window Object "At the very top of the object hierarchy is the window object." Any 2 methods: alert() – displays alert box; confirm() – OK/Cancel box; prompt() – gets input; setTimeout() – calls function after milliseconds; open() – opens new window etc. Ch.3, Pg. 42 (Window Object section)
Q23 – DOM DOM is the programming interface for HTML and XML documents. It defines the logical structure of a document. Properties: head, title, URL, body. Methods: write(), writeln(), getElementById(). Ch.3, Pg. 40–41 (3.3 Objects – DOM section)
Q24 – SEO Types SEO = Search Engine Optimization; technique to rank a website high in search results. Types: On-Page SEO – concerned with information displayed to user (content, keywords, title, heading tags). Off-Page SEO – concerned with website-website relationships (backlinks, link building, SMO). Ch.2, Pg. 27 (2.1 Introduction + 2.2 Types of SEO)
Q25 – Float Property Float defines the flow of content. Three types: float: left – element floats on the left side of the container. float: right – element floats on the right side. float: none – default; shows element as it is. Ch.1, Pg. 11 (Float Property)

Section H – Coding Practical (Model Answers)

Q26 – Multiplication Table using For Loop

<!DOCTYPE html>
<html>
<head>
  <title>Multiplication Table</title>
  <script type="text/javascript">
    // grab the number and loop through 1 to 10
    function display() {
      var num = parseInt(form1.t1.value);
      // clear old output first
      document.getElementById("result").innerHTML = "";
      for (var i = 1; i <= 10; i++) {
        // write each row of the table
        document.getElementById("result").innerHTML += num + " x " + i + " = " + (num * i) + "<br/>";
      }
    }
  </script>
</head>
<body>
  <h2>Multiplication Table</h2>
  <form name="form1">
    Enter number: <input type="text" name="t1"><br><br>
    <input type="button" value="Display Table" onclick="display()">
  </form>
  <div id="result"></div>
</body>
</html>

Source: Ch.3, Pg. 38 (Program for loop – similar table program)


Q27 – HTML5 Form with Internal CSS

<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
  <style>
    /* style the heading nicely */
    h2 {
      background-color: skyblue;
      font-family: "Comic Sans MS";
      text-align: center;
      padding: 10px;
    }
    /* keep form inputs spaced out */
    form {
      margin: 20px;
    }
  </style>
</head>
<body>
  <h2>Student Registration Form</h2>
  <form>
    Name: <input type="text" name="name" required><br><br>
    Email: <input type="email" name="email" required><br><br>
    Date of Birth: <input type="date" name="dob" required><br><br>
    <input type="submit" value="Submit">
  </form>
</body>
</html>

Source: Ch.1, Pg. 1–2 (HTML5 advanced <input> elements – email, date, text) + Pg. 5–6 (Embedded/Internal CSS + CSS Properties)


End of Answer Key

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