Sample paper · Class 11 · CBSE · Science Computer Science
Computer Science · Sample Paper 1
CBSE board pattern (083), Class 11 syllabus — all 11 chapters. 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 Q25, Q30, Q34 and Q37. 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 volatile memory?
- A.ROM
- B.RAM
- C.hard disk
- D.SSD
- Question 21 mark
Which translator converts a whole program into machine code at once?
- A.interpreter
- B.assembler
- C.compiler
- D.loader
- Question 31 mark
in decimal is
- A.9
- B.11
- C.13
- D.10
- Question 41 mark
in decimal is
- A.47
- B.45
- C.31
- D.63
- Question 51 mark
Which encoding scheme can represent characters of all world languages?
- A.ASCII
- B.ISCII
- C.Unicode
- D.BCD
- Question 61 mark
A network of everyday devices that exchange data is called
- A.cloud
- B.IoT
- C.blockchain
- D.VR
- Question 71 mark
In a flowchart, a decision is shown by a
- A.rectangle
- B.oval
- C.diamond
- D.parallelogram
- Question 81 mark
What is the output of print(7 // 2)?
- A.3.5
- B.3
- C.4
- D.1
- Question 91 mark
Which of these is a valid identifier in Python?
- A.2total
- B.total-sum
- C._total
- D.for
- Question 101 mark
What is the value of 2 ** 3 ** 2?
- A.64
- B.512
- C.36
- D.12
- Question 111 mark
How many times does this loop run?
for i in range(2, 10, 3): print(i)- A.2
- B.3
- C.4
- D.8
- Question 121 mark
Which statement skips the rest of the current loop iteration?
- A.break
- B.pass
- C.continue
- D.exit
- Question 131 mark
A function that has no return statement returns
- A.0
- B.None
- C.False
- D.an error
- Question 141 mark
If s = 'PYTHON', what is s[1:4]?
- A.'PYT'
- B.'YTH'
- C.'YTHO'
- D.'THO'
- Question 151 mark
What does 'banana'.find('n') return?
- A.1
- B.2
- C.3
- D.−1
- Question 161 mark
L = [1, 2, 3]; L.append([4, 5]). What is len(L)?
- A.3
- B.4
- C.5
- D.6
- Question 171 mark
Which method removes and returns the last item of a list?
- A.remove()
- B.pop()
- C.del
- D.clear()
- Question 181 mark
Which of these is a tuple with one element?
- A.(5)
- B.(5,)
- C.[5]
- D.{5}
- Question 191 mark
Sending fake messages to trick people into revealing passwords is called
- A.hacking
- B.phishing
- C.spamming
- D.trolling
- Question 201 mark
Assertion (A): A list can't be used as a dictionary key.
Reason (R): Dictionary keys must be immutable.
- 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): s = 'cat'; s[0] = 'b' changes s to 'bat'.
Reason (R): Strings in Python are immutable.
- 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 system software and application software with one example each.
- Question 232 marks
Convert to binary and octal.
- Question 242 marks
Write the output:
a, b = 10, 3 print(a % b, a / b) print(a > b and b > 5) - Question 252 marks
Rewrite using a while loop:
for i in range(1, 6): print(i * i) OR
Question 252 marksFind the errors and rewrite the code correctly:
x = int(input('Number')) if x % 2 = 0 print('Even') else print('Odd')- Question 262 marks
Write the output:
s = 'Hello World' print(s.upper()) print(s.split()) - Question 272 marks
Write the output:
d = {'a': 1, 'b': 2} d['c'] = 3 d['a'] = 10 print(d) print(d.get('z', 0)) - Question 282 marks
What is a digital footprint? Give one difference between an active and a passive digital footprint.
Section C · Short answer
Questions 29–31 carry 3 marks each.
- Question 293 marks
Write an algorithm (or flowchart) to find the largest of three numbers.
- Question 303 marks
Write a Python program that reads a list of numbers and prints how many are even and how many are odd.
OR
Question 303 marksWrite a Python program to check whether a string is a palindrome.
- Question 313 marks
What is the difference between a local and a global variable? Write the output:
x = 5 def f(): global x x = x + 10 return x print(f(), x)
Section D · Long answer
Questions 32–35 carry 4 marks each.
- Question 324 marks
Write a function
factorial(n)that returns n!, and use it to print the value of ⁵C₂ = 5! / (2! 3!). - Question 334 marks
Write a program that counts how many times each character appears in a string entered by the user, using a dictionary.
- Question 344 marks
Write a program to perform a linear search for a number in a list and print its position, or 'Not found'.
OR
Question 344 marksWrite a program to print the pattern:
1 1 2 1 2 3 1 2 3 4- Question 354 marks
Explain the three kinds of intellectual property rights with an example of each. What is plagiarism?
Section E · Long answer
Questions 36 and 37 carry 5 marks each.
- Question 365 marks
Explain any five emerging technologies with one real-life application each.
- Question 375 marks
Write a menu-driven program that keeps a list of marks and lets the user (1) add a mark, (2) display all marks, (3) show the average, (4) exit.
OR
Question 375 marksWrite a program to store names and phone numbers of n friends in a dictionary, then search for a name and print the number, or 'Not found'.
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.