CBSE – Class XI
Computer Science
Time: 3 Hours
Maximum Marks: 70
General Instructions:
1. This question paper contains 5 Sections – A, B, C, D, and E.
2. All questions are compulsory.
3. Use of Python IDLE is allowed for rough work.
4. Assume suitable values wherever necessary.
5. Write answers clearly and neatly.
Section A – MCQs
(1 × 10 = 10 marks)
1. Which of the following is not a characteristic of a computer?
a) Speed
b) Accuracy
c) Intelligence
d) Automation
2. Which data type is used to store True or False values in Python?
a) int
b) float
c) bool
d) str
3. What will be the output of the following code?
4. print(5 // 2)
a) 2.5
b) 2
c) 3
d) Error
5. Which operator is used for exponentiation in Python?
a) ^
b) **
c) //
d) %
6. Which of the following is a valid variable name?
a) 2sum
b) total_sum
c) total-sum
d) total sum
7. Which memory is volatile?
a) ROM
b) Hard Disk
c) RAM
d) Pen Drive
8. Which of the following is used to take input in Python?
a) get()
b) read()
c) input()
d) scan()
9. What is the extension of a Python file?
a) .pt
b) .pyt
c) .py
d) .python
10. Which loop is used when the number of iterations is known?
a) while
b) for
c) do-while
d) repeat
11. Which of the following is not an output device?
a) Monitor
b) Printer
c) Keyboard
d) Speaker
Section B – Very Short Answer
(2 × 10 = 20 marks)
11. Define Computer System.
12. What is an algorithm?
13. Write any two features of Python.
14. What is type conversion?
15. Name any two input devices.
16. What is the difference between = and ==?
17. Write the output of:
print("CBSE", "Class", 11)
18. What is flowchart?
19. What is a keyword in Python?
20. What is syntax error?
Section C – Short Answer
(4 × 10 = 40 marks)
21. Explain the components of a computer system.
22. Write a short note on primary memory and secondary memory.
23. Explain any four data types in Python with examples.
24. What are operators? Explain arithmetic operators in Python.
25. Differentiate between hardware and software.
26. Write a Python program to find the sum of two numbers.
27. Explain if-else statement with example.
28. What is debugging?
29. Explain the working of for loop with example.
30. Write differences between compiler and interpreter.
Section D – Long Answer
(5 × 6 = 30 marks)
31. Explain Generations of Computers in detail.
32. Describe number system and explain binary number system.
33. Write a Python program to check whether a number is even or odd.
34. Explain types of errors in Python with examples.
35. Write a Python program to find the largest of three numbers using conditional
statements.
Section E – Case Study / Application Based
(5 × 2 = 10 marks)
36. A school wants to store student marks and calculate total and average.
a) Which data type will be used to store marks?
b) Which operator is used to calculate average?
c) Write a Python statement to take marks as input.
d) Write a Python statement to calculate average.
e) Which function is used to display output?