Sample paper · Class 11 · CBSE · Science Computer Science
Computer Science · Sample Paper 3
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 of these is a secondary storage device?
- A.RAM
- B.cache
- C.hard disk
- D.register
- Question 21 mark
Software that translates and executes a program line by line is an
- A.compiler
- B.interpreter
- C.assembler
- D.linker
- Question 31 mark
in decimal is
- A.40
- B.42
- C.44
- D.38
- Question 41 mark
in octal is
- A.71
- B.57
- C.61
- D.72
- Question 51 mark
UTF-8 is an encoding of
- A.ASCII only
- B.Unicode
- C.ISCII
- D.BCD
- Question 61 mark
Which technology lets computers learn from data without being explicitly programmed?
- A.machine learning
- B.blockchain
- C.cloud storage
- D.VR
- Question 71 mark
A step-by-step finite procedure to solve a problem is an
- A.algorithm
- B.program only
- C.flowchart only
- D.error
- Question 81 mark
What is the output of print(15 % 4)?
- A.3
- B.3.75
- C.4
- D.1
- Question 91 mark
Which of these is a keyword in Python?
- A.total
- B.elif
- C.value
- D.data
- Question 101 mark
What is the output of print(bool(''))?
- A.True
- B.False
- C.None
- D.error
- Question 111 mark
What does this print?
i = 1 while i < 5: i += 2 print(i)- A.3
- B.5
- C.4
- D.7
- Question 121 mark
Which statement does nothing and is used as a placeholder?
- A.break
- B.continue
- C.pass
- D.return
- Question 131 mark
A small anonymous (unnamed) function is created using the keyword
- A.def
- B.lambda
- C.class
- D.import
- Question 141 mark
What is len('Hello World')?
- A.10
- B.11
- C.12
- D.9
- Question 151 mark
What does 'python'.capitalize() return?
- A.'PYTHON'
- B.'Python'
- C.'python'
- D.'pYTHON'
- Question 161 mark
L = [5, 3, 8]. What does sorted(L) return?
- A.[8, 5, 3]
- B.[3, 5, 8]
- C.None
- D.[5, 3, 8]
- Question 171 mark
L = [1, 2, 3]; M = L; M.append(4). What is L?
- A.[1, 2, 3]
- B.[1, 2, 3, 4]
- C.[4]
- D.error
- Question 181 mark
Which of these creates an empty dictionary?
- A.[]
- B.()
- C.{}
- D.set()
- Question 191 mark
Using someone's work without giving credit is
- A.copyright
- B.plagiarism
- C.licensing
- D.open source
- Question 201 mark
Assertion (A): s = 'abc'; s.upper() changes s to 'ABC'.
Reason (R): String methods return new strings without modifying the original.
- 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 function can return more than one value in Python.
Reason (R): Multiple values separated by commas are returned as a tuple.
- 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
Differentiate between a compiler and an interpreter.
- Question 232 marks
Convert to decimal.
- Question 242 marks
Write the output:
x = 10 y = 3 print(x // y, x % y, x ** 2) OR
Question 242 marksDifferentiate between mutable and immutable data types with one example each.
- Question 252 marks
Rewrite the following using a for loop:
i = 10 while i > 0: print(i) i -= 2 - Question 262 marks
Write the output:
s = 'banana' print(s.count('a'), s.replace('a', 'o')) - Question 272 marks
Write the output:
t = (10, 20, 30, 40) print(t[1:3]) print(max(t) - min(t)) - Question 282 marks
What is a digital footprint? Give two ways to keep it safe.
Section C · Short answer
Questions 29–31 carry 3 marks each.
- Question 293 marks
Write a Python program to print the Fibonacci series up to n terms.
OR
Question 293 marksWrite a Python program to find the factorial of a number using a while loop.
- Question 303 marks
Write a Python program that reads a list of numbers and creates a new list containing only the numbers greater than the average.
- Question 313 marks
Write the output:
def change(a, b=5): a = a + b return a x = 3 print(change(x)) print(change(x, 10)) print(x)
Section D · Long answer
Questions 32–35 carry 4 marks each.
- Question 324 marks
Write a function
is_perfect(n)that returns True if n is a perfect number (sum of proper divisors equals n). Use it to print all perfect numbers below 1000. - Question 334 marks
Write a program that reads a string and prints it with the case of each letter swapped and the words reversed in order (e.g. 'Hello World' → 'wORLD hELLO').
OR
Question 334 marksWrite a program to check whether a sentence is a pangram (contains every letter of the alphabet at least once).
- Question 344 marks
Write a program to create a dictionary of n countries and their capitals entered by the user, then display the countries whose capital names begin with a vowel.
- Question 354 marks
Explain (i) open-source software (ii) copyright (iii) licence (iv) Creative Commons, with an example each.
Section E · Long answer
Questions 36 and 37 carry 5 marks each.
- Question 365 marks
Write a menu-driven program to manage a list of student names: (1) add a name, (2) delete a name if present, (3) search for a name, (4) display all names in sorted order, (5) exit.
OR
Question 365 marksWrite a program that reads a paragraph and builds a dictionary of word frequencies (case-insensitive), then prints the three most frequent words.
- Question 375 marks
Explain (i) cloud computing and its service models (ii) Internet of Things (iii) grid computing, with one application each.
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.