My CS Tutorial

info.mycstutorial@gmail.com | +91 82 21 90 90 45

CBSE Class 12 IT 802 Sample Paper Set 1 (2026-27) with Marking Scheme

CBSE Class 12 IT 802 Sample Paper Set 1 (2026-27) with Marking Scheme


SAMPLE PRACTICE QUESTION PAPER (SET – 1)
CLASS XII — SESSION 2026–2027
INFORMATION TECHNOLOGY (SUBJECT CODE – 802)

Time Allowed: 3 HoursMaximum 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. 1Answer any 4 out of the given 6 questions on Employability Skills (1 x 4 = 4 marks)Marks
(i)In the acronym ‘MINTS’ used for capitalisation rules, what does the letter ‘T’ stand for?
(a) Time
(b) Titles used before people’s names
(c) Towns and cities
(d) Technical terms
1
(ii)Meera loves painting landscapes purely because the activity gives her deep personal joy and satisfaction, even though she receives no prize or money for it. Which type of motivation is this?
(a) Extrinsic motivation
(b) Financial motivation
(c) Intrinsic motivation
(d) External motivation
1
(iii)Karan frequently experiences intense feelings of emptiness, fears being abandoned by his friends, and shows impulsive mood swings and self-harming tendencies during stressful exams. Identify the personality disorder described here:
(a) Paranoid personality disorder
(b) Schizoid personality disorder
(c) Obsessive-compulsive personality disorder
(d) Borderline personality disorder
1
(iv)Which keyboard shortcut is used to insert a new slide in a LibreOffice Impress presentation?
(a) Ctrl + M
(b) Ctrl + N
(c) Ctrl + S
(d) Ctrl + P
1
(v)An entrepreneur who uses technical knowledge and expertise to create and innovate machines, tools, and industrial methods is known as a:
(a) Business entrepreneur
(b) Technical entrepreneur
(c) Non-technical entrepreneur
(d) Agricultural entrepreneur
1
(vi)Which organization was set up by the Ministry of Skill Development and Entrepreneurship to develop skilled workforce competencies in renewable energy, sustainable development, and waste management?
(a) Indian Green Building Council (IGBC)
(b) National Informatics Centre (NIC)
(c) Energy Efficiency Services Limited (EESL)
(d) Skill Council for Green Jobs
1
Q. 2Answer any 5 out of the given 7 questions (1 x 5 = 5 marks)Marks
(i)In a relational database, what is the set of all possible atomic values that an attribute may contain called?
(a) Domain
(b) Tuple
(c) Degree
(d) Cardinality
1
(ii)A school database has a table LIBRARY with 6 columns (BookID, Title, Author, Publisher, Price, Category) and 450 rows. What are the Degree and Cardinality of the LIBRARY table respectively?
(a) Degree = 450, Cardinality = 6
(b) Degree = 6, Cardinality = 450
(c) Degree = 6, Cardinality = 6
(d) Degree = 450, Cardinality = 450
1
(iii)Which of the following is NOT an advantage of an Online Reservation System for consumers?
(a) Price comparison across multiple service providers
(b) Instant confirmation of reservation
(c) Requires physical presence at the booking counter
(d) Ability to select preferred seats or berths
1
(iv)Which e-Governance portal acts as a one-point source to access all Indian Government websites at all levels (Union, State, District, Judiciary, and Legislature) and from all sectors?
(a) www.irctc.co.in
(b) www.w3schools.com
(c) www.flipkart.com
(d) goidirectory.nic.in
1
(v)What will be the final value of variable ‘a’ after executing the following Java statements? int a = 25, b = 4;
a %= b;
1
(vi)Which access modifier in Java restricts the visibility of a data member or method member strictly within the same class?
(a) public
(b) default
(c) private
(d) static
1
(vii)Which method of the java.util.Arrays class is used to arrange elements of an array in ascending order?
(a) Arrays.sort()
(b) Arrays.arrange()
(c) Arrays.order()
(d) Arrays.binarySearch()
1
Q. 3Answer any 6 out of the given 7 questions (1 x 6 = 6 marks)Marks
(i)Which SQL constraint ensures that all values in a column satisfy a specific condition or range (for example, Age >= 18)?
(a) DEFAULT
(b) UNIQUE
(c) NOT NULL
(d) CHECK
1
(ii)Consider the following table PRODUCT: Table: PRODUCT PID ProductName Brand Price Stock P01 Galaxy M34 Samsung 18500 40 P02 Redmi Note 13 Xiaomi 17000 55 P03 Galaxy S23 Samsung 64000 15 P04 Smart Monitor Samsung 22000 25   Write an SQL query to display the ProductName and Price of products whose Brand is ‘Samsung’ and Price is less than 25000.1
(iii)In the Referential Integrity Constraint, which ON DELETE action sets the foreign key attribute values in the referencing table to NULL when the corresponding referenced record in the parent table is deleted?
(a) ON DELETE SET NULL
(b) ON DELETE CASCADE
(c) ON DELETE RESTRICT
(d) ON DELETE NO ACTION
1
(iv)State whether the following statement is True or False:
In online shopping websites, cash on delivery (COD), e-gift vouchers, net banking, and wire transfer are alternative payment methods apart from credit and debit cards.
1
(v)Which educational portal launched by NCERT provides free online learning resources such as e-books, journals, syllabi, and model question papers?
(a) udacity.org
(b) ncert.nic.in
(c) british-study.com
(d) pearsonvueindia.com
1
(vi)Predict the output of the following Java code snippet: String str = “SkillEducation”;
System.out.println(str.indexOf(‘E’) + ” ” + str.endsWith(“ion”));
1
(vii)How many bits of memory does a ‘double’ primitive data type occupy in Java?
(a) 32-bit
(b) 16-bit
(c) 64-bit
(d) 8-bit
1
Q. 4Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)Which SQL command is used to view the structure/schema (field names, data types, nullability, keys) of an existing table in MySQL?1
(ii)Identify the invalid SQL aggregate function from the following:
(a) TOTAL()
(b) SUM()
(c) AVG()
(d) MIN()
1
(iii)During which phase of Web Application Development are radio buttons, checkboxes, combo boxes, and backend SQL tables actually coded and connected?
(a) Requirement Definition Phase
(b) Design Phase
(c) Implementation Phase
(d) Testing Phase
1
(iv)In the case study of the Online Quiz web application, which table stores the quiz questions, four options, subject name, and the correct answer?
(a) Admin_Login
(b) Quiz_Info
(c) User_Info
(d) Result
1
(v)Which block in Java exception handling is optional and ALWAYS executes when the try block exits, regardless of whether an exception occurred or not?
(a) catch
(b) throw
(c) assert
(d) finally
1
(vi)Write a single Java statement to convert the String variable strNum = “450” into an integer variable num using a Wrapper class method.1
Q. 5Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)What will be the result of a SELECT query in SQL if no WHERE clause is specified when retrieving data from two tables (e.g., SELECT * FROM Teacher, Department;)?
(a) Cross Join (Cartesian Product)
(b) Syntax Error
(c) Empty Set
(d) Natural Join
1
(ii)Which SQL pattern matching wildcard character represents zero, one, or multiple random characters when used with the LIKE operator?1
(iii)In the Online Bill Calculator case study, what is the primary key of the Bill_Info table?
(a) Bill_No
(b) Mobile_Number
(c) Pin_Code
(d) Username
1
(iv)In Java, what is the purpose of the ‘assert’ statement?
(a) To handle divide-by-zero runtime exceptions
(b) To convert primitive data types into wrapper objects
(c) To detect logical errors during debugging by testing a condition that should be true
(d) To sort elements of an array in ascending order
1
(v)Which command-line option (VM option) is used to enable assertions at runtime in Java?
(a) -enable
(b) -ea
(c) -assert
(d) -debug
1
(vi)Which method of the Java String class compares two strings for exact character equality (case-sensitive) and returns a boolean value?
(a) compare()
(b) match()
(c) isSame()
(d) equals()
1
Q. 6Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)Consider two tables: DEPARTMENT(Dept_ID, Dept_Name) and TEACHER(Teacher_ID, TName, Dept_No) where Dept_No is a foreign key referencing Dept_ID. If you execute ‘DROP TABLE Department;’ in MySQL while Teacher records still reference it, what happens?
(a) Both tables are deleted automatically
(b) MySQL displays a foreign key constraint error and rejects the deletion
(c) Dept_No values in Teacher become NULL
(d) Only Department table is deleted
1
(ii)Which phase of the Web Application Development project involves defining the problem statement, checking technical/economic feasibility, and establishing the scope of the application?
(a) Design Phase
(b) Implementation Phase
(c) Requirement Definition Phase
(d) Testing Phase
1
(iii)Which of the following web portals is known as the National Portal of India, providing single-window access to information and services from Indian Government entities?
(a) india.gov.in
(b) coursera.org
(c) gcflearnfree.org
(d) flipkart.com
1
(iv)In Java, which method of the Thread class is invoked to begin the execution of a newly created thread?
(a) run()
(b) execute()
(c) begin()
(d) start()
1
(v)What is the range of priority levels that can be assigned to a thread using the setPriority() method in Java?
(a) 0 to 5
(b) 1 to 100
(c) 1 to 10
(d) 0 to 10
1
(vi)In the XYZ Shopping Website case study (Work Integrated Learning IT – DMA), which table has a composite primary key consisting of (Customer_id, Product_id)?
(a) WISH_LIST
(b) CATEGORY
(c) SHIPMENT
(d) PAYMENT
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. 7What is a ‘sentence’ and how does it differ from a ‘phrase’? Give one example of each.2
Q. 8Rohan sets a goal for his board exams: ‘I will score 95% in Information Technology by practising two sample papers every week until February 15.’ Identify and explain any two components of the SMART goal-setting acronym reflected in Rohan’s statement.2
Q. 9Write the steps to protect a spreadsheet with a password using the ‘Save As’ dialog box in LibreOffice Calc.2
Q. 10Differentiate between a ‘wage-employed person’ and an ‘entrepreneur’ with a suitable example.2
Q. 11Explain any two ways in which green jobs contribute to minimising waste and pollution in industries.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. 12Differentiate between Data Redundancy and Data Inconsistency in the context of traditional file processing systems.2
Q. 13Consider the following table BOOK: Table: BOOK BookID Title Genre Price Copies B101 Java Basics Education 450 10 B102 Space Odyssey Fiction 350 15 B103 SQL Mastery Education 500 8 B104 Mystic River Fiction 420 12   Write the output of the following SQL queries:
(a) SELECT Genre, SUM(Copies) FROM BOOK GROUP BY Genre;
(b) SELECT COUNT(*) FROM BOOK WHERE Price > 400;
2
Q. 14Predict the output of the following Java code segment: int a = 12, b = 5;
while (a > b) {
    System.out.print(a + ” “);
    a -= 3;
    b++;
}
2
Q. 15What is a Wrapper Class in Java? Name the wrapper classes corresponding to the primitive data types ‘int’ and ‘char’.2
Q. 16Mention any two uses of Database Management Systems in the Telecommunications 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. 17Explain the following types of users of a Database Management System (DBMS):
(a) Database Administrator (DBA)
(b) Application Programmers
(c) System Analyst
3
Q. 18Write a user-defined Java method named calculateDiscount() that accepts two double parameters: ‘price’ and ‘discountPercent’. The method should compute and return the final payable amount after deducting the discount. Also write a statement to invoke this method from main() with price = 1500.0 and discountPercent = 10.0.3
Q. 19In the XYZ Shopping Website case study (Work Integrated Learning IT – DMA), explain the role and schema attributes of the following tables:
(a) CATEGORY
(b) SHIPMENT
(c) PAYMENT
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. 20Consider the following two tables DEPARTMENT and DOCTOR in a Hospital Database: Table: DEPARTMENT DeptID DeptName Floor D01 Cardiology 2 D02 Neurology 3 D03 Orthopedics 1   Table: DOCTOR DocID DocName DeptID ConsultationFee Experience 101 Dr. A. Sharma D01 1200 15 102 Dr. R. Verma D02 1000 8 103 Dr. S. Nair D01 1500 20 104 Dr. M. Gupta D03 800 5 105 Dr. K. Joshi D02 1100 12   Write SQL queries for the following:
(a) Display DocName, DeptName, and Floor of all doctors working in the ‘Cardiology’ department.
(b) Display the average ConsultationFee for each DeptID having more than one doctor.
(c) Increase the ConsultationFee by 15% for doctors who have more than 10 years of experience.
(d) Display all details of doctors whose name starts with ‘Dr. S’ and sort the result in descending order of ConsultationFee.
4
Q. 21A school wants to develop a web-based ‘Online Quiz’ application so that students can register, select a subject category, attempt multiple-choice questions, and view instant results.
(a) Explain the activities carried out during the ‘Design Phase’ of this web application project (covering Site Map, Database Design, and Page Structure).
(b) Mention any two precautions a user must take while creating and managing passwords for online web applications.
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 FindMax {
    public static void main(String args[]) {
        int[] values = {45, 82, 19, 94, 61};
        int max = values[0];
        for (int i = 1; i <= values.length; i++) {
            if (values[i] > max)
                max = values[i]
        }
        System.out.println(“Maximum = ” + Max);
    }
} (b) Differentiate between creating a thread by extending the Thread class and implementing the Runnable interface in Java.
2+2
Q. 23(a) What is an Exception in Java? Explain the role of ‘try’ and ‘catch’ blocks with a suitable code example that handles division by zero (ArithmeticException / Exception).
(b) Predict the output of the following Java code: String s1 = “Information”;
String s2 = “Technology”;
System.out.println(s1.concat(s2).length());
System.out.println(s2.replace(‘o’, ‘@’));
2+2
Q. 24(a) Define a Java class ‘Book’ with a private data member ‘price’ (double). Write a getter method ‘getPrice()’ to return the price and a setter method ‘setPrice(double newPrice)’ that updates ‘price’ only if ‘newPrice’ is greater than or equal to 100.0; otherwise it prints “Invalid Price”.
(b) Explain the difference between ‘while’ loop and ‘do-while’ loop in Java on any two points.
2+2

*** END OF QUESTION PAPER ***


MARKING SCHEME — SAMPLE PRACTICE PAPER (SET – 1)
CLASS XII — SESSION 2026–2027
INFORMATION TECHNOLOGY (SUBJECT CODE – 802)

Time Allowed: 3 HoursMaximum Marks: 60

SECTION A: OBJECTIVE TYPE QUESTIONS (30 MARKS)

Q. 1Answer any 4 out of the given 6 questions on Employability Skills (1 x 4 = 4 marks)Marks
(i)(b) Titles used before people’s names1
(ii)(c) Intrinsic motivation1
(iii)(d) Borderline personality disorder1
(iv)(a) Ctrl + M1
(v)(b) Technical entrepreneur1
(vi)(d) Skill Council for Green Jobs1
Q. 2Answer any 5 out of the given 7 questions (1 x 5 = 5 marks)Marks
(i)(a) Domain1
(ii)(b) Degree = 6, Cardinality = 4501
(iii)(c) Requires physical presence at the booking counter1
(iv)(d) goidirectory.nic.in1
(v)1  (since 25 % 4 = 1)1
(vi)(c) private1
(vii)(a) Arrays.sort()1
Q. 3Answer any 6 out of the given 7 questions (1 x 6 = 6 marks)Marks
(i)(d) CHECK1
(ii)SELECT ProductName, Price FROM PRODUCT WHERE Brand = ‘Samsung’ AND Price < 25000;1
(iii)(a) ON DELETE SET NULL1
(iv)True1
(v)(b) ncert.nic.in1
(vi)5 true1
(vii)(c) 64-bit1
Q. 4Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)DESC <table_name>;  (or DESCRIBE <table_name>;)1
(ii)(a) TOTAL()1
(iii)(c) Implementation Phase1
(iv)(b) Quiz_Info1
(v)(d) finally1
(vi)int num = Integer.parseInt(strNum);1
Q. 5Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)(a) Cross Join (Cartesian Product)1
(ii)% (Percent sign)1
(iii)(d) Username1
(iv)(c) To detect logical errors during debugging by testing a condition that should be true1
(v)(b) -ea1
(vi)(d) equals()1
Q. 6Answer any 5 out of the given 6 questions (1 x 5 = 5 marks)Marks
(i)(b) MySQL displays a foreign key constraint error and rejects the deletion1
(ii)(c) Requirement Definition Phase1
(iii)(a) india.gov.in1
(iv)(d) start()1
(v)(c) 1 to 101
(vi)(a) WISH_LIST1

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• Sentence: A group of words that communicates a complete thought, meaning, or action (begins with a capital letter and ends with a punctuation mark). Example: Raju goes to school. (1 mark)
• Phrase: A group of words that does not make complete sense on its own. Example: Raju goes. (1 mark)
2
Q. 8Any two of the following SMART components reflected in Rohan’s goal (1 mark each):
1. Specific (S): Clearly states the exact subject and target (‘score 95% in Information Technology’).
2. Measurable (M): Quantifies the target and effort (‘95%’ and ‘two sample papers every week’).
3. Action-oriented (A): Specifies concrete actions to take (‘practising two sample papers every week’).
4. Timely (T): Sets a clear deadline (‘until February 15’).
2
Q. 9Steps to protect a spreadsheet using Save As in LibreOffice Calc:
1. Click on File -> Save As, enter the file name, check the ‘Save with password’ checkbox, and click Save. (1 mark)
2. In the Set Password dialog box, enter the password in both ‘Enter password to open’ and ‘Confirm password’ boxes, then click OK. (1 mark)
2
Q. 10• Wage-employed person: Works for an individual or organization and receives a fixed salary/wage in return (e.g., a software manager working in an IT company). (1 mark)
• Entrepreneur: A self-employed person who sets up and runs a business, taking calculated risks and trying innovative ideas to earn profits (e.g., a founder running a food delivery startup). (1 mark)
2
Q. 11Any two ways green jobs minimise waste and pollution (1 mark each):
1. Reusing scrap material: Damaged paper rolls or plastic off-cuts are fed back into the production line as raw material.
2. Waste exchange: The waste output of one industrial process is utilized as raw material for another process.
3. Managing e-waste & using eco-friendly materials: Judicious recycling of electronic waste and adopting biodegradable packaging (e.g., banana leaf/paper plates).
2
Q. No.Subject Specific — Short Answer Questions-I (Any 3 out of 5) (2 x 3 = 6 marks)Marks
Q. 12• Data Redundancy: Storage of the exact same data/information in multiple independent files, leading to wastage of storage space. (1 mark)
• Data Inconsistency: When duplicate copies of data across multiple files are not all updated simultaneously, different files contain conflicting/mismatched values for the same record. (1 mark)
2
Q. 13(a) Genre       SUM(Copies)
    Education   18
    Fiction     27   (1 mark)
(b) COUNT(*)
    3                (1 mark)
2
Q. 1412 9
(1 mark for each correct number printed on the same line separated by a space: when a=12, b=5 -> prints 12; next a=9, b=6 -> prints 9; next a=6, b=7 -> loop terminates)
2
Q. 15• Wrapper Class: A prebuilt Java class (in java.lang) that wraps/encapsulates a primitive data type into an object so it can be passed by reference or manipulated using object methods. (1 mark)
• Wrapper classes: Integer (for int) and Character (for char). (½ + ½ = 1 mark)
2
Q. 16Two uses of DBMS in Telecommunications (1 mark each):
1. Storing customer details, call records, and monthly billing information.
2. Managing details of communication networks, offered tariff plans, and user subscriptions.
2
Q. No.Subject Specific — Short Answer Questions-II (Any 2 out of 3) (3 x 2 = 6 marks)Marks
Q. 17(a) Database Administrator (DBA): Administers the database and DBMS; responsible for authorizing user access, monitoring usage, providing technical support, and acquiring hardware/software resources. (1 mark)
(b) Application Programmers: Write application programs in high-level languages (like Java) and SQL to interact with the database. (1 mark)
(c) System Analyst: Determines end-user requirements, develops system specifications, and oversees database design along with technical and economic feasibility. (1 mark)
3
Q. 18static double calculateDiscount(double price, double discountPercent) {
    double discount = (price * discountPercent) / 100.0;
    return (price – discount);
}   // (2 marks for method definition & return logic)

Method call in main():
double finalAmount = calculateDiscount(1500.0, 10.0);   // (1 mark)
3
Q. 19(a) CATEGORY: Stores product categories available on the website. Schema: CATEGORY(Category_id, Name, Description). (1 mark)
(b) SHIPMENT: Stores dispatch/shipment details for orders. Schema: SHIPMENT(Shipment_id, Details, Shipment_date). (1 mark)
(c) PAYMENT: Stores transaction details of payments made for orders. Schema: PAYMENT(Payment_id, Order_id, Payment_amount, Payment_date, Mode). (1 mark)
3
Q. No.Subject Specific — Long Answer Questions (Any 3 out of 5) (4 x 3 = 12 marks)Marks
Q. 20(a) SELECT DocName, DeptName, Floor FROM DOCTOR, DEPARTMENT WHERE DOCTOR.DeptID = DEPARTMENT.DeptID AND DeptName = ‘Cardiology’;   (1 mark)
(b) SELECT DeptID, AVG(ConsultationFee) FROM DOCTOR GROUP BY DeptID HAVING COUNT(*) > 1;   (1 mark)
(c) UPDATE DOCTOR SET ConsultationFee = ConsultationFee * 1.15 WHERE Experience > 10;   (1 mark)
(d) SELECT * FROM DOCTOR WHERE DocName LIKE ‘Dr. S%’ ORDER BY ConsultationFee DESC;   (1 mark)
4
Q. 21(a) Design Phase Activities (1 mark each = 3 marks):
  1. Map of the Web Application Site: Defines the structure of the website—all web pages (login, quiz category, test, result) and the navigation paths connecting them.
  2. Database Design: Identifies required database tables (Admin_Login, Quiz_Info, User_Info, Result), attributes, data types, column sizes, and relationships.
  3. Page Structure: Designs the layout of web pages by identifying main sections such as header, main content area, and sidebar.
(b) Password Precautions (any two, ½ mark each = 1 mark):
  • Create a complex password mixing uppercase/lowercase letters, digits, and special characters.
  • Never share passwords with friends, write them down carelessly, or use names/birthdays of near and dear ones.
3+1
Q. 22(a) Corrected Code (½ mark for each of the 4 corrections = 2 marks):
public class FindMax {
    public static void main(String[] args) {
        int[] values = {45, 82, 19, 94, 61};
        int max = values[0];
        for (int i = 1; i < values.length; i++) {  // Correction 1: < instead of <=
            if (values[i] > max)
                max = values[i];  // Correction 2: semicolon added
        }
        System.out.println(“Maximum = ” + max);  // Correction 3 & 4: lowercase ‘max’ (and closing braces)
    }
}

(b) Difference between Thread class and Runnable interface (2 marks):
• Extending Thread class: The class directly inherits from java.lang.Thread and overrides run(). Since Java does not support multiple inheritance, the subclass cannot extend any other class.
• Implementing Runnable interface: The class implements java.lang.Runnable, overrides run(), and its object is passed to a Thread constructor. This preserves flexibility to extend another class.
2+2
Q. 23(a) Exception & try-catch (2 marks):
• An Exception is an unexpected runtime error condition (such as division by zero or array index out of bounds) that disrupts normal program execution and causes premature termination. (1 mark)
• Role & Example: The ‘try’ block encloses code that may throw an exception, while the ‘catch’ block catches and handles the exception gracefully:
  try {
      int res = 10 / 0;
  } catch (Exception e) {
      System.out.println(e.getMessage());
  }   (1 mark)

(b) Output (1 mark per line = 2 marks):
21
Techn@l@gy
2+2
Q. 24(a) Book Class with Getter and Setter (2 marks):
class Book {
    private double price;
    public double getPrice() { return price; }
    public void setPrice(double newPrice) {
        if (newPrice >= 100.0) price = newPrice;
        else System.out.println(“Invalid Price”);
    }
}

(b) Difference between ‘while’ and ‘do-while’ loop (1 mark per point = 2 marks):
1. Control Type: A ‘while’ loop is an entry-controlled loop (checks condition before executing body), whereas a ‘do-while’ loop is an exit-controlled loop (checks condition after executing body).
2. Minimum Execution: A ‘while’ loop executes zero or more times (may not run at all if condition is false initially), whereas a ‘do-while’ loop executes at least once.
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.
CBSE Class 12 IT Practice Papers
CBSE Class 12 IT Practice Papers

👉 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?

  1. Complete the prescribed CBSE Class 12 Information Technology syllabus.
  2. Attempt each sample paper within the allotted examination time.
  3. Avoid referring to notes while attempting the papers.
  4. Evaluate your answers using the corresponding marking scheme.
  5. Identify your weak areas and revise the related topics.
  6. 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

About the Author

Anjeev Kr Singh

Anjeev Kr Singh

Computer Science Educator, Author, and HOD. Guiding CBSE students in CS, IP, IT, WA & AI via mycstutorial.in. Creator of Question Bank for Class 10 & 12 students.

You cannot copy content of this page

Scroll to Top