CLASS XI - HALF
YEARLY EXAMINATION (2026-27)
Subject:
Informatics Practices (065)
Time Allowed: 3 Hours | Maximum
Marks: 70
General Instructions:
- This question paper contains 35 questions divided
into 4 Sections: A, B, C, and D.
- Section A consists of 21 Multiple Choice
Questions (MCQs) carrying 1 mark each.
- Section B consists of 7 Short Answer Type-I
(SA-I) questions carrying 2 marks each.
- Section C consists of 5 Short Answer Type-II
(SA-II) questions carrying 3 marks each.
- Section D consists of 4 Long Answer (LA)
questions carrying 5 marks each.
- Programming language: Python.
SECTION A (Multiple Choice Questions - 1 Mark Each)
Q1. Which of the following is considered volatile memory in a computer system?
(a) Hard Disk Drive
(b) Read Only Memory (ROM)
(c) Random Access Memory (RAM)
(d) Compact Disc (CD)
Ans: (c) Random Access
Memory (RAM)
Q2. Which generation of computers introduced the use of
Microprocessors?
(a) First Generation
(b) Third Generation
(c) Fourth Generation
(d) Fifth Generation
Ans: (c) Fourth Generation
Q3. Which of the following operations cannot be performed
using the Recycle Bin in Windows?
(a) Restoring deleted files back
to their original location
(b) Permanently deleting selected
files
(c) Automatically increasing
physical hard disk storage capacity
(d) Viewing properties of deleted
items
Ans: (c) Automatically
increasing physical hard disk storage capacity
Q4. Which of the following is a single-user operating
system?
(a) Linux
(b) MS-DOS
(c) Windows 10
(d) UNIX
Ans: (b) MS-DOS
Q5. The logical operator that returns True only if both
expressions/operands are True is:
(a) OR
(b) NOT
(c) AND
(d) XOR
Ans: (c) AND
Q6. Choose the correct Python statement to check whether
variable x is greater than or equal to variable y:
(a) if x => y:
(b) if x >= y:
(c) if x greater y:
(d) if (x - y) == +:
Ans: (b) if x >= y:
Q7. What will be the output of the following Python code
snippet?
val = False
if not val:
print("Python")
else:
print("IP")
print("Exam")
(a) Python Exam
(b) IP Exam
(c) Python IP
(d) Exam
Ans: (a) Python Exam
Q8. What is the result of evaluating the relational
expression: 15 != 15?
(a) True
(b) False
(c) None
(d) Error
Ans: (b) False
Q9. Which of the following characteristics is NOT true
for Python?
(a) Python is case-sensitive.
(b) Python uses indentation for
code blocks.
(c) Python code is executed
directly by hardware without translation.
(d) Python supports
object-oriented programming.
Ans: (c) Python code is
executed directly by hardware without translation.
Q10. Which of the following is a valid Python variable
name according to naming rules?
(a) 1st_rank
(b) total-marks
(c) _student_id
(d) for
Ans: (c) _student_id
Q11. What will be the data type of variable res if
res = 45.0 / 5 in Python 3?
(a) int
(b) float
(c) double
(d) complex
Ans: (b) float
Q12. What will be the output of the following print
statement?
print('Computer', 'Science', sep='-')
(a) ComputerScience
(b) Computer-Science
(c) Computer Science
(d) Computer- -Science
Ans: (b) Computer-Science
Q13. How many times will the loop execute in the
following code snippet?
for i in range(1, 6, 2): print(i)
(a) 2
(b) 3
(c) 5
(d) 6
Ans: (b) 3
Q14. What is the output of type(10 + 20) in
Python?
(a) <class 'float'>
(b) <class 'str'>
(c) <class 'int'>
(d) <class 'tuple'>
Ans: (c) <class
'int'>
Q15. Which of the following is an open-source mobile
operating system?
(a) iOS
(b) Windows 11 Mobile
(c) Android
(d) macOS
Ans: (c) Android
Q16. Which of the following belongs to Python's immutable
core data types?
(a) List
(b) Dictionary
(c) Tuple
(d) Set
Ans: (c) Tuple
Q17. What will be the output of the expression: 45 //
4?
(a) 11
(b) 11.25
(c) 12
(d) 3
Ans: (a) 11
Q18. Which statement is used to transfer control to the
beginning of the loop, skipping the rest of the current iteration?
(a) break
(b) pass
(c) continue
(d) exit
Ans: (c) continue
Q19. In Python, which statement acts as a null operation
or placeholder when a statement is syntactically required but no action is
needed?
(a) empty
(b) pass
(c) null
(d) skip
Ans: (b) pass
Q20. Which of the following symbols is used in Python to
write single-line comments?
(a) //
(b) /*
(c) #
(d) <!--
Ans: (c) #
Q21. Assertion (A): The identifier $my\_var1$ is valid,
but $1my\_var$ is invalid in Python. Reason
(R): Python keywords cannot be used as variable names.
(a) Both (A) and (R) are true and (R) is the correct
explanation of (A).
(b) Both (A) and (R) are true but (R) is not the correct
explanation of (A).
(c) (A) is true but (R) is false.
(d) (A) is false but (R) is true.
Ans: (a) Both (A) and (R) are true and (R) is the correct
explanation of (A).
SECTION B (Short
Answer Type-I Questions - 2 Marks Each)
Q22. Differentiate between Interpreter and Compiler with
respect to translation and execution.
●
Ans: An interpreter translates and
executes a program line by line, whereas a compiler scans and translates the
entire source code into machine code at once before execution.
Q23. Write a Python program that accepts radius from the
user and calculates the area of a circle. (Area = π * r^2, use value of π =
3.14)
●
Ans:
radius = float(input("Enter radius of circle: "))
area = 3.14 * radius * radius
print("Area of circle:", area)
Q24. Explain the difference between assignment operator
(=) and equality operator (==) with suitable examples.
Ans: The assignment operator (=) is used to store a
value into a variable (e.g., x = 10), whereas the equality operator (==) is a
relational operator used to check if two values are equal (e.g., x == 10).
Q25. What are Python comments? Why are they used? Give an
example.
●
Ans: Comments are non-executable
explanatory statements added to code to improve readability and documentation.
Python ignores them during execution.
Example: # Initialize score counter
Q26. Predict the output of the following Python code
snippet:
x = 5
y = 3
x, y = y + 2, x * 2
print(x, y)
print(x + y % 3)
●
Ans:
Plaintext
5 10
6
Q27. Convert the following mathematical expressions into
valid Python expressions:
(i)
(ii)
Ans:
(i) s = u * t + 0.5 * a * t ** 2
(ii) z = math.sqrt(x ** 2 + y ** 2)
Q28. What will be the output of the following string code
segment?
a = "Learning"
b = "Python"
print(a + b)
print(len(a) > len(b))
●
Ans:
LearningPython
True
SECTION C (Short
Answer Type-II Questions - 3 Marks Each)
Q29. Expand the following acronyms related to computer
hardware and memory:
(i) SMPS (ii) OMR
(iii) EEPROM
●
Ans:
(i) SMPS: Switched-Mode Power Supply
(ii) OMR: Optical Mark Recognition
(iii) EEPROM: ,
Q30. Write a Python program to check if a number entered
by the user is even or odd and positive or negative.
●
Ans:
num = int(input("Enter an integer: "))
if num > 0:
print("Positive Number")
elif num < 0:
print("Negative Number")
else:
print("Zero")
if num % 2 == 0:
print("Even
Number")
else:
print("Odd
Number")
Q31. Write a Python script to accept marks in 3 subjects,
calculate total and percentage, and display a grade (>= 75: Grade A, >=
60: Grade B, >= 40: Grade C, < 40: Needs Improvement).
●
Ans:
s1 = float(input("Marks 1: "))
s2 = float(input("Marks 2: "))
s3 = float(input("Marks 3: "))
tot = s1 + s2 + s3
per = tot / 3
print("Total Marks:", tot,
"Percentage:", per)
if per >= 75:
print("Grade
A")
elif per >= 60:
print("Grade
B")
elif per >= 40:
print("Grade
C")
else:
print("Needs
Improvement")
Q32. Write a Python program using a for loop to
calculate and print the factorial of a given positive integer .
●
Ans:
n = int(input("Enter a positive integer: "))
fact = 1
for i in range(1, n + 1):
fact = fact * i
print("Factorial of", n, "is", fact)
Q33. Trace the output of the following code snippet
carefully:
total = 0
for i in range(1, 5):
if i == 3:
continue
total += i
print("Final Total:", total)
●
Ans:
Final Total: 7
SECTION D (Long
Answer Questions - 5 Marks Each)
Q34. (a) Explain mutable and immutable data types in
Python with examples of each. (b) Differentiate between list and tuple data
types.
●
Ans:
(a) Mutable data types can be modified after creation (e.g.,
list, dictionary), whereas immutable data types cannot be changed once created
(e.g., int, float, string, tuple).
(b) Lists are mutable and enclosed in square brackets [],
while tuples are immutable and enclosed in parentheses ().
Q35. (i) Write a Python program that takes a number as
input and prints its multiplication table up to 10 using a loop.
●
Ans:
(i) Python Program:
num = int(input("Enter number: "))
for i in range(1, 11):
print(num, 'x', i,
'=', num * i)
Q36. Program to print sum of natural numbers between 1 to
7. Print the sum progressively, i.e., after adding each natural number, print
sum so far.
●
Ans:
sum = 0
for n in range(1,8):
sum+=n
print("sum of
natural numenr", n, "is", sum)
Q37. Write a program to create a copy of a list in the
list’s copy, add 10 to its first and last elements. Then display the lists.
Ans:
L1 = [17, 24, 15, 30, 34, 27]
L2 = L1.copy()
print("Original LIst:", L1)
print("Created copy list:", L2)
L2[0]+=10
L2[-1]+=10
print("Copy of the list after changes:", L2)
print("original list:", L1)
===========********************===========