CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions

Class 11 Informatics Practices Solved Question Papers: CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions

Explore authentic exam materials through the CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions. Tailored for Class 11 learners, utilizing these Informatics Practices previous year papers ensures thorough preparation and strengthens time management skills before final CBSE evaluations.

Download Class 11 Informatics Practices Question Paper PDF

Navigate directly to the solved Informatics Practices question papers using the digital viewer below. Each practice set includes detailed solutions, allowing students to instantly cross-check their work and identify areas requiring further revision.

This is a CBSE Class 11 Informatics Practices annual exam question paper with answers, set for 75 marks in 3 hours 15 minutes and made up of 47 questions in 6 sections. It is based on the current NCERT syllabus and covers python basics (variables, operators, type casting, flowcharts), lists and dictionaries with their methods, simple Python programs such as linear search, and MySQL commands (CREATE, INSERT, UPDATE, ALTER, DELETE, SELECT with WHERE, LIKE, BETWEEN and ORDER BY, primary key and constraints). Attempt it in exam conditions without looking at the answers, then open the answers and teacher's notes below to check your work.

Question Paper

Time Allowed: 3 hours 15 minutes
Maximum Marks: 75

General Instructions

1. All questions are compulsory.
2. The number written against each question (or at its right margin) indicates its marks.
3. Give appropriate syntax and examples wherever necessary.
4. Where a question asks for the output of a program or query, show the evaluation process as part of your answer.
5. Any reasonable assumption about a table, command or text may be made, but state it clearly.
6. Write programs and queries neatly without overwriting.

Section A: Short Answer Questions

1 mark each

Q1. Define a loop in a program. [1 mark]

View Answer & Explanation

Answer: A loop is a programming construct that repeats a block of statements again and again as long as a given condition is true (or for a fixed number of times), e.g. for and while loops in Python.

Teacher's Note:
1. A loop is Python's iteration structure.
2. Always mention that the block repeats while the condition holds.

Q2. Which keyword is used as the NOT operator in a Python program? [1 mark]

View Answer & Explanation

Answer: The keyword not (a logical operator that reverses a Boolean value, e.g. not True gives False).

Teacher's Note:
1. Python uses words for logical operators: and, or, not.
2. Do not confuse it with the symbol ! which is used only in !=.

Q3. Code A: Q = 5
Code B: Q += 2
What is the line Code B doing in the given snippet? [1 mark]

View Answer & Explanation

Answer: Code B is an augmented assignment: it adds 2 to the current value of Q and stores the result back in Q, i.e. Q = Q + 2. Q becomes 7.

Teacher's Note:
1. The operator += combines addition and assignment.
2. It changes Q itself, it is not a comparison.

Q4. SELECT name from STU where MARK > 90;
Rectify the mistake, if any, in the above statement and re-write the correct SQL statement (assume the table STU has the corresponding columns). [1 mark]

View Answer & Explanation

Answer: There is no mistake. SQL keywords are not case sensitive, the condition is valid and the statement ends with a semicolon. Written conventionally: SELECT name FROM STU WHERE MARK > 90;

Teacher's Note:
1. Keywords written in lower case still work in MySQL.
2. Do not invent an error; check column names, keywords and the semicolon before deciding.

Q5. A graphical representation of the steps of solving a problem is known as __________. [1 mark]

View Answer & Explanation

Answer: Flowchart. It uses standard symbols joined by arrows to show the flow of an algorithm.

Teacher's Note:
1. A flowchart is the picture form of an algorithm.
2. Pseudocode is the text form, so keep the two apart.

Q6. What will be the value of C after executing the following Python code?

B = 56
C = B // 3
[1 mark]

View Answer & Explanation

Answer: // is floor division. 56 ÷ 3 = 18.67, floor is 18. So C = 18.

Teacher's Note:
1. Floor division gives the integer part of the quotient, not a decimal.
2. The original code used an undefined name A; use the variable B that was assigned.

Q7. Name any two options that can be used with the ALTER TABLE command in MySQL. [1 mark]

View Answer & Explanation

Answer: Any two of: ADD (add a column or constraint), MODIFY (change the data type of a column), DROP (remove a column), CHANGE (rename a column) / RENAME.

Teacher's Note:
1. ALTER changes the structure of a table, not its rows.
2. Use UPDATE, not ALTER, when you want to change data in rows.

Q8. D = (1:2, 3:4, 5:6)
What is wrong in the above Python dictionary code? Rectify the mistake and re-write the corrected expression. [1 mark]

View Answer & Explanation

Answer: A dictionary must be enclosed in curly braces { }, not round brackets (round brackets make a tuple, and key:value pairs are not allowed there).
Correct: D = {1:2, 3:4, 5:6}

Teacher's Note:
1. Dictionaries use curly braces with key:value pairs.
2. Keys must be unique and of an immutable type.

Q9. A Python dictionary is immutable. State TRUE or FALSE. [1 mark]

View Answer & Explanation

Answer: FALSE. A dictionary is mutable: items can be added, changed or deleted after creation. (Only its keys must be immutable.)

Teacher's Note:
1. Lists and dictionaries are mutable; strings and tuples are immutable.
2. Do not mix up immutable keys with an immutable dictionary.

Q10. Which command is used to display the structure of a table in MySQL? [1 mark]

View Answer & Explanation

Answer: DESC table_name; (or DESCRIBE table_name;), e.g. DESC EMP;

Teacher's Note:
1. It lists column names, data types, keys and defaults.
2. SHOW TABLES lists the tables, not the structure of one table.

Section B: Python Output Questions

2 marks each

Q11. Predict the output of the following Python code.

str_val = "HELLO"
L1 = list(str_val)
print(L1)
[2 marks]

View Answer & Explanation

Answer: list() converts a string into a list of its characters.
Output: ['H', 'E', 'L', 'L', 'O']

Teacher's Note:
1. list() on a string splits it into single characters.
2. The printed list shows quotes and commas, so write them.

Q12. What will be the output of the following code?

L1 = [5, 2, 3, 7, 1]
for a in L1:
    print(a)
[2 marks]

View Answer & Explanation

Answer: The loop variable a takes each element in turn and prints it on a new line.
Output:

5
2
3
7
1

Teacher's Note:
1. Print the same variable that the for loop uses.
2. Each print() statement ends with a new line by default.

Q13. What will be the value of L1 after executing the following code?

L1 = [2, 3, 7, 1]
L2 = [0, 9, 3]
L1.append(L2)
print(L1)
[2 marks]

View Answer & Explanation

Answer: append() adds its argument as a single element at the end, so L2 becomes a nested list inside L1.
Output: [2, 3, 7, 1, [0, 9, 3]]

Teacher's Note:
1. append() adds one item; extend() would add the items separately.
2. L1 now has 5 elements, the last being a list.

Q14. Show the output of the following code.

D1 = {'Mohan':95, 'Ram':89, 'Suhel':92, 'Sangeeta':85}
for key in D1:
    print(key, ':', D1[key])
[2 marks]

View Answer & Explanation

Answer: Looping over a dictionary gives its keys in insertion order.

Mohan : 95
Ram : 89
Suhel : 92
Sangeeta : 85

Teacher's Note:
1. print() with commas puts a space between the values.
2. So the output is Mohan : 95, with a space on both sides of the colon.

Q15. What will be the value of D1 after executing the following code?

D1 = {'Mohan':95, 'Ram':89, 'Suhel':92, 'Sangeeta':85}
D1['Meena'] = 78
print(D1)
[2 marks]

View Answer & Explanation

Answer: Assigning to a new key adds a new key:value pair.
Output: {'Mohan': 95, 'Ram': 89, 'Suhel': 92, 'Sangeeta': 85, 'Meena': 78}

Teacher's Note:
1. Assigning to a missing key adds it; assigning to an existing key changes its value.
2. New items appear at the end.

Q16. What will be the value of D after executing the following code?

D = {'M':95, 'R':89, 'S':92}
D1 = {'A':25, 'K':35}
D.update(D1)
print(D)
[2 marks]

View Answer & Explanation

Answer: update() adds all key:value pairs of D1 into D.
Output: {'M': 95, 'R': 89, 'S': 92, 'A': 25, 'K': 35}

Teacher's Note:
1. update() changes D itself and D1 stays the same.
2. If a key already existed in D, its value would be overwritten.

Section C: Short and Long Answer Questions

3 marks each

Q17. Consider the following Python dictionary and predict the output of each statement.

R = {'Mohan': 95, 'Ram': 89, 'Suhel': 92, 'Sangeeta': 85, 'Meena': 78}
i) print(R.get('Ram'))
ii) print(R.keys())
iii) print(R.values()) [3 marks]

View Answer & Explanation

Answer: i) get('Ram') returns the value of key 'Ram': 89
ii) dict_keys(['Mohan', 'Ram', 'Suhel', 'Sangeeta', 'Meena'])
iii) dict_values([95, 89, 92, 85, 78])

Teacher's Note:
1. keys() and values() return view objects, so the output carries the dict_keys and dict_values wrapper.
2. get() returns None instead of an error when a key is missing.

Q18. Consider the following MySQL table EMP.

EMP_CODENAMEADDRESSFather
201NitishDelhiRahul
202SampradaMeghalayaAhim
203RahulAssamRohit
204AnushkaShillongAAAA
205AneeshaShillongSamprada
Write queries to:
i) display all the details of those whose ADDRESS ends with the letter 'a'.
ii) display NAME and Father of those whose EMP_CODE is between 202 and 204.
iii) remove all the data of 'Rahul'. [3 marks]

View Answer & Explanation

Answer: i) SELECT * FROM EMP WHERE ADDRESS LIKE '%a';
(Result: 202, Samprada, Meghalaya, Ahim)
ii) SELECT NAME, Father FROM EMP WHERE EMP_CODE BETWEEN 202 AND 204;
(Result: Samprada-Ahim, Rahul-Rohit, Anushka-AAAA; BETWEEN includes both ends)
iii) DELETE FROM EMP WHERE NAME = 'Rahul';
(removes the row with EMP_CODE 203)

Teacher's Note:
1. % stands for any number of characters, so '%a' means ends with a.
2. Never write DELETE without WHERE, because it removes every row.

Q19. Define a primary key. Write the syntax to create the table EMP of the previous question with EMP_CODE as the primary key, and write a query to insert at least one row. [3 marks]

View Answer & Explanation

Answer: 1. Primary key: a column (or set of columns) whose values uniquely identify each row of a table. It cannot contain duplicate or NULL values, and a table can have only one primary key.
2. Create table:

CREATE TABLE EMP (
  EMP_CODE INT PRIMARY KEY,
  NAME VARCHAR(20),
  ADDRESS VARCHAR(30),
  Father VARCHAR(20)
);
3. Insert a row:
INSERT INTO EMP VALUES (201, 'Nitish', 'Delhi', 'Rahul');

Teacher's Note:
1. Text values go in single quotes, numbers do not.
2. Inserting a second row with EMP_CODE 201 would give a duplicate-key error.

Q20. Write the rules for naming a variable (identifier) in Python. [3 marks]

View Answer & Explanation

Answer: 1. It can contain letters (A-Z, a-z), digits (0-9) and the underscore (_) only.
2. It must start with a letter or an underscore, never with a digit.
3. It cannot contain spaces or special characters such as $, +, @, -.
4. It cannot be a Python keyword (e.g. if, for, while).
5. Names are case sensitive (marks and Marks are different) and should be meaningful, e.g. total_marks.

Teacher's Note:
1. Give an example of a valid and an invalid name to earn full marks.
2. Remember that 2num is invalid but num2 is valid.

Section D: SQL Queries

1 mark each. Use the table MARKET given below (consider the original table for each part).

Q21. Table name: MARKET

ADM_NOCATEGORYFATHERSTU_NAMESALARYPHONEVEHICLE
APS101JCOJasonRameshor500001234567Yes
APS 105ORsRishab DasAsween600007956411No
APS 103CivilProloy NathAnil Kasya700001024668Yes
APS 102StaffKukrejhaThomson800005787999Yes
APS 104TeacherSunitaAlexendir900003547899No
APS 108MTSPintuAnita200007897888No
APS 109LDCSanySantosh300008968888No
APS 111JCOAmmyAnthony250007878787Yes
Write the query to insert all the values using an appropriate command (write only one row's insert statement in the answer). [1 mark]

View Answer & Explanation

Answer: INSERT INTO MARKET VALUES ('APS101', 'JCO', 'Jason', 'Rameshor', 50000, 1234567, 'Yes');
(The remaining rows are inserted in the same way, or in one statement with the row lists separated by commas.)

Teacher's Note:
1. The values must follow the column order of the table.
2. Put quotes around text values such as 'JCO' and 'Yes'.

Q22. Using the table MARKET, write the query to change the data type of the attribute SALARY to VARCHAR with size 20. [1 mark]

View Answer & Explanation

Answer: ALTER TABLE MARKET MODIFY SALARY VARCHAR(20);

Teacher's Note:
1. MODIFY changes the data type of an existing column.
2. ADD is for new columns and DROP is for removing columns.

Q23. Using the table MARKET, write the query to replace the category 'Civil' by 'General'. [1 mark]

View Answer & Explanation

Answer: UPDATE MARKET SET CATEGORY = 'General' WHERE CATEGORY = 'Civil';

Teacher's Note:
1. UPDATE changes existing data and needs SET.
2. Without WHERE every row would be changed.

Q24. Using the table MARKET, write the query to display the FATHER of all those whose STU_NAME has 'x' as the fourth letter. [1 mark]

View Answer & Explanation

Answer: SELECT FATHER FROM MARKET WHERE STU_NAME LIKE '___x%';
(Each underscore stands for exactly one character. Result: Sunita, since 'Alexendir' has x as its fourth letter.)

Teacher's Note:
1. _ matches exactly one character, while % matches any number of characters.
2. Use three underscores before x to make it the fourth letter.

Q25. Using the table MARKET, write the query to display the admission numbers, in descending order of name, of those who work as JCO. [1 mark]

View Answer & Explanation

Answer: SELECT ADM_NO FROM MARKET WHERE CATEGORY = 'JCO' ORDER BY STU_NAME DESC;
(Result: APS101 (Rameshor), APS 111 (Anthony))

Teacher's Note:
1. WHERE comes before ORDER BY in a query.
2. ORDER BY is ascending by default, so write DESC for descending.

Q26. Using the table MARKET, write the query to increase the SALARY of all by 10% of the existing salary. [1 mark]

View Answer & Explanation

Answer: UPDATE MARKET SET SALARY = SALARY + SALARY * 0.10;
(equivalently SET SALARY = SALARY * 1.10). No WHERE clause is needed because all rows are to be changed.

Teacher's Note:
1. The new value can be calculated from the old value in the same statement.
2. Do not add a WHERE clause when the change is for every row.

Q27. Using the original table MARKET, write the output of:
SELECT ADM_NO FROM MARKET WHERE SALARY BETWEEN 50000 AND 80000; [1 mark]

View Answer & Explanation

Answer: BETWEEN includes both limits, so salaries 50000, 60000, 70000 and 80000 qualify.
Output: APS101, APS 105, APS 103, APS 102 (four rows).

Teacher's Note:
1. BETWEEN is inclusive of both end values.
2. List the rows in the same order as they are stored in the table.

Q28. Using the original table MARKET, state the effect of:
ALTER TABLE MARKET DROP VEHICLE; [1 mark]

View Answer & Explanation

Answer: The column VEHICLE is removed from the table along with all its data. The table now has six columns: ADM_NO, CATEGORY, FATHER, STU_NAME, SALARY, PHONE.

Teacher's Note:
1. ALTER with DROP deletes a whole column, not a row.
2. This change cannot be undone, so use it carefully.

Q29. Using the original table MARKET, state the effect of:
UPDATE MARKET SET ADM_NO = '' WHERE STU_NAME LIKE '____e%'; [1 mark]

View Answer & Explanation

Answer: The pattern needs names whose fifth letter is 'e' (four underscores, then e). These are Asween and Alexendir. So ADM_NO of these two rows (APS 105 and APS 104) becomes empty (blank); other rows are unchanged. MySQL reports 2 rows affected.

Teacher's Note:
1. Count the underscores to find the position of the letter.
2. Check each name letter by letter; Rameshor has e as its fourth letter, not the fifth.

Q30. Using the original table MARKET, write the output of:
SELECT CATEGORY, FATHER FROM MARKET ORDER BY SALARY DESC; [1 mark]

View Answer & Explanation

Answer: Rows are sorted by salary from highest to lowest:
1. Teacher, Sunita (90000)
2. Staff, Kukrejha (80000)
3. Civil, Proloy Nath (70000)
4. ORs, Rishab Das (60000)
5. JCO, Jason (50000)
6. LDC, Sany (30000)
7. JCO, Ammy (25000)
8. MTS, Pintu (20000)

Teacher's Note:
1. Only the columns named in SELECT are shown, not SALARY.
2. The sorting is done by SALARY even though SALARY is not displayed.

Section E: Multiple Choice Questions

1 mark each

Q31. In what order will the data be sorted after executing the following query?
SELECT * FROM School ORDER BY Class; [1 mark]
(a) Order of inserting records in the table
(b) Ascending order
(c) Descending order
(d) None of these

View Answer & Explanation

Answer: (b) Ascending order. ORDER BY sorts in ascending order unless DESC is written.

Teacher's Note:
1. ASC is the default for ORDER BY.
2. Without ORDER BY, rows appear in no guaranteed order.

Q32. Which clause in SQL is used to apply a condition on the rows to be selected? [1 mark]
(a) AS
(b) HAVING
(c) WHERE
(d) ON

View Answer & Explanation

Answer: (c) WHERE. It filters rows according to a condition (HAVING filters groups, AS gives an alias).

Teacher's Note:
1. WHERE is the basic filter clause of a SELECT query.
2. AS only renames a column or table in the output.

Q33. Identify the valid variable name from the following. [1 mark]
(a) P Q
(b) P$Q
(c) P+Q
(d) PQ

View Answer & Explanation

Answer: (d) PQ. The others contain a space or a special character, which is not allowed in identifiers.

Teacher's Note:
1. Only letters, digits and underscore are allowed in names.
2. A space splits a name into two tokens.

Q34. The _____ constraint is used to ensure that duplicate values are not allowed in a column of a MySQL table. [1 mark]
(a) UNIQUE
(b) REMOVE
(c) DISTINCT
(d) ALL

View Answer & Explanation

Answer: (a) UNIQUE. It rejects a repeated value in the column. (DISTINCT is used in SELECT, not as a constraint.)

Teacher's Note:
1. Constraints are rules placed on columns when a table is created.
2. UNIQUE allows NULL, while PRIMARY KEY does not.

Q35. Which of the following commands will change the row(s) of a table in a MySQL database? [1 mark]
(a) REPLACE TABLE
(b) CHANGE TABLE
(c) UPDATE
(d) ALTER TABLE

View Answer & Explanation

Answer: (c) UPDATE. It modifies the existing data in rows; ALTER TABLE changes the structure.

Teacher's Note:
1. UPDATE works on data and ALTER works on structure.
2. REPLACE TABLE and CHANGE TABLE are not valid commands.

Q36. DML stands for ____________________. [1 mark]

View Answer & Explanation

Answer: Data Manipulation Language. It includes INSERT, UPDATE, DELETE and SELECT commands.

Teacher's Note:
1. DML works on the data stored in tables.
2. DDL (CREATE, ALTER, DROP) works on the structure.

Q37. "Keywords can be used as identifiers/variables in the Python programming language." This statement is: [1 mark]
(a) True
(b) False
(c) Sometimes, based on condition
(d) None of the above

View Answer & Explanation

Answer: (b) False. Keywords are reserved words with a fixed meaning and cannot be used as variable names.

Teacher's Note:
1. Words like if, for and while are reserved.
2. You can see all keywords using the keyword module.

Q38. Which statement consists of a logical operator? [1 mark]
(a) a + b ** c
(b) a > b
(c) a and not b
(d) 2 in a

View Answer & Explanation

Answer: (c) a and not b. The words and and not are logical operators. (a) is arithmetic, (b) is relational and (d) is a membership operator.

Teacher's Note:
1. The logical operators are and, or and not.
2. The original option (c) was not a valid expression, so it is corrected.

Q39. len() is used to input the values to be used in a dictionary program. State True or False. [1 mark]

View Answer & Explanation

Answer: False. len() returns the number of items (key:value pairs) in a dictionary; values are input using input() or assigned directly.

Teacher's Note:
1. len() counts items and does not read input.
2. For a dictionary, len() gives the number of keys.

Q40. Type casting is used between dissimilar _______ . [1 mark]
(a) data types
(b) variables
(c) constants
(d) conditions

View Answer & Explanation

Answer: (a) data types. Type casting converts a value from one data type to another, e.g. int('5') or float(3).

Teacher's Note:
1. Type conversion functions are int(), float(), str() and list().
2. Conversion done by Python itself is implicit, and by the programmer is explicit.

Q41. The meaning of a == 5 in a Python script is: [1 mark]
(a) The constant value a is stored in variable 5
(b) The constant value 5 is stored in variable a
(c) a is equal to 5
(d) None of the above

View Answer & Explanation

Answer: (c) a is equal to 5. The operator == compares values and gives True or False; it does not assign.

Teacher's Note:
1. A single = assigns and a double == compares.
2. Writing = instead of == in a condition is a common error.

Q42. Consider the lists below and select the correct statement.

L1 = [1, 2, 3]
L2 = [1, [2, 3]]
[1 mark]
(a) L1 == L2
(b) L1 Not equal L2
(c) L1 <> L2
(d) L1 != L2

View Answer & Explanation

Answer: (d) L1 != L2. L2 has a nested list as its second element, so the lists are not equal and L1 != L2 gives True. (<> is not valid in Python 3.)

Teacher's Note:
1. Lists are equal only if all elements match in order.
2. The operator <> existed in Python 2 only.

Q43. Consider the lists below and select the correct statement.

L1 = [1, 2, 3, 7, 9]
L2 = [1, 2, 5, 8]
print(L1 < L2)
[1 mark]
(a) True
(b) False
(c) Error in the condition
(d) None of the above

View Answer & Explanation

Answer: (a) True. Lists are compared element by element: 1 = 1, 2 = 2, then 3 < 5, so L1 < L2 is True.

Teacher's Note:
1. Comparison stops at the first position where the elements differ.
2. The length of the list matters only when one list is a prefix of the other.

Section F: Programming Questions

Write Python programs for the following

Q44. Write a Python program to (a) add two lists element by element (the lists have the same length) and (b) delete an element from a list. [4 marks]

View Answer & Explanation

Answer:

L1 = [1, 2, 3, 4]
L2 = [10, 20, 30, 40]

# (a) add the elements of the two lists
result = []
for i in range(len(L1)):
    result.append(L1[i] + L2[i])
print("Sum list:", result)

# (b) delete an element
x = int(input("Enter the element to delete: "))
if x in result:
    result.remove(x)
else:
    print("Element not found")
print("List now:", result)
Output of (a): Sum list: [11, 22, 33, 44]. If the user enters 22 for (b), the list becomes [11, 33, 44].
(Joining two lists with + or deleting by index with del result[i] or pop(i) is also acceptable.)

Teacher's Note:
1. Use range(len(list)) to go through both lists by position.
2. Check with in before remove(), because remove() gives an error if the value is missing.

Q45. Write a Python program to (a) remove an element from a dictionary using the pop() function and (b) clear all the elements of a dictionary using the clear() function. [4 marks]

View Answer & Explanation

Answer:

D = {'Mohan': 95, 'Ram': 89, 'Suhel': 92}

# (a) remove a key using pop()
k = input("Enter key to remove: ")
v = D.pop(k, None)
if v is None:
    print("Key not found")
else:
    print("Removed", k, ":", v)
print("Dictionary:", D)

# (b) clear all elements
D.clear()
print("After clear:", D)
For input Ram the output is: Removed Ram : 89, Dictionary: {'Mohan': 95, 'Suhel': 92}, After clear: {}

Teacher's Note:
1. pop(key) removes that key and returns its value.
2. clear() empties the dictionary but the dictionary itself still exists.

Q46. Write a Python program to search for an element in a list entered by the user (linear search). [5 marks]

View Answer & Explanation

Answer:

n = int(input("How many elements? "))
L = []
for i in range(n):
    L.append(int(input("Enter element: ")))
key = int(input("Enter element to search: "))

found = False
for i in range(len(L)):
    if L[i] == key:
        print("Element found at position", i + 1)
        found = True
        break
if not found:
    print("Element not found")
Working: each element is compared with the key from the first to the last; the search stops when a match is found, otherwise the message "not found" is printed. For L = [4, 9, 2] and key 9 the output is: Element found at position 2.

Teacher's Note:
1. Linear search checks the elements one by one from the start.
2. Use a flag variable or a for-else so that the not-found message is printed only once.

Q47. Write a Python program to find the largest element of a list using the sorting method. [5 marks]

View Answer & Explanation

Answer:

n = int(input("How many elements? "))
L = []
for i in range(n):
    L.append(int(input("Enter element: ")))

L.sort()                 # ascending order
print("Sorted list:", L)
print("Largest element:", L[-1])
Working: after sorting in ascending order the largest value is at the last position (index -1). For [34, 7, 91, 20] the sorted list is [7, 20, 34, 91] and the largest element is 91. (Sorting with L.sort(reverse=True) and printing L[0] is also correct.)

Teacher's Note:
1. After an ascending sort, the largest item is the last item, L[-1].
2. sort() changes the original list and returns None, so do not write L = L.sort().

Practice Exam Question Papers for Class 11 Informatics Practices CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions

Download CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions for Class 11 Informatics Practices

Access structured past examination sets for Class 11 Informatics Practices. Solving the CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions provided above helps students understand actual exam difficulty levels, question formats, and topic distributions for both descriptive and objective sections.

Master Marking Schemes and Time Management

Practicing past question sets under timed home conditions helps refine pacing and time management skills, ensuring you complete your Informatics Practices examination comfortably within the official duration.

Offline Revision & Comprehensive Study Material

Download digital copies of these papers for convenient offline revision anywhere. Cross-check your completed steps against our expert solution guides to ensure complete accuracy.

FAQs

Where can I download the official PDF for CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions?

The CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions is available for download on StudiesToday.com. It includes complete set with all sections so that Class 11 students can practice with the exact same paper that came in the CBSE exams.

Are the solutions for CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions based on the official CBSE marking scheme?

Yes, the solutions for CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions are prepared by subject matter experts as per official marking scheme. Class 11 students will understand the structure of answers and 'step-marks' methodology Informatics Practices.

How does solving CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions help in preparing for the 2026 exams?

Solving previous year papers like CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions is important to understand repeat themes and question difficulty levels of Informatics Practices. It helps Class 11 students to test their time management skills too.

Can I access CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions in different languages?

Yes, where applicable, CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions is available in both English and Hindi mediums. All students from Class 11 can access Informatics Practices study material in their preferred language.

Is there a charge to download the CBSE Class 11 Informatics Practices solved papers?

No, all previous year question papers on StudiesToday, including CBSE Class 11 Informatics Practices Question Paper Set 10 with Solutions, are provided free of charge in mobile-friendly PDF.