CBSE Class 12 IT 802 Sample Paper Set 2 (2026-27) with Marking Scheme
SAMPLE PRACTICE QUESTION PAPER (SET – 2)
CLASS XII — SESSION 2026–2027
INFORMATION TECHNOLOGY (SUBJECT CODE – 802)
| Time Allowed: 3 Hours | Maximum Marks: 60 |
General Instructions:
1. Please read the instructions carefully.
2. This Question Paper consists of 24 questions in two sections – Section A & Section B.
3. Section A has Objective Type Questions whereas Section B contains Subjective Type Questions.
4. Out of the given (6 + 18 =) 24 questions, a candidate has to answer (6 + 11 =) 17 questions in the allotted (maximum) time of 3 hours.
5. All questions of a particular section must be attempted in the correct order.
6. SECTION A – OBJECTIVE TYPE QUESTIONS (30 MARKS):
(i) This section has 06 questions.
(ii) There is no negative marking.
(iii) Do as per the instructions given.
(iv) Marks allotted are mentioned against each question/part.
7. SECTION B – SUBJECTIVE TYPE QUESTIONS (30 MARKS):
(i) This section contains 18 questions.
(ii) A candidate has to do 11 questions.
(iii) Do as per the instructions given.
(iv) Marks allotted are mentioned against each question/part.
SECTION A: OBJECTIVE TYPE QUESTIONS (30 MARKS)
| Q. 1 | Answer any 4 out of the given 6 questions on Employability Skills (1 x 4 = 4 marks) | Marks |
| (i) | In the sentence ‘The glass was broken by Sanjay’, the subject receives the action rather than performing it. Which type of sentence voice does this represent? (a) Imperative voice (b) Active voice (c) Passive voice (d) Exclamatory voice | 1 |
| (ii) | Which dimension of the Five Factor Model (FFM) describes individuals who are self-disciplined, listen to their conscience, complete tasks on time, and care about others’ feelings? (a) Consciousness (b) Neuroticism (c) Extraversion (d) Openness | 1 |
| (iii) | Ramesh washes his hands more than twenty times a day and feels extremely distressed if any object on his desk is slightly out of alignment. Which Cluster C personality disorder does this illustrate? (a) Avoidant personality disorder (b) Obsessive-compulsive personality disorder (c) Dependent personality disorder (d) Histrionic personality disorder | 1 |
| (iv) | By default, how are numeric values aligned inside a cell in LibreOffice Calc? (a) Left aligned (b) Center aligned (c) Justified (d) Right aligned | 1 |
| (v) | Suresh runs a grocery store where he buys and sells products to stimulate local market demand without engaging in manufacturing. Which category of entrepreneur is Suresh? (a) Business entrepreneur (b) Industrial entrepreneur (c) Social entrepreneur (d) Agricultural entrepreneur | 1 |
| (vi) | Which Indian public sector transport project became the first rail-based methodology to earn 90,000 voluntary carbon credits for improving energy efficiency? (a) Konkan Railway (b) Kolkata Tramways (c) Delhi Metro (d) Mumbai Suburban Rail | 1 |
| Q. 2 | Answer any 5 out of the given 7 questions (1 x 5 = 5 marks) | Marks |
| (i) | Which Relational Model constraint specifies that the primary key of a relation cannot contain a NULL value? (a) Referential Integrity Constraint (b) Entity Integrity Constraint (c) Domain Constraint (d) Unique Constraint | 1 |
| (ii) | In SQL, what does the parameter ‘m’ represent in the numeric data type declaration DECIMAL(m, d)? (a) Number of digits after the decimal point (b) Minimum value allowed in the column (c) Default precision assigned by MySQL (d) Total number of significant digits stored | 1 |
| (iii) | Which category of web-based applications allows citizens to access government services like birth certificate registration and RTI filing directly without middlemen? (a) E-Governance portals (b) Online gaming platforms (c) Virtual shopping carts (d) Video streaming portals | 1 |
| (iv) | Which website provides free online tutorials specifically focused on web development technologies such as HTML, CSS, JavaScript, SQL, and PHP? (a) pearsonvueindia.com (b) british-study.com (c) w3schools.com (d) irctc.co.in | 1 |
| (v) | Determine the output produced by the following Java statements: int x = 15, y = 4; System.out.println(x / y + y * 2); | 1 |
| (vi) | In Java, which keyword is used to create a new instance (object) of a class in memory? (a) class (b) new (c) void (d) import | 1 |
| (vii) | Which method of the java.util.Arrays class searches for a specified key element in a sorted array and returns its index? (a) Arrays.find() (b) Arrays.locate() (c) Arrays.indexOf() (d) Arrays.binarySearch() | 1 |
| Q. 3 | Answer any 6 out of the given 7 questions (1 x 6 = 6 marks) | Marks |
| (i) | Which SQL clause is used to rename a column or a table temporarily for the duration of a query to improve readability or resolve ambiguity? (a) AS (Alias) (b) LIKE (c) DISTINCT (d) IN | 1 |
| (ii) | Consider the following table INVENTORY: Table: INVENTORY ItemCode ItemName Category Qty Rate I101 Wireless Mouse Accessories 35 650 I102 Laser Printer Hardware 12 14500 I103 USB Keyboard Accessories 50 850 I104 LED Monitor Hardware 18 11200 Write an SQL query to display the ItemName and Rate of all items in the ‘Hardware’ category sorted in ascending order of Rate. | 1 |
| (iii) | Which SQL operator is used in a WHERE clause to check whether an attribute contains an unavailable or unknown value? (a) = NULL (b) == NULL (c) IS NULL (d) NOT NULL | 1 |
| (iv) | State whether the following statement is True or False: In online educational platforms, webinars are pre-recorded offline video lectures where learners cannot interact with the instructor in real time. | 1 |
| (v) | During which phase of Web Application Development is the complete application tested with multiple sample datasets to detect and fix bugs before release? (a) Requirement Definition Phase (b) Design Phase (c) Implementation Phase (d) Testing Phase | 1 |
| (vi) | Write the output of the following Java code snippet: String word = “CyberSecurity”; System.out.println(word.contains(“Sec”) + ” ” + word.charAt(5)); | 1 |
| (vii) | Which of the following is a valid variable identifier in Java? (a) 2ndValue (b) $discountRate (c) total-amount (d) class | 1 |
| Q. 4 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | Write the SQL command used to select and open an existing database named ‘HospitalDB’ for executing subsequent queries. | 1 |
| (ii) | Which DDL command is used to add a new column or modify an existing column definition in a relational database table? (a) UPDATE (b) MODIFY (c) INSERT (d) ALTER TABLE | 1 |
| (iii) | Which project characteristic states that a project requires finite resources and is considered complete once its specific end objectives are achieved? (a) Unbounded duration (b) Defined boundaries and specific objectives (c) Infinite budget allocation (d) Continuous repetitive operation | 1 |
| (iv) | In the Online Game (Hangman) case study, how many total guessing chances are provided to a player to guess the hidden word? (a) Seven (b) Five (c) Ten (d) Three | 1 |
| (v) | Which loop construct in Java is exit-controlled and guarantees that the loop body executes at least once even if the test condition is initially false? (a) for loop (b) while loop (c) do-while loop (d) switch block | 1 |
| (vi) | Write a single Java statement to convert an integer variable score = 98 into a String variable strScore using a Wrapper class method. | 1 |
| Q. 5 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | Which SQL aggregate function returns the total number of rows in a table, including rows that contain NULL values in specific columns? (a) SUM(*) (b) TOTAL(*) (c) COUNT(*) (d) AVG(*) | 1 |
| (ii) | Which SQL wildcard character is used with the LIKE keyword to match exactly one single character at a specific position? | 1 |
| (iii) | In the Online Bill Calculator case study, which table stores the Month_Dispatch, Duration of Bill, and customer address details? (a) User_Info (b) Bill_Info (c) Quiz_Info (d) Admin_Login | 1 |
| (iv) | Which exception is thrown in Java when a program attempts to access an array element using an index equal to or greater than the array’s length? (a) ArithmeticException (b) NullPointerException (c) NumberFormatException (d) ArrayIndexOutOfBoundsException | 1 |
| (v) | Which method of the Java String class returns true if the length of the string is 0, and false otherwise? (a) isEmpty() (b) isNull() (c) length() (d) isBlank() | 1 |
| (vi) | Which method of the java.lang.Thread class causes the currently executing thread to temporarily suspend execution for a specified number of milliseconds? (a) wait() (b) sleep() (c) stop() (d) pause() | 1 |
| Q. 6 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | What happens in SQL if a DELETE FROM <table_name>; command is executed without specifying a WHERE clause? (a) Only the first row is deleted (b) SQL raises a syntax error (c) The table structure is permanently dropped (d) All tuples in the table are deleted while retaining the table structure | 1 |
| (ii) | Which of the following is an advantage of Online Reservation Systems specifically for service-providing organizations? (a) Requires less staffing and removes spatial office restrictions (b) Increases paperwork at physical counters (c) Restricts bookings to local office hours only (d) Eliminates the need for an Internet connection | 1 |
| (iii) | Which online educational initiative launched in 2006 hosts free video tutorials across school subjects such as mathematics, physics, chemistry, and economics? (a) Pearson VUE (b) Khan Academy (c) British Study Centres (d) IRCTC Portal | 1 |
| (iv) | What is the special return type specified in a Java method declaration when the method performs an action but does not return any value to the caller? (a) null (b) empty (c) void (d) static | 1 |
| (v) | Which class from the java.util package is used along with System.in to read user input from the console in Java? (a) Scanner (b) Arrays (c) Integer (d) PrintStream | 1 |
| (vi) | In the XYZ Shopping Website case study (Work Integrated Learning IT – DMA), which table stores the Seller_id and Rating of vendors offering products? (a) PRODUCT (b) ORDER (c) SELLER (d) CUSTOMER | 1 |
SECTION B: SUBJECTIVE TYPE QUESTIONS (30 MARKS)
| Q. No. | Answer any 3 out of the given 5 questions on Employability Skills (2 x 3 = 6 marks) Answer each question in 20 – 30 words. | Marks |
| Q. 7 | What are ‘supporting parts of speech’ in English grammar? Briefly explain any two supporting parts of speech with one example each. | 2 |
| Q. 8 | Neha frequently feels overwhelmed before examinations and doubts her preparation. Suggest any four practical techniques from Self-Management Skills that can help her manage stress and stay positive. | 2 |
| Q. 9 | Explain the difference between ‘Sorting data’ and ‘Filtering data’ in LibreOffice Calc. | 2 |
| Q. 10 | What is meant by ‘Perseverance’ as an entrepreneurial attitude? Mention any two ways an entrepreneur can build perseverance. | 2 |
| Q. 11 | What is ‘Appropriate Technology’ in the context of green skills? Give any two examples of appropriate technology. | 2 |
| Q. No. | Answer any 3 out of the given 5 questions (2 x 3 = 6 marks) Answer each question in 20 – 30 words each. | Marks |
| Q. 12 | Define ‘Superkey’ and ‘Primary Key’ in a relational database with reference to a STUDENT relation. | 2 |
| Q. 13 | Consider the following table EMPLOYEE: Table: EMPLOYEE EmpNo EName Dept Salary Bonus E01 Vikram Sales 42000 3000 E02 Sneha HR 38000 NULL E03 Kabir Sales 46000 4500 E04 Ananya IT 55000 NULL Write the output of the following SQL queries: (a) SELECT MAX(Salary), MIN(Salary) FROM EMPLOYEE; (b) SELECT EName FROM EMPLOYEE WHERE Bonus IS NULL; | 2 |
| Q. 14 | Predict the output of the following Java code segment: for (int k = 2; k <= 8; k += 2) { if (k == 6) continue; System.out.print((k * 3) + ” “); } | 2 |
| Q. 15 | What is Java Bytecode? How does the Java Virtual Machine (JVM) make Java programs platform-independent? | 2 |
| Q. 16 | Mention any two applications of Database Management Systems in the Education sector. | 2 |
| Q. No. | Answer any 2 out of the given 3 questions (3 x 2 = 6 marks) Answer each question in 30 – 50 words each. | Marks |
| Q. 17 | Differentiate between Data Definition Language (DDL) and Data Manipulation Language (DML) in SQL. Give two examples of SQL commands under each category. | 3 |
| Q. 18 | Define a Java class named ‘Student’ with two private data members: ‘rollNo’ (int) and ‘marks’ (double). Write a parameterized constructor to initialize both data members and a public method ‘displayResult()’ that prints the roll number and ‘Pass’ if marks >= 40, otherwise ‘Fail’. | 3 |
| Q. 19 | In the XYZ Shopping Website case study (Work Integrated Learning IT – DMA), describe the sequence of events followed by a customer to complete an online order after adding items to the shopping cart. | 3 |
| Q. No. | Answer any 3 out of the given 5 questions (4 x 3 = 12 marks) Answer each question in 50 – 80 words each. | Marks |
| Q. 20 | Consider the following two tables COURSE and TRAINER in a Training Institute Database: Table: COURSE CourseID CourseName DurationMonths Fees C101 Java Programming 3 12000 C102 MySQL Database 2 8500 C103 Web Development 4 15000 C104 Data Analytics 6 22000 Table: TRAINER TrainerID TrainerName CourseID City T01 R. Malhotra C101 Delhi T02 S. Kulkarni C103 Mumbai T03 P. Nair C101 Bengaluru T04 A. Verma C102 Delhi T05 N. Sharma C104 Pune Write SQL queries for the following: (a) Display TrainerName, CourseName, and Fees of all trainers teaching in ‘Delhi’. (b) Display CourseID and the total number of trainers assigned to each course. (c) Delete the record of the course whose CourseID is ‘C102’ (assuming no foreign key restriction blocks it). (d) Display CourseName and Fees of courses whose Fees are between 10000 and 20000 (both inclusive). | 4 |
| Q. 21 | A logistics company is developing a web-based ‘Online Parcel Tracking & Bill Calculator’ application. (a) Explain the activities performed during the ‘Requirement Definition Phase’ (covering Feasibility and Scope) and ‘Testing Phase’ of web-based application development. (b) State any two benefits of online shopping for customers. | 3+1 |
| Q. 22 | (a) The following Java code snippet contains syntax/logical errors. Rewrite the corrected code and underline each correction made: public class EvenSum { public static void main(String args[]) { int sum = 0; int i = 2; do { sum = sum + i; i = i + 2; } while (i <= 10) System.out.println(“Total Sum = ” + Sum); } } (b) What are Assertions in Java? Write the syntax of both forms of the ‘assert’ statement with a brief explanation. | 2+2 |
| Q. 23 | (a) Write a complete Java program using the ‘java.util.Arrays’ class to store the marks {78.5, 92.0, 64.5, 85.0, 71.0} in a double array, sort the array in ascending order, and print both the lowest and highest marks. (b) Predict the output of the following Java code: String city = “NewDelhi”; System.out.println(city.toUpperCase()); System.out.println(city.equalsIgnoreCase(“newdelhi”)); | 2+2 |
| Q. 24 | (a) Explain the following object-oriented and control-flow concepts in Java: (i) Parameterized Constructor vs. Parameter-less (Default) Constructor (ii) Role of the ‘break’ statement inside a ‘switch’ block (b) Write a Java program to create a thread by implementing the ‘Runnable’ interface that prints numbers from 1 to 5. | 2+2 |
*** END OF QUESTION PAPER ***

MARKING SCHEME — SAMPLE PRACTICE PAPER (SET – 2)
CLASS XII — SESSION 2026–2027
INFORMATION TECHNOLOGY (SUBJECT CODE – 802)
| Time Allowed: 3 Hours | Maximum Marks: 60 |
SECTION A: OBJECTIVE TYPE QUESTIONS (30 MARKS)
| Q. 1 | Answer any 4 out of the given 6 questions on Employability Skills (1 x 4 = 4 marks) | Marks |
| (i) | (c) Passive voice | 1 |
| (ii) | (a) Consciousness | 1 |
| (iii) | (b) Obsessive-compulsive personality disorder | 1 |
| (iv) | (d) Right aligned | 1 |
| (v) | (a) Business entrepreneur | 1 |
| (vi) | (c) Delhi Metro | 1 |
| Q. 2 | Answer any 5 out of the given 7 questions (1 x 5 = 5 marks) | Marks |
| (i) | (b) Entity Integrity Constraint | 1 |
| (ii) | (d) Total number of significant digits stored | 1 |
| (iii) | (a) E-Governance portals | 1 |
| (iv) | (c) w3schools.com | 1 |
| (v) | 11 (since 15 / 4 = 3 in integer division, and 3 + 4 * 2 = 3 + 8 = 11) | 1 |
| (vi) | (b) new | 1 |
| (vii) | (d) Arrays.binarySearch() | 1 |
| Q. 3 | Answer any 6 out of the given 7 questions (1 x 6 = 6 marks) | Marks |
| (i) | (a) AS (Alias) | 1 |
| (ii) | SELECT ItemName, Rate FROM INVENTORY WHERE Category = ‘Hardware’ ORDER BY Rate ASC; | 1 |
| (iii) | (c) IS NULL | 1 |
| (iv) | False | 1 |
| (v) | (d) Testing Phase | 1 |
| (vi) | true S | 1 |
| (vii) | (b) $discountRate | 1 |
| Q. 4 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | USE HospitalDB; | 1 |
| (ii) | (d) ALTER TABLE | 1 |
| (iii) | (b) Defined boundaries and specific objectives | 1 |
| (iv) | (a) Seven | 1 |
| (v) | (c) do-while loop | 1 |
| (vi) | String strScore = Integer.toString(score); | 1 |
| Q. 5 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | (c) COUNT(*) | 1 |
| (ii) | _ (Underscore) | 1 |
| (iii) | (b) Bill_Info | 1 |
| (iv) | (d) ArrayIndexOutOfBoundsException | 1 |
| (v) | (a) isEmpty() | 1 |
| (vi) | (b) sleep() | 1 |
| Q. 6 | Answer any 5 out of the given 6 questions (1 x 5 = 5 marks) | Marks |
| (i) | (d) All tuples in the table are deleted while retaining the table structure | 1 |
| (ii) | (a) Requires less staffing and removes spatial office restrictions | 1 |
| (iii) | (b) Khan Academy | 1 |
| (iv) | (c) void | 1 |
| (v) | (a) Scanner | 1 |
| (vi) | (c) SELLER | 1 |
SECTION B: SUBJECTIVE TYPE QUESTIONS (30 MARKS)
| Q. No. | Employability Skills — Short Answer Questions (Any 3 out of 5) (2 x 3 = 6 marks) | Marks |
| Q. 7 | • Supporting parts of speech: Words used to connect main parts of speech (nouns, verbs, etc.) or add information to sentences. (1 mark) • Any two examples (½ mark each = 1 mark): Articles (‘a’, ‘an’, ‘the’ — e.g., an apple), Conjunctions (‘and’, ‘or’, ‘but’ — e.g., Sheela and I went), Prepositions (‘on’, ‘in’, ‘at’ — e.g., cat is on the roof), Interjections (‘Wow!’, ‘Oh!’). | 2 |
| Q. 8 | Any four stress management / positive thinking techniques (½ mark each = 2 marks): 1. Practising physical exercise, yoga, meditation, or deep breathing exercises. 2. Maintaining a healthy balanced diet and getting at least 7 hours of adequate sleep. 3. Keeping academic notes organised and maintaining an accomplishment sheet. 4. Keeping thoughts focused on the present and talking to friends or family for support. | 2 |
| Q. 9 | • Sorting data: Rearranging all rows/records in a worksheet in a specific ascending or descending order (alphabetical or numerical) based on one or more columns. (1 mark) • Filtering data: Hiding unwanted rows temporarily and displaying only those records that meet specific criteria/conditions selected by the user. (1 mark) | 2 |
| Q. 10 | • Perseverance: The ability of an entrepreneur to continue working steadily towards goals even when facing difficulties, setbacks, or failures. (1 mark) • Two ways to build perseverance (½ + ½ = 1 mark): (i) Not giving up during difficult situations, (ii) Working hard consistently and analysing failures to learn from mistakes. | 2 |
| Q. 11 | • Appropriate Technology: Small-scale, simple, environment-friendly technology suited to local needs using locally available resources. (1 mark) • Any two examples (½ + ½ = 1 mark): Bike-powered or hand-powered water pumps, solar street lamps, rooftop rainwater harvesting, biogas production. | 2 |
| Q. No. | Subject Specific — Short Answer Questions-I (Any 3 out of 5) (2 x 3 = 6 marks) | Marks |
| Q. 12 | • Superkey: A set of one or more attributes in a relation whose combined values uniquely identify every tuple (no two tuples have identical values for that set), e.g., {RollNo, Name} in STUDENT. (1 mark) • Primary Key: A minimal superkey (candidate key) chosen by the database designer to uniquely identify tuples in a relation and which cannot contain NULL values, e.g., {RollNo} in STUDENT. (1 mark) | 2 |
| Q. 13 | (a) MAX(Salary) MIN(Salary) 55000 38000 (1 mark) (b) EName Sneha Ananya (1 mark) | 2 |
| Q. 14 | 6 12 24 (2 marks for complete correct output; when k=2 -> prints 6; when k=4 -> prints 12; when k=6 -> continue skips printing; when k=8 -> prints 24) | 2 |
| Q. 15 | • Java Bytecode: A highly optimized set of intermediate instructions generated by the Java compiler from source code (stored in a .class file). (1 mark) • Platform Independence: The Java Virtual Machine (JVM) acts as an interpreter on any operating system (Windows, Linux, Mac) to translate the same compiled Bytecode into native machine code for execution. (1 mark) | 2 |
| Q. 16 | Two applications of DBMS in Education (1 mark each): 1. Storing student details, attendance, examination marks, and final results. 2. Maintaining faculty/staff records, department details, infrastructure, and offered courses. | 2 |
| Q. No. | Subject Specific — Short Answer Questions-II (Any 2 out of 3) (3 x 2 = 6 marks) | Marks |
| Q. 17 | • DDL (Data Definition Language): Used to define, modify, or remove the structure/schema and constraints of database objects. Examples: CREATE TABLE, ALTER TABLE, DROP TABLE. (1½ marks) • DML (Data Manipulation Language): Used to insert, retrieve, modify, or delete data stored inside database tables. Examples: INSERT, SELECT, UPDATE, DELETE. (1½ marks) | 3 |
| Q. 18 | class Student { private int rollNo; private double marks; Student(int r, double m) { rollNo = r; marks = m; } // (1½ marks) public void displayResult() { System.out.print(“Roll No: ” + rollNo + ” – “); if (marks >= 40) System.out.println(“Pass”); else System.out.println(“Fail”); } // (1½ marks) } | 3 |
| Q. 19 | Sequence of events for order completion on XYZ Shopping Website (3 marks): 1. Select the ‘Buy’ option after reviewing items in the shopping cart. 2. Provide customer shipping/contact details (or log in to an existing user account). 3. Choose a preferred payment option (credit/debit card, net banking, e-gift voucher, or Cash on Delivery) and complete the payment transaction. | 3 |
| Q. No. | Subject Specific — Long Answer Questions (Any 3 out of 5) (4 x 3 = 12 marks) | Marks |
| Q. 20 | (a) SELECT TrainerName, CourseName, Fees FROM TRAINER, COURSE WHERE TRAINER.CourseID = COURSE.CourseID AND City = ‘Delhi’; (1 mark) (b) SELECT CourseID, COUNT(*) FROM TRAINER GROUP BY CourseID; (1 mark) (c) DELETE FROM COURSE WHERE CourseID = ‘C102’; (1 mark) (d) SELECT CourseName, Fees FROM COURSE WHERE Fees BETWEEN 10000 AND 20000; (or WHERE Fees >= 10000 AND Fees <= 20000;) (1 mark) | 4 |
| Q. 21 | (a) Requirement Definition & Testing Phases (3 marks): • Requirement Definition Phase: Identifies the problem statement, checks technical and economic feasibility (whether it is possible and profitable to build), and defines the scope (features, goals, and project limitations). (1½ marks) • Testing Phase: Tests both frontend and backend with multiple sample datasets, identifies and fixes bugs, validates the modified code, and prepares the application for final release. (1½ marks) (b) Benefits of Online Shopping (any two, ½ mark each = 1 mark): • 24×7 convenience from home/office without travelling or standing in queues. • Easy price comparison, bargain offers, customer reviews, and direct delivery to any address. | 3+1 |
| Q. 22 | (a) Corrected Code (1 mark each for the two critical fixes = 2 marks): public class EvenSum { public static void main(String[] args) { int sum = 0; int i = 2; do { sum = sum + i; i = i + 2; } while (i <= 10); // Correction 1: semicolon added after while(i <= 10); System.out.println(“Total Sum = ” + sum); // Correction 2: lowercase ‘sum’ instead of ‘Sum’ } } (b) Assertions in Java (2 marks): • An assertion is a debugging statement used to test an assumption/condition that must be true at a specific point during program execution; if false, it throws an AssertionError. (1 mark) • Two syntax forms (½ + ½ = 1 mark): 1. assert expression; 2. assert expression1 : expression2; | 2+2 |
| Q. 23 | (a) Java Program using Arrays.sort() (2 marks): import java.util.Arrays; public class MarksSort { public static void main(String[] args) { double[] marks = {78.5, 92.0, 64.5, 85.0, 71.0}; Arrays.sort(marks); System.out.println(“Lowest: ” + marks[0]); System.out.println(“Highest: ” + marks[marks.length – 1]); } } (b) Output (1 mark per line = 2 marks): NEWDELHI true | 2+2 |
| Q. 24 | (a) Java OOP & Control Flow Concepts (1 + 1 = 2 marks): (i) Parameterized Constructor accepts arguments to initialize data members with specific values at object creation, whereas a Parameter-less Constructor takes no arguments and initializes data members with default values. (ii) Inside a ‘switch’ block, the ‘break’ statement terminates the switch construct immediately after a matching case executes, preventing execution from falling through into subsequent cases. (b) Thread creation using Runnable interface (2 marks): public class PrintNumbers implements Runnable { public void run() { for (int i = 1; i <= 5; i++) System.out.println(i); } public static void main(String[] args) { PrintNumbers p = new PrintNumbers(); Thread t = new Thread(p); t.start(); } } | 2+2 |
🛒 Purchase All 6 Sets in Editable Word Format
Are you a Computer Science teacher, school or student looking for editable question papers?
You can purchase the complete collection of 6 Sets of CBSE Class 12 Information Technology (802) Sample Practice Question Papers with Marking Schemes in Microsoft Word Format from our online store.
Benefits of the Editable Word Format
- Editable Microsoft Word question papers.
- Easy to modify and customise questions.
- Convenient for teachers preparing school examinations.
- Separate marking schemes included for all six sets.
- Ready-to-use practice material.

👉 CLICK HERE TO BUY 6 SETS OF IT 802 SAMPLE PAPERS WITH MARKING SCHEMES – WORD FORMAT
🎯 How to Prepare Effectively for IT 802 Board Examination?
- Complete the prescribed CBSE Class 12 Information Technology syllabus.
- Attempt each sample paper within the allotted examination time.
- Avoid referring to notes while attempting the papers.
- Evaluate your answers using the corresponding marking scheme.
- Identify your weak areas and revise the related topics.
- Practise all six sets to improve your speed, accuracy and confidence.
About MyCS Tutorial
MyCS Tutorial provides quality educational resources for CBSE students and Computer Science educators, including chapter-wise notes, question banks, sample papers, previous year question papers, practical files and study materials.
Visit www.mycstutorial.in for more learning resources related to Computer Science, Information Technology, Informatics Practices, Artificial Intelligence and Web Application.
Prepare Smart. Practise More. Score Better!
Best wishes to all Class 12 students for their CBSE Board Examination 2027!
By Anjeev Kr Singh – Computer Science Educator
Published on : November 23, 2026 | Updated on : November 23, 2026









