0% found this document useful (0 votes)
3 views3 pages

Model Question Paper-2

This document is a model question paper for a Class XI Computer Science exam, consisting of 37 questions divided into five sections. It includes multiple-choice questions, short answer questions, and long answer questions that assess knowledge of Python programming. The paper covers various topics such as data types, functions, and list operations, with specific instructions for answering.

Uploaded by

mathykumar777
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Model Question Paper-2

This document is a model question paper for a Class XI Computer Science exam, consisting of 37 questions divided into five sections. It includes multiple-choice questions, short answer questions, and long answer questions that assess knowledge of Python programming. The paper covers various topics such as data types, functions, and list operations, with specific instructions for answering.

Uploaded by

mathykumar777
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

t = (12, 5, 18, 9)

Model Question Paper


print(sorted(t))
Class: XI | Subject: Computer
Science 6. What will be the output?
Time: 3 Hours Maximum Marks: 70 d = {'x':1, 'y':2}
d['z'] = 3
print(d)
General Instructions:
7. What is the output?
1. This question paper contains 37
questions.
s = "PROGRAM"
2. All questions are compulsory.
Internal choices are provided in print(s[:4])
some questions.
3. The question paper is divided into
five Sections A, B, C, D and E. 8. What does len([10,20,30,40])
4. Use Python language only for return?
programming questions.
5. In MCQs, write the correct option a) 3 b) 4 c) 5 d) Error
as well as the answer text.
9. Evaluate the expression: 10 + 4 *
2
10. Which operation is not permitted on
lists?
Section A – MCQs a) Indexing b) Slicing c)
Deletion d) Immutability
(1 × 21 = 21 Marks) 11. What will be printed?
1. State True or False: Python allows d = {1:'One', 2:'Two'}
multiple assignment in a single print([Link](2))
statement.
2. Identify the invalid identifier:
a) total_sum b) _value c)
9count d) count9 12. Which bracket is used to define a
3. Which loop is best suited when the dictionary?
number of iterations is known in a) ( ) b) [ ] c) { } d) < >
advance? 13. Which function returns the largest
a) while b) for c) if d) integer less than or equal to a
break number?
4. Which string method returns the a) ceil() b) floor() c)
number of occurrences of a fabs() d) pow()
substring? 14. Which list method removes a
a) find() b) count() c) specific element?
index() d) split() a) pop() b) delete() c)
5. Predict the output: remove() d) clear()
15. Which dictionary method returns for i in range(1,5)
key–value pairs? print(i)
a) keys() b) values() c)
items() d) get()
16. What will be the output? 24. Write any two differences between
list and tuple.
for i in range(1,4):
25. Write the output:
print(i*i, end=" ")
L = [3,6,9,12]
print(L[1:3])
17. Which statement skips remaining
statements of the loop and continues
with next iteration? 26. Identify the error and give reason:
18. Predict the output:
d = {1:'A', 2:'B'}
s = "Python"
print(d[3])
print(s[-2])

27. Write the output:


19. Which statistics function returns the
average of values? t = (4, 8, 12)
a) median() b) mean() c)
print(t[0])
mode() d) avg()
20. Assertion (A): Tuples cannot be
modified after creation.
Reason (R): Tuples are immutable 28. Write Python statement to reverse a
data types. string s.
21. Assertion (A): Dictionary keys must
be unique.
Reason (R): Dictionaries store data
in key–value pairs.
Section C – Short Answer
(3 × 3 = 9 Marks)

Section B – Very Short 29. Write the output:


Answer x=1
while x <= 5:
(2 × 7 = 14 Marks)
print(x*2, end=" ")
22. Write the output: x += 1

for i in range(5, 0, -2):


print(i, end=" ") 30. Write the output:

s = "COMPUTER"
23. Rewrite the following code after for ch in s:
correcting the errors: if ch in 'AEIOU':
print(ch, end=" ")
OR

31. Write a Python program to count Write a Python program to:


the number of odd elements in a
list. ● Accept a string
● Count the frequency of each
character using a dictionary
37. Case-Based Question (List Based)

Section D – Long Answer A company records monthly expenses in a


Python list as shown below:
(4 × 4 = 16 Marks)
expenses = [12000, 15000, 10000, 18000,
32. Write the output: 9000, 16000]

L = [2,4,6,8,10]
i=1 Answer the following:
while i < len(L): (a) Write a Python statement to display the
print(L[i], end=" ") maximum expense. (1)
i += 2 (b) Write a statement to count months with
expenses below 12000. (1)
(c) Create a new list containing expenses
above 14000. (1)
33. Write a Python program to: (d) Write a program segment to calculate
● Accept a string the total expenses. (2)
● Display the number of uppercase
characters
34. Write a Python program to:
● Create a dictionary of products and
prices
● Display the product with the lowest
price
35. Write a Python program to:
● Create a list of numbers
● Display only numbers divisible by 3

Section E – Very Long


Answer / Case-Based
(5 × 2 = 10 Marks)

36. Write a Python program to:


● Accept a list of integers
● Replace all negative numbers with
zero
● Display the updated list

You might also like