Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mkhlz/49f5e3adcc080d60de9eae3f556f126c to your computer and use it in GitHub Desktop.

Select an option

Save mkhlz/49f5e3adcc080d60de9eae3f556f126c to your computer and use it in GitHub Desktop.

Standard XII - Information Technology

Practice Question Paper

Total Marks: 100 Time: 3 Hours


Q1. Fill in the blanks. (15 Marks)

  1. HTML5 introduces a number of new input type values for the type attribute of the ________ tag.
  2. The ________ attribute of <img> tag gives information about the image, so even if the image does not download, it can make the viewers understand the image-related information.
  3. PHP is a widely-used open source ________-side scripting language.
  4. IOT stands for ________ of Things.
  5. ________ is the fifth generation of cellular network technology.
  6. An ________ is a special variable in PHP, which can hold more than one value at a time.
  7. The ________ object in JavaScript represents an open window in a browser.
  8. ________ is a built-in multiway decision statement in JavaScript.
  9. The ________ tag defines an ordered list.
  10. SEO stands for Search Engine ________.
  11. ________ is an online program or software that helps users to search for information on the World Wide Web.
  12. The ________ property in CSS defines how the components (div, hyperlink, heading, etc.) are going to be placed on the web page.
  13. ________ statement is used to jump out of a loop in JavaScript.
  14. ________ cloud environments combine both Public and Private cloud elements.
  15. A ________ is a small text file that the server sends on the user's computer.

Q2. State whether the following statements are True or False. (10 Marks)

  1. The <audio> tag is used to embed video into your web page.
  2. JavaScript is a case-sensitive language.
  3. Shared hosting is the most expensive way to publish your website.
  4. In a public cloud, all the services and supporting infrastructure are managed off-site over the internet and shared across multiple users.
  5. The $_GET superglobal in PHP is an array of variables passed via the HTTP POST method.
  6. White Hat SEO techniques are the strategies that search engines recommend as a part of good design.
  7. A multilevel list cannot be created in HTML5.
  8. Artificial Intelligence (AI) is different from robotics, but related to some extent.
  9. A function name in PHP can start with a number.
  10. The <iframe> element creates an inline frame.

Q3. Choose the single correct answer from the given options. (15 Marks)

  1. Which attribute specifies that an input field should be disabled? a) max b) min c) disabled d) pattern

  2. Which of the following is NOT a valid type of CSS implementation? a) Inline CSS b) Embedded stylesheet c) External CSS d) Nested CSS

  3. The ________ selector selects the id attribute of an HTML element to select a specific element. a) Class b) Id c) Universal d) Group

  4. Which SEO technique involves using invisible text and stuffed keywords? a) White Hat SEO b) Black Hat SEO c) Red Hat SEO d) Blue Hat SEO

  5. Which CSS property allows you to control the size of the font? a) font-weight b) font-style c) font-size d) text-align

  6. What does DOM stand for in JavaScript? a) Data Object Model b) Document Object Model c) Document Oriented Model d) Data Oriented Model

  7. The innerHTML property in JavaScript is used to: a) Get html element and change its content b) Create a new window c) Close the window d) Jump out of a loop

  8. Which built-in Math object method returns the absolute value of a number in JavaScript? a) abs(x) b) cbrt(x) c) ceil(x) d) floor(x)

  9. Which cloud service model gives users access to storage, networking, servers, and other computing resources via the cloud? a) PaaS b) SaaS c) IaaS d) DaaS

  10. Which sub-field of AI employs pattern recognition and deep learning to understand the content of pictures and videos? a) Machine learning b) Natural language processing c) Computer vision d) Neural networks

  11. Which PHP function returns the length of a string? a) str_word_count() b) strlen() c) strrev() d) strpos()

  12. Which variable scope in PHP refers to a variable declared inside a function? a) local b) global c) static d) external

  13. Which of the following tags is used to define a client-side image map? a) <map> b) <form> c) <video> d) <table>

  14. Which PHP keyword is used to declare a local variable that should not be deleted after the function is executed? a) global b) static c) local d) constant

  15. What does the robots.txt file do in SEO? a) Boosts page ranking directly b) Tells search engines which pages to exclude from indexing c) Connects to social media platforms d) Creates backlinks automatically


Q4. Choose TWO correct answers from the given options. (10 Marks)

  1. Valid two methods of Date object in JavaScript are ________ and ________. a) setTime() b) getValidTime() c) getTime() d) setValidTime() e) showTime()

  2. Which of the following are commonly used looping structures in JavaScript? a) for loop b) switch loop c) while loop d) if loop e) break loop

  3. Which two tags are used for creating a client-side image map in HTML5? a) <img> b) <usemap> c) <map> d) <area> e) <hotspot>

  4. Which of the following are valid variable scopes in PHP? a) local b) universal c) global d) external e) standard

  5. Which of the following are types of Cloud Computing deployment models? a) Public cloud b) PaaS cloud c) Private cloud d) SaaS cloud e) IaaS cloud


Q5. Choose THREE correct answers from the given options. (12 Marks)

  1. In PHP, three types of arrays are ________, ________, and ________. a) Indexed arrays b) Simple arrays c) Associative arrays d) Multi-dimensional arrays e) Complex arrays f) General arrays

  2. Which three attributes are used with the <audio> tag in HTML5? a) autoplay b) href c) controls d) cntrl e) loop f) bgsound

  3. Which three statements represent valid features of JavaScript? a) It is an object-oriented scripting language. b) It is a heavy-weight scripting language. c) It is a case-sensitive language. d) It is a platform-dependent language. e) It can handle date and time very effectively. f) It requires special software to run.

  4. Which three of the following are SEO-related techniques or strategies? a) On-Page SEO b) Black Hat SEO c) Inline CSS d) White Hat SEO e) PaaS f) Image Mapping


Q6. Match the Following. (10 Marks)

Question 6.1 (5 Marks)

Column A Column B
1. <input type="url"> a) Describes some aspects of contents of a webpage
2. <input type="color"> b) Defines a field for entering a URL
3. placeholder c) Specifies that an input field is required
4. <meta> d) Defines a color picker
5. <iframe> e) Acts as a temporary label showing the purpose of a text field
f) Creates an inline frame
g) Defines a submit button

Question 6.2 (5 Marks)

Column A Column B
1. Math.abs(x) a) Represents the zero-based index of the match in the string
2. Math.ceil(x) b) Returns the absolute value of a number
3. Math.sqrt(x) c) Returns the square root of a number
4. length property d) Returns the base to the exponent power
5. index property e) Returns the number of characters in a string
f) Joins two or more arrays
g) Returns the next integer greater than or equal to a given number

Q7. Answer the following questions briefly. (20 Marks)

  1. Briefly explain the difference between Server-side scripting and Client-side scripting. (4 Marks)
  2. Explain any four types of positioning in CSS. (4 Marks)
  3. What is Cloud Computing? State any two of its service models. (4 Marks)
  4. Differentiate between GET and POST methods in PHP. (4 Marks)
  5. Define SEO. Briefly explain the difference between On-Page SEO and Off-Page SEO. (4 Marks)

Q8. Coding Practical Questions. (8 Marks)

  1. Write an HTML5 code using CSS to create an ordered list with the names of three tourist cities and a nested unordered list with the tourist places of those cities. Divide the list into two sections left and right by using CSS. (4 Marks)
  2. Write an event-driven JavaScript program to take a number as user input (using an HTML form) and check whether the given number is a prime number or not. Display the output using an alert box. (4 Marks)
@mkhlz
Copy link
Author

mkhlz commented Mar 7, 2026

Answer Key and Source Mapping

Question No. Answer Source (PDF Name, Page / Section)
Q1. Fill in the blanks
1.1 <input> Advanced Web Designing, Page 1 (HTML5 advanced <input> elements)
1.2 alt Introduction to SEO, Page 3 (Image Tags with ALT attribute)
1.3 server Server-Side Scripting (PHP), Page 1 (Introduction to PHP)
1.4 Internet Emerging Technologies, Page 1 (4.1 IoT)
1.5 5G Emerging Technologies, Page 5 (4.4 5G)
1.6 array Server-Side Scripting (PHP), Page 8 (5.6 PHP Arrays)
1.7 window Advanced Javascript, Page 8 (Window Object)
1.8 switch Advanced Javascript, Page 2 (3.2.1 Switch Case statement)
1.9 <ol> Advanced Web Designing, Page 13 (1.5 Ordered list)
1.10 Optimization Introduction to SEO, Page 1 (2.1 Introduction)
1.11 Search Engine Introduction to SEO, Page 1 (Do you know?)
1.12 Display Advanced Web Designing, Page 11 (Display property)
1.13 break Advanced Javascript, Page 5 (Break and continue statements)
1.14 Hybrid Emerging Technologies, Page 3 (Hybrid Cloud)
1.15 cookie Server-Side Scripting (PHP), Page 15 (Cookies)
Q2. True or False
2.1 False Advanced Web Designing, Page 18 (<video> Tag is for video)
2.2 True Advanced Javascript, Page 1 (3.1.1 Features of JavaScript)
2.3 False Advanced Web Designing, Page 21 (Dedicated hosting is most expensive)
2.4 True Emerging Technologies, Page 3 (Public Cloud)
2.5 False Server-Side Scripting (PHP), Page 12 ($_GET is passed via URL parameters)
2.6 True Introduction to SEO, Page 2 (2.3 Techniques of SEO)
2.7 False Advanced Web Designing, Page 16 (Nested list / Multi level list)
2.8 True Emerging Technologies, Page 4 (4.3 AI)
2.9 False Server-Side Scripting (PHP), Page 9 (PHP User Defined Functions)
2.10 True Advanced Web Designing, Page 20 (1.10 INLINE FRAME IN HTML5)
Q3. MCQ (1 Correct)
3.1 c) disabled Advanced Web Designing, Page 2 (Input Restrictions)
3.2 d) Nested Advanced Web Designing, Page 5 (Types of CSS)
3.3 b) Id Advanced Web Designing, Page 8 (CSS Id Selector)
3.4 b) Black Hat SEO Introduction to SEO, Page 2 (BLACK HAT STRATEGIES)
3.5 c) font-size Advanced Web Designing, Page 7 (CSS Properties)
3.6 b) Document Object Model Advanced Javascript, Page 6 (DOM)
3.7 a) Get html element and change its content Advanced Javascript, Page 7 (The innerHTML Property)
3.8 a) abs(x) Advanced Javascript, Page 11 (Math Object)
3.9 c) IaaS Emerging Technologies, Page 2 (Infrastructure as a service)
3.10 c) Computer vision Emerging Technologies, Page 4 (AI sub fields)
3.11 b) strlen() Server-Side Scripting (PHP), Page 7 (Table 5.1)
3.12 a) local Server-Side Scripting (PHP), Page 4 (PHP Variables)
3.13 a) <map> Advanced Web Designing, Page 19 (1.9 Image map)
3.14 b) static Server-Side Scripting (PHP), Page 5 (PHP Variables)
3.15 b) Tells search engines which pages to exclude from indexing Introduction to SEO, Page 5 (Creating Robots.txt)
Q4. MCQ (2 Correct)
4.1 a) setTime(), c) getTime() Advanced Javascript, Page 12 (Date Object)
4.2 a) for loop, c) while loop Advanced Javascript, Pages 3-4 (3.2.2 Looping Statement)
4.3 c) <map>, d) <area> Advanced Web Designing, Pages 19-20 (1.9 Image map in HTML 5)
4.4 a) local, c) global Server-Side Scripting (PHP), Page 4 (PHP Variables)
4.5 a) Public cloud, c) Private cloud Emerging Technologies, Page 3 (Types of Cloud Computing)
Q5. MCQ (3 Correct)
5.1 a) Indexed arrays, c) Associative arrays, d) Multi-dimensional arrays Server-Side Scripting (PHP), Page 8 (5.6 PHP Arrays)
5.2 a) autoplay, c) controls, e) loop Advanced Web Designing, Page 17 (Attributes of <audio> tag)
5.3 a) It is an object-oriented scripting language, c) It is a case-sensitive language, e) It can handle date and time very effectively Advanced Javascript, Page 1 (3.1.1 Features of JavaScript)
5.4 a) On-Page SEO, b) Black Hat SEO, d) White Hat SEO Introduction to SEO, Pages 1-2 (Types & Techniques of SEO)
Q6. Match the Following
6.1 (1) b) Defines a field for entering a URL Advanced Web Designing, Page 1 (Advanced <input> elements)
6.1 (2) d) Defines a color picker Advanced Web Designing, Page 1 (Advanced <input> elements)
6.1 (3) e) Acts as a temporary label showing the purpose of a text field Advanced Web Designing, Page 2 (Input Restrictions)
6.1 (4) a) Describes some aspects of contents of a webpage Advanced Web Designing, Page 3-4 (<meta> tag)
6.1 (5) f) Creates an inline frame Advanced Web Designing, Page 20 (INLINE FRAME)
6.2 (1) b) Returns the absolute value of a number Advanced Javascript, Page 11 (Math Object)
6.2 (2) g) Returns the next integer greater than or equal to a given number Advanced Javascript, Page 11 (Math Object)
6.2 (3) c) Returns the square root of a number Advanced Javascript, Page 12 (Math Object)
6.2 (4) e) Returns the number of characters in a string Advanced Javascript, Page 11 (String Object)
6.2 (5) a) Represents the zero-based index of the match in the string Advanced Javascript, Page 13 (Array Object)
Q7. Brief Answers
7.1 (Explanation covering Security, execution location, server interactions, software requirements) Advanced Javascript, Page 2 (3.1.2 Difference between Server side and client side)
7.2 (Explanation covering Static, Fixed, Relative, and Absolute positioning) Advanced Web Designing, Page 10 (Positioning in CSS)
7.3 (Definition of Cloud computing, mentioning IaaS, PaaS, SaaS) Emerging Technologies, Page 2 (4.2 Cloud Computing)
7.4 (Visibility of data, limits on data size, ability to bookmark, security aspect) Server-Side Scripting (PHP), Page 12 (GET vs POST)
7.5 (Definition of SEO, On-page meaning, Off-page meaning) Introduction to SEO, Page 1 (2.1 & 2.2 Introduction/Types)
Q8. Coding Practical
8.1 (Creation of HTML skeleton, CSS classes/ids with float: left and float: right, <ol> for cities, nested <ul> for places) Advanced Web Designing, Page 16 (Multi level list), Page 11 (Float Property), Page 26 (Exercise)
8.2 (HTML Form <input>, JS function(), parseInt(), for loop to check a%i==0, alert output) Advanced Javascript, Page 5 (Program to check prime number)

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