Sample paper · Class 11 · CBSE · Science Computer Science
Computer Science · Sample Paper 2
CBSE board pattern (083), Class 11 syllabus — all 11 chapters, a fresh set of questions. Programming language: Python.
37 questions · 70 marks · 180 minutes
General instructions
- This paper has 37 questions in five sections, A to E. All questions are compulsory.
- Section A — Q1 to Q21: 1 mark each.
- Section B — Q22 to Q28: 2 marks each.
- Section C — Q29 to Q31: 3 marks each.
- Section D — Q32 to Q35: 4 marks each.
- Section E — Q36 and Q37: 5 marks each.
- Internal choice is given in Q24, Q29, Q33 and Q36. Answer only one alternative.
- All programming questions are to be answered in Python.
Section A · Objective
Questions 1–21 carry 1 mark each.
- Question 11 mark
Which unit of the CPU performs arithmetic and logical operations?
- A.CU
- B.ALU
- C.register
- D.cache
- Question 21 mark
1 terabyte is equal to
- A.1024 GB
- B.1000 MB
- C.1024 MB
- D.1024 KB
- Question 31 mark
in binary is
- A.11001
- B.10011
- C.11010
- D.10101
- Question 41 mark
in decimal is
- A.485
- B.475
- C.493
- D.501
- Question 51 mark
How many bits are used in standard ASCII?
- A.7
- B.8
- C.16
- D.32
- Question 61 mark
Delivering computing resources like storage and software over the internet is called
- A.IoT
- B.cloud computing
- C.AI
- D.blockchain
- Question 71 mark
Which of these is the first step of problem solving?
- A.coding
- B.analysing the problem
- C.testing
- D.debugging
- Question 81 mark
What is the output of print(type(3.0))?
- A.<class 'int'>
- B.<class 'float'>
- C.<class 'str'>
- D.<class 'complex'>
- Question 91 mark
Which operator is used for exponentiation in Python?
- A.^
- B.**
- C.//
- D.%
- Question 101 mark
What is the output of print(10 - 4 * 2 + 1)?
- A.13
- B.3
- C.6
- D.9
- Question 111 mark
What is printed?
x = 7 if x > 5: print('A') elif x > 3: print('B') else: print('C')- A.A
- B.B
- C.C
- D.A B
- Question 121 mark
range(5) generates
- A.1 to 5
- B.0 to 5
- C.0 to 4
- D.1 to 4
- Question 131 mark
Which keyword is used to define a function in Python?
- A.function
- B.def
- C.fun
- D.define
- Question 141 mark
What is the output of print('ab' * 3)?
- A.ab3
- B.ababab
- C.ab ab ab
- D.error
- Question 151 mark
If s = 'Computer', what is s[-3:]?
- A.'Com'
- B.'ter'
- C.'ute'
- D.'r'
- Question 161 mark
L = [10, 20, 30, 40]. What is L[1:3]?
- A.[10, 20]
- B.[20, 30]
- C.[20, 30, 40]
- D.[30, 40]
- Question 171 mark
L = [3, 1, 2]; L.sort(reverse=True). What is L?
- A.[1, 2, 3]
- B.[3, 2, 1]
- C.[3, 1, 2]
- D.None
- Question 181 mark
Which method returns all keys of a dictionary d?
- A.d.values()
- B.d.keys()
- C.d.items()
- D.d.get()
- Question 191 mark
Software whose source code is freely available to modify and share is
- A.proprietary software
- B.open-source software
- C.shareware
- D.malware
- Question 201 mark
Assertion (A): Lists in Python are mutable.
Reason (R): Elements of a list can be changed after it is created, e.g. L[0] = 5.
- A.Both Assertion (A) and Reason (R) are true, and R is the correct explanation of A.
- B.Both Assertion (A) and Reason (R) are true, but R is not the correct explanation of A.
- C.Assertion (A) is true, but Reason (R) is false.
- D.Assertion (A) is false, but Reason (R) is true.
- Question 211 mark
Assertion (A): A tuple can contain a list as an element.
Reason (R): Tuples are mutable.
- A.Both Assertion (A) and Reason (R) are true, and R is the correct explanation of A.
- B.Both Assertion (A) and Reason (R) are true, but R is not the correct explanation of A.
- C.Assertion (A) is true, but Reason (R) is false.
- D.Assertion (A) is false, but Reason (R) is true.
Section B · Very short answer
Questions 22–28 carry 2 marks each.
- Question 222 marks
What is an operating system? Give two of its functions.
- Question 232 marks
Convert to hexadecimal and to decimal.
- Question 242 marks
Write the output:
x = 5 y = x * 2 x += 3 print(x, y) print(x > y or x == 8) OR
Question 242 marksDifferentiate between = and == in Python with an example.
- Question 252 marks
Write the output:
for i in range(1, 10, 2): if i == 7: break print(i, end=' ') - Question 262 marks
Write the output:
s = 'python program' print(s.title()) print(s.count('o')) - Question 272 marks
Write the output:
L = [1, 2, 3] L.extend([4, 5]) L.insert(0, 9) print(L) print(L.index(3)) - Question 282 marks
What is cyberbullying? Give two ways to deal with it.
Section C · Short answer
Questions 29–31 carry 3 marks each.
- Question 293 marks
Write a Python program to print the sum of the digits of a number entered by the user.
OR
Question 293 marksWrite a Python program to check whether a number entered by the user is prime.
- Question 303 marks
What is decomposition in problem solving? Write an algorithm to find the average of n numbers.
- Question 313 marks
Write the output:
t = (1, 2, 3, 2, 4) print(t.count(2), t.index(4)) d = {1: 'a', 2: 'b'} for k, v in d.items(): print(k, v) print(len(d))
Section D · Long answer
Questions 32–35 carry 4 marks each.
- Question 324 marks
Write a function
is_armstrong(n)that returns True if n is an Armstrong number (e.g. 153 = 1³ + 5³ + 3³) and use it to print all 3-digit Armstrong numbers. - Question 334 marks
Write a program that reads a sentence and prints the number of vowels, consonants, digits and spaces in it.
OR
Question 334 marksWrite a program that reads a sentence and prints the longest word in it and its length.
- Question 344 marks
Write a program to find the second largest number in a list without using sort().
- Question 354 marks
Explain (i) artificial intelligence (ii) blockchain (iii) big data (iv) virtual reality, with one application each.
Section E · Long answer
Questions 36 and 37 carry 5 marks each.
- Question 365 marks
Write a program to input names and marks of n students into a dictionary and display (i) the student with the highest marks (ii) the names of students who scored more than 75.
OR
Question 365 marksWrite a program that reads n numbers into a list and then (i) removes all duplicates, keeping the first occurrence, (ii) prints the list in ascending order, (iii) prints the mean.
- Question 375 marks
What is e-waste? Explain its hazards and the methods of managing it. Also state two provisions of the IT Act, 2000.
Ready to attempt this paper?
Take it as a timed test of 180 minutes. Your answers are saved as you go and every answer is marked when you submit.
You'll be asked to log in or sign up first if needed.