Class 11 sample papers › Computer Science
CBSE Class 11 Computer Science (083) sample paper 2026–27, with marking scheme
A full practice paper in the CBSE 2026–27 pattern for the Class 11 annual exam, 70 marks for 3 hours. A full-syllabus annual exam paper, 70 marks: MCQs, short and long answers and case studies on computer systems, Python programming, and society, law and ethics. Paper AW-11CS-AP-68083; it follows the CBSE pattern but is not an official CBSE paper.
General instructions
- This question paper contains 37 questions. All questions are compulsory. Some questions have an internal choice (marked OR): answer only one of them.
- The paper is divided into five sections: A, B, C, D and E.
- Section A has 21 questions of 1 mark each.
- Section B has 7 questions of 2 marks each.
- Section C has 3 questions of 3 marks each.
- Section D has 4 questions of 4 marks each.
- Section E has 2 questions of 5 marks each.
- All programming questions are to be answered using Python only.
- For a multiple-choice question, write the text of the correct answer as well.
The paper
Section A (21 × 1 = 21 marks)
- Q1. 1 mark
Which of these is an output device?
- webcam
- microphone
- barcode reader
- monitor
- Q2. 1 mark
What does this program print? print(int('2') + 5)
- 7
- 7.0
- Error
- 25
- Q3. 1 mark
An XOR gate has 6 inputs (its output is 1 when an odd number of inputs are 1). In how many of the 64 rows of its truth table is the output 1?
- 31
- 6
- 33
- 32
- Q4. 1 mark
What does this program print? s = 'NOTE16' print(s.isalnum())
- Error
- True
- None
- False
- Q5. 1 mark
Which kind of malware fills the screen with unwanted advertisements?
- adware
- trojan
- worm
- spyware
- Q6. 1 mark
What does this program print? L = [12, 8, 19, 1, 2, 12] L.remove(12) print(L)
- [12, 8, 19, 1, 2]
- [12, 8, 19, 1, 2, 12]
- [8, 19, 1, 2, 12]
- None
- Q7. 1 mark
What is (203)₁₀ in binary?
- 11001011
- 11001010
- 11010011
- 11011011
- Q8. 1 mark
This program should print 1 + 2 + … + 10 = 55, but it prints 45. Which change fixes it? s = 0 for i in range(1, 10): s = s + i print(s)
- change s = 1 to s = 0
- change print(s) to print(i)
- change s = s + 1 to s = s + i
- change range(1, 10) to range(1, 11)
- Q9. 1 mark
What does this program print? t = (89) print(type(t))
- <class 'tuple'>
- <class 'int'>
- <class 'list'>
- <class 'str'>
- Q10. 1 mark
After the statement from math import ceil, which of these runs without an error?
- print(ceil[2.8])
- print(math.ceil[2.8])
- print(math.ceil(2.8))
- print(ceil(2.8))
- Q11. 1 mark
Cache memory sits between:
- two computers on a network
- the keyboard and the CPU
- the hard disk and the printer
- the CPU and the main memory (RAM)
- Q12. 1 mark
To check whether N = 541 is prime, method A divides N by every number from 2 to N − 1, and method B divides only by the numbers from 2 to the whole part of √N. (541 is prime, so neither stops early.) How many divisions does method A make?
- 540
- 22
- 539
- 541
- Q13. 1 mark
Which of these data types is mutable?
- str
- list
- tuple
- int
- Q14. 1 mark
What happens when this program runs? s = 'book' s[0] = 'X' print(s)
- it stops with a TypeError, because a string cannot be changed in place
- it prints Xook
- it prints Xbook
- it prints book
- Q15. 1 mark
A password has 4 characters, each one of the 26 small letters (a–z). How many different passwords are possible?
- 390,625
- 104
- 17,576
- 456,976
- Q16. 1 mark
Which of these makes a separate copy of a list a?
- b = a[:]
- b is a
- b = a
- b == a
- Q17. 1 mark
What does this program print? c = 0 for i in range(3): for j in range(i, 5): c = c + 1 print(c)
- 15
- 11
- 13
- 12
- Q18. 1 mark
What does this program print? d = {'grape': 77, 'peach': 90, 'apple': 63, 'mango': 58} del d['mango'] print(len(d), 'mango' in d)
- 3 True
- 4 True
- 4 False
- 3 False
- Q19. 1 mark
What does this program print? import math print(math.ceil(math.sqrt(37)))
- 37
- 6
- 9
- 7
- Q20. 1 mark
Assertion (A): int('47') + 8 evaluates to '478'. Reason (R): int() converts a string of digits into an integer, so + adds two numbers.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true, but R is false.
- A is false, but R is true.
- Q21. 1 mark
Assertion (A): Deleting a post from a social media account does not always remove it from the internet. Reason (R): Copies of data may stay on servers, in backups or in screenshots taken by others.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true, but R is false.
- A is false, but R is true.
Section B (7 × 2 = 14 marks)
- Q22. 2 marks
A logic circuit gives the output X = (A OR B) NAND C. Find X for (i) A = 1, B = 1, C = 1 (ii) A = 0, B = 0, C = 0. Show the working.
OR
Write the truth tables of the AND and the XOR gates, each with two inputs A and B.
- Q23. 2 marks
Convert (34E)₁₆ to (i) decimal (ii) binary.
- Q24. 2 marks
(i) How many GB are there in 5 TB? (ii) How many bits are there in 8 KB? (Take 1 KB = 1024 bytes.)
OR
Differentiate between RAM and cache memory. Give one example of where each is used.
- Q25. 2 marks
Predict the output of the following Python code: word = "d2NLg" result = [] i = 0 while i < len(word): if word[i].isupper(): result.append(word[i].lower()) elif word[i].isdigit(): result.append(int(word[i]) * 3) else: result.append("#") i += 1 print(result)
OR
Predict the output of the following Python code: title = "Coding Contest" print(title.replace("t", "#")) print(title.find("Con"))
- Q26. 2 marks
Write the output of the following Python statements: print(type((7))) print(type(12 // 5)) print(type(5 * 1.5)) print(type((6,)))
- Q27. 2 marks
Differentiate between an active and a passive digital footprint, with one example of each.
OR
What is identity theft? Suggest one way to stay safe from it.
- Q28. 2 marks
Mention and briefly explain any two guidelines of netiquette to follow in an online discussion forum.
OR
What is e-waste? Explain any two ‘R’s of e-waste management.
Section C (3 × 3 = 9 marks)
- Q29. 3 marks
Write a Python program to search for an element key in the list L = [66, 92, 41, 51, 50, 74, 96, 60] by linear search, and print its position (counting from 1) or a message that it is not found. What does it print for key = 66?
OR
Write a Python program that, for the list temps = [40, 98, 46, 65, 62, 37], finds and prints the largest element, the smallest element and the mean of the elements, without using max(), min() or sum(). Write the output too.
- Q30. 3 marks
Write a Python program that counts how many times each character occurs in the string word = 'programming', using a dictionary, and prints the dictionary. Write its output.
- Q31. 3 marks
Read the following situations and answer the questions: (i) Ishaan designs a logo for a new bakery and wants no other business to use it. Which kind of Intellectual Property Right should be obtained? (ii) Farhan buys a new phone only when the old one can no longer be repaired. Which ‘R’ of e-waste management is this? (iii) An app collects Tanvi’s location while it runs in the background. What kind of digital footprint is this?
OR
Consider the following digital security scenarios and answer the questions: (i) A group of people repeatedly post insulting comments and spread rumours about Farhan on a social media platform, to upset Farhan. What type of cyber crime is this? (ii) Tejas gets an email that looks like it is from a bank, asking for the net-banking password to “keep the account active”. What is this activity called? (iii) Suggest one communication etiquette that Manav should follow to maintain credibility while taking part in an online discussion forum on science projects.
Section D (4 × 4 = 16 marks)
- Q32. 4 marks
(a) Predict the output of the following code: s = 'Data and Logic' t = '' for w in s.split(): t = t + w[0] print(t.upper()) (b) Write a Python program to count the vowels in s, where s = 'Keep Learning'. Write the output it gives.
OR
Predict the output of the following Python code: s = 'Keep Learning' print(s[::2]) print(s.lower()) print(s.isalpha()) print(s[::-1])
- Q33. 4 marks
Write a Python program to find the sum of the series x + 2x + 3x + … + nx, for x = 3 and n = 7. Write the output it gives.
- Q34. 4 marks
Predict the output of the following Python code: L = [40, 58, 52, 33, 3, 48, 59] print(48 in L) print(len(L)) print(sorted(L)) print(L[2:6])
- Q35. 4 marks
The dictionary price = {'notebook': 85, 'glue': 140, 'folder': 130, 'scale': 150, 'pencil': 50} holds the price of each item in a stationery shop. Write a Python program that prints each item costing more than ₹90 with its price, and then the total of all the prices. Write the output.
Section E (2 × 5 = 10 marks)
- Q36. 5 marks
(a) Write a Python program to check whether a number n is prime. Write its output for n = 107. (b) Predict the output of the following code: for i in range(1, 6): for j in range(1, i + 1): print(j, end=' ') print()
- Q37. 5 marks
Answer the following questions on safe and responsible use of technology: (i) Give two features of a strong password. (ii) What is cyber bullying, and what should a student do about it? (iii) What is a firewall and why is it used? (iv) What is the difference between a virus and a worm? (v) Give one way to recognise a phishing email.
Marking scheme
The answers and the marks for each step or point, as an examiner marks them. Open a section to check a question.
Section A (21 × 1 = 21 marks): answers and marks
- Q1
(d) monitor
- Q2
(a) 7 (int('…') turns the text into a number)
- Q3
(d) 32 (half the rows have an odd number of 1s)
- Q4
(b) True (isalnum() checks every character of 'NOTE16')
- Q5
(a) adware
- Q6
(c) [8, 19, 1, 2, 12] (remove(12) deletes only the first 12)
- Q7
(a) 11001011 (divide by 2 repeatedly and read the remainders from bottom to top)
- Q8
(d) change range(1, 10) to range(1, 11) (range() stops before its end value)
- Q9
(b) <class 'int'> ((89) is just 89 in brackets; a one-item tuple needs a comma: (89,))
- Q10
(d) print(ceil(2.8)) (from math import ceil brings in the name ceil itself, not the name math)
- Q11
(d) the CPU and the main memory (RAM)
- Q12
(c) 539 (2 to 540: 539 divisions)
- Q13
(b) list
- Q14
(a) it stops with a TypeError, because a string cannot be changed in place (strings are immutable)
- Q15
(d) 456,976 (26 choices for each of 4 places: 26 to the power 4)
- Q16
(a) b = a[:]
- Q17
(d) 12 (count the passes of the inner loop for each i)
- Q18
(d) 3 False (del removes the key and its value)
- Q19
(d) 7 (√37 is a little more than 6)
- Q20
(d) A is false, but R is true. (A is false: int('47') is the integer 47, so the sum is 55. R is true.)
- Q21
(a) Both A and R are true, and R is the correct explanation of A. (A is true: copies may remain. R is true and explains A.)
Section B (7 × 2 = 14 marks): answers and marks
- Q22
- (i) X = 0, gate by gate (1)
- (ii) X = 1, gate by gate (1)
Q22 OR- AND: 0, 0, 0, 1 (1)
- XOR: 0, 1, 1, 0 (1)
- Q23
- (i) 846 (1)
- (ii) each hexadecimal digit as four bits: 1101001110 (1)
- Q24
- (i) 5 × 1024 = 5,120 GB (1)
- (ii) 8 × 1024 × 8 = 65,536 bits (1)
Q24 OR- one correct difference (1)
- an example or use of each (1)
- Q25
- Correct output list (2)
Q25 OR- Coding Con#es# (1)
- 7 (1)
- Q26
- type((7)): <class 'int'> (0.5)
- type(12 // 5): <class 'int'> (0.5)
- type(5 * 1.5): <class 'float'> (0.5)
- type((6,)): <class 'tuple'> (0.5)
- Q27
- Active: data left intentionally, e.g. posting a photo on social media (1)
- Passive: data collected unknowingly, e.g. a shopping app noting the products looked at (1)
Q27 OR- Identity theft: stealing someone’s personal details, such as Aadhaar or PAN numbers, and using them to pretend to be that person (1)
- Safety: Do not share personal identity details online, and keep copies of documents safe (1)
- Q28
- Be credible: check facts before posting, and give the source of what you share (1)
- Avoid cyber bullying: never post hurtful comments or spread rumours about anyone (1)
Q28 OR- E-waste: discarded electronic or electrical devices (1)
- Reuse: use a device again, or give it to someone who can use it, instead of throwing it away (0.5)
- Reduce: buy electronic goods only when they are really needed (0.5)
Section C (3 × 3 = 9 marks): answers and marks
- Q29
- loop comparing each element with key (1)
- position printed (i + 1), with break (1)
- not-found message; output: 66 found at position 1 (1)
Q29 OR- loop finding the largest and smallest (1)
- running total and mean as total / len() (1)
- output: Largest: 98; Smallest: 37; Mean: 58.0 (1)
- Q30
- empty dictionary and a loop over the string (1)
- adding a new key or increasing its count (1)
- output: {'p': 1, 'r': 2, 'o': 1, 'g': 2, 'a': 1, 'm': 2, 'i': 1, 'n': 1} (1)
- Q31
- Trademark (1)
- Reduce (1)
- Passive digital footprint (1)
Q31 OR- Cyber bullying (1)
- Phishing (1)
- Be precise: keep posts short and on the topic of the discussion (1)
Section D (4 × 4 = 16 marks): answers and marks
- Q32
- (a) DAL (2)
- (b) a loop over the string with the right test (1)
- (b) counters printed: Vowels: 5 (1)
Q32 OR- s[::2]: Ke erig (1)
- s.lower(): keep learning (1)
- s.isalpha(): False (1)
- s[::-1]: gninraeL peeK (1)
- Q33
- initialising the sum (1)
- a for loop with the right range (1)
- the term added each time (1)
- output: Sum = 84 (1)
- Q34
- 48 in L: True (1)
- len(L): 7 (1)
- sorted(L): [3, 33, 40, 48, 52, 58, 59] (1)
- L[2:6]: [52, 33, 3, 48] (1)
- Q35
- loop over the keys of the dictionary (1)
- test price[item] > 90 and print (1)
- running total printed at the end (1)
- output: glue 140; folder 130; scale 150; Total: 555 (1)
Section E (2 × 5 = 10 marks): answers and marks
- Q36
- (a) loop over the possible divisors (1)
- (a) test n % i == 0, with break (1)
- (a) output: 107 is a prime number (1)
- (b) 1 / 1 2 / 1 2 3 / 1 2 3 4 / 1 2 3 4 5 (2)
- Q37
- At least 8 characters, mixing capital and small letters, digits and symbols; not a name or date (1)
- Harassing someone online; do not reply, keep proof, block the sender and tell a parent or teacher (1)
- Software or hardware that checks network traffic and blocks unauthorised access (1)
- A virus attaches to a file and needs it to run; a worm spreads by itself across a network (1)
- It asks for a password, OTP or bank details, often with an urgent tone, an odd sender address or a misspelt link (1)
A new Computer Science paper every time
This sample stays the same. In the app, every Computer Science paper is new and leaves out questions your child has already had. Print it, set the 3-hour timer, which rings at 15 minutes left and when time is up, then enter the marks question by question. Your first paper is free.
Revise Class 11 Computer Science chapter by chapter
After marking the paper, practise the chapters where marks were lost. Each worksheet has sample questions with answers and a printable sheet.
Computer Science – Textbook for Class XI
More topics
More Class 11 sample papers
- CBSE Class 11 Mathematics (041) sample paper
- CBSE Class 11 Physics (042) sample paper
- CBSE Class 11 Chemistry (043) sample paper
- CBSE Class 11 Biology (044) sample paper
- CBSE Class 11 Accountancy (055) sample paper
- CBSE Class 11 Business Studies (054) sample paper
- CBSE Class 11 Economics (030) sample paper
- CBSE Class 11 English Core (301) sample paper
- CBSE Class 11 Hindi Core (302) sample paper
- CBSE Class 11 Informatics Practices (065) sample paper
- CBSE Class 11 Geography (029) sample paper
- CBSE Class 11 Psychology (037) sample paper
- CBSE Class 11 Applied Mathematics (241) sample paper
- CBSE Class 11 Physical Education (048) sample paper
