Sample paper · Class 11 · CBSE · Science Computer Science
Computer Science · Sample Paper 4
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 an input device?
- A.monitor
- B.scanner
- C.printer
- D.speaker
- Question 21 mark
The smallest unit of data in a computer is a
- A.byte
- B.bit
- C.nibble
- D.word
- Question 31 mark
in decimal is
- A.5
- B.6
- C.7
- D.8
- Question 41 mark
in hexadecimal is
- A.64
- B.100
- C.A0
- D.6E
- Question 51 mark
ISCII is an encoding scheme for
- A.Indian scripts
- B.Chinese characters
- C.emoji
- D.binary numbers
- Question 61 mark
Which technology overlays digital information on the real world?
- A.augmented reality
- B.virtual reality
- C.blockchain
- D.big data
- Question 71 mark
The process of finding and fixing errors in a program is
- A.compiling
- B.debugging
- C.coding
- D.testing only
- Question 81 mark
What is the output of print(2 * 3 + 4)?
- A.10
- B.14
- C.24
- D.9
- Question 91 mark
Which function reads input from the user?
- A.print()
- B.input()
- C.read()
- D.scan()
- Question 101 mark
What is the result of int('5') + float('2.5')?
- A.7.5
- B.'52.5'
- C.7
- D.error
- Question 111 mark
How many times does this loop run?
for i in range(3, 12, 3): print(i)- A.3
- B.4
- C.9
- D.12
- Question 121 mark
Which statement exits a loop immediately?
- A.continue
- B.pass
- C.break
- D.exit loop
- Question 131 mark
Variables defined inside a function are
- A.global
- B.local
- C.built-in
- D.constant
- Question 141 mark
What is 'hello'[1]?
- A.'h'
- B.'e'
- C.'l'
- D.'o'
- Question 151 mark
What does 'a,b,c'.split(',') return?
- A.['a,b,c']
- B.['a', 'b', 'c']
- C.('a','b','c')
- D.'abc'
- Question 161 mark
What is len([1, [2, 3], 4])?
- A.3
- B.4
- C.5
- D.2
- Question 171 mark
L = [4, 2, 7]. What does L.index(7) return?
- A.0
- B.1
- C.2
- D.3
- Question 181 mark
Which is immutable?
- A.list
- B.dictionary
- C.tuple
- D.set
- Question 191 mark
Unauthorised copying and distribution of software is
- A.software piracy
- B.open source
- C.freeware
- D.licensing
- Question 201 mark
Assertion (A): Python is a case-sensitive language.
Reason (R): In Python, 'Total' and 'total' are treated as different identifiers.
- 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): Dictionary keys must be unique.
Reason (R): Assigning a value to an existing key replaces the old value.
- 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 primary and secondary memory with one example each.
- Question 232 marks
Convert to binary and decimal.
- Question 242 marks
Write the output:
a = 'Py' b = 'thon' print(a + b) print(a * 3) OR
Question 242 marksWhat are comments in Python? Show the two ways of writing them.
- Question 252 marks
Write the output:
for i in range(1, 6): if i % 2 == 0: continue print(i, end=' ') - Question 262 marks
Write the output:
s = 'Computer Science' print(s[:8]) print(s.lower().count('e')) - Question 272 marks
Write the output:
L = [10, 20, 30, 40] L.remove(20) L.append(50) print(L, sum(L)) - Question 282 marks
What is e-waste? Give two ways to manage it.
Section C · Short answer
Questions 29–31 carry 3 marks each.
- Question 293 marks
Write a Python program to print all numbers between 1 and 100 that are divisible by both 3 and 5.
OR
Question 293 marksWrite a Python program to reverse a number entered by the user (e.g. 1234 → 4321).
- Question 303 marks
Write a Python program to count the number of words in a sentence entered by the user.
- Question 313 marks
Write the output:
d = {'a': 1, 'b': 2, 'c': 3} print(list(d.keys())) d.pop('b') print(d) print('c' in d)
Section D · Long answer
Questions 32–35 carry 4 marks each.
- Question 324 marks
Write a function
gcd(a, b)that returns the greatest common divisor using Euclid's algorithm, and use it to find the LCM of two numbers. - Question 334 marks
Write a program that reads a list of numbers and creates two lists: one with positive numbers and one with negative numbers.
OR
Question 334 marksWrite a program to find the frequency of each element in a list without using a dictionary.
- Question 344 marks
Write a program that stores roll numbers and marks of n students in a dictionary and prints the average marks and the roll numbers of students scoring above average.
- Question 354 marks
What is cyber safety? Explain any three safe practices while browsing the internet.
Section E · Long answer
Questions 36 and 37 carry 5 marks each.
- Question 365 marks
Write a menu-driven program to perform string operations: (1) count vowels, (2) check palindrome, (3) convert to title case, (4) exit.
OR
Question 365 marksWrite functions
is_prime(n)andprint_primes(a, b)that print all prime numbers between a and b. Use them to print primes between 10 and 50.- Question 375 marks
Explain the functional components of a computer system with a block diagram (described). What is the role of the CPU and its parts?
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.