CBSE Class 11 · Computer Science, code 083 · Annual exam practice

Class 11 Computer Science sample paper 2026-27, 70 marks with answers.

This Class 11 Computer Science sample paper for 2026-27 is our own practice paper. It is not an official one, because the Class 11 annual exam is set by each school and CBSE publishes only the marks for each unit. The paper keeps to those marks and to the Class 11 syllabus, so you will find no functions, files or SQL in it. Answers stay folded until you open them.

Live online · 37 original questions, 16 more to follow · every program run · your own days and timing · first class free

Start here

Courses for the marks this paper shows missing

Use the marked paper to choose. If marks fell everywhere, take the board course. If the programs were the trouble, take Python. If the paper was easy, start next year’s SQL.

Ans. The short version

A Class 11 Computer Science sample paper for 2026-27 should match the CBSE 083 unit marks: Computer Systems and Organisation 10, Computational Thinking and Programming 1 45, and Society, Law and Ethics 15, a theory total of 70. CBSE publishes only these marks for Class 11; each school sets its own annual paper. This page gives an original 70-mark practice paper with 37 questions, worked answers and 16 more important questions. Modern Age Coders marks such papers live in personalised one to one classes at your own timing. A priority demo lets you try a full class first.

Q1. Is there an official paper?

Who sets the Class 11 Computer Science question paper?

Your school does. For Class 11 the CBSE curriculum gives the unit marks and the syllabus, and nothing about the number of questions, sections or choices, so the Class 11 paper in one school can look different from the next.

What is fixed, and where it comes from

DetailStatus for Class 11 in 2026-27
Theory 70, practical 30Fixed in the CBSE curriculum
Unit marks 10, 45, 15Fixed in the CBSE curriculum
TopicsFixed: the Class XI syllabus
Number and type of questionsDecided by the school
Internal choiceDecided by the school
Exam date and durationDecided by the school
Official CBSE sample paperNone for Class XI among the 2026-27 papers we checked; the 083 one is for Class XII

So before you practise, ask your teacher three things: how many questions, how many marks for writing programs, and whether the term exams left any chapters out.

The blueprint of this practice paper

SectionQuestionsSystemsPythonSocietyTotal
A, 1 mark1 to 21412521
B, 2 marks22 to 2826614
C, 3 marks29 to 310909
D, 4 marks32 to 3548416
E, 5 marks36 and 37010010
Marks3710451570

We borrowed the five-section shape from the Class 12 board design, so that you meet it a year early. If your school uses another shape, keep the questions and move them about. Next year’s version is on the Class 12 sample paper page.

Practice paper. Section A, 21 marks

Class 11 computer science question paper, Section A: one mark each

All questions are compulsory and programs are in Python. Give this section 30 minutes. In Questions 20 and 21 answer (a) if both are true and R explains A, (b) if both are true and R does not explain A, (c) if only A is true, (d) if only R is true.

  1. Q1. Which memory sits between the CPU and RAM, holds recently used data and loses it when the power goes off? (1)
    (a) ROM
    (b) Cache
    (c) Hard disk
    (d) Pen drive
    Show the answer (b) Cache. It is faster and smaller than RAM and, like RAM, volatile.
  2. Q2. The decimal value of the hexadecimal number 2B is: (1)
    (a) 33
    (b) 43
    (c) 211
    (d) 22
    Show the answer (b) 43. 2 x 16 + 11 = 43, because B stands for 11.
  3. Q3. Both inputs of a gate are 1 and its output is 0. Both inputs are then made 0 and the output is still 0. The gate is: (1)
    (a) NAND
    (b) NOR
    (c) XOR
    (d) AND
    Show the answer (c) XOR. It gives 1 only when the inputs differ. NAND and NOR would both give 1 for inputs 0, 0, and AND would give 1 for inputs 1, 1.
  4. Q4. A translator reads one statement, converts it, executes it, and only then goes to the next. It is called: (1)
    (a) a compiler
    (b) an assembler
    (c) an interpreter
    (d) a device driver
    Show the answer (c) an interpreter. A compiler converts the whole program before any of it is executed.
  5. Q5. Which of these cannot be used as an identifier in Python? (1)
    (a) _total
    (b) marks2
    (c) 2nd_term
    (d) Class_
    Show the answer (c) 2nd_term. A name may not begin with a digit. Class_ is allowed, since it is not the keyword class.
  6. Q6. What is the output? (1)
    Q6precedence
    print(18 % 5 * 2 ** 2 // 3 - 1)
    Show the answer 3. 2 ** 2 is 4. Then left to right: 18 % 5 is 3, 3 * 4 is 12, 12 // 3 is 4. Last, 4 - 1 is 3.
  7. Q7. What is the data type of the value of 9 / 3? (1)
    (a) int
    (b) float
    (c) str
    (d) bool
    Show the answer (b) float. A single slash always gives a float, here 3.0.
  8. Q8. Which list does list(range(15, 2, -4)) give? (1)
    (a) [15, 11, 7, 3]
    (b) [15, 11, 7]
    (c) [15, 11, 7, 3, -1]
    (d) [2, 6, 10, 14]
    Show the answer (a) [15, 11, 7, 3]. 3 is still above the stop value 2, so it is included; the next value, -1, is not.
  9. Q9. What is the output? (1)
    Q9slicing
    place = "Lakshadweep"
    print(place[2:9:3])
    Show the answer kae. The indexes are 2, 5 and 8: k, a, e.
  10. Q10. What is the output? (1)
    Q10lists
    L = [3, 1]
    L.append([2, 4])
    print(len(L))
    Show the answer 3. append() adds the inner list as one item. With extend() the answer would be 4.
  11. Q11. What happens when this code is run? (1)
    Q11tuples
    t = (5, 6)
    t[0] = 7
    print(t)
    (a) It prints (7, 6)
    (b) It prints (5, 6)
    (c) TypeError
    (d) IndexError
    Show the answer (c) TypeError. A tuple does not allow item assignment.
  1. Q12. What is the output? (1)
    Q12dictionary
    d = {"a": 1, "b": 2, "a": 5}
    print(len(d), d["a"])
    (a) 3 1
    (b) 3 5
    (c) 2 1
    (d) 2 5
    Show the answer (d) 2 5. Keys are unique, so the later value for "a" replaces the earlier one.
  2. Q13. Which output is possible? (1)
    Q13random module
    import random
    word = "PYTHON"
    n = random.randint(1, 3)
    print(word[n], word[n + 2])
    (a) P T
    (b) Y H
    (c) O N
    (d) T H
    Show the answer (b) Y H. n can be 1, 2 or 3, giving Y H, T O or H N. P would need n = 0.
  3. Q14. Which statement changes the object itself and does not create a new one? (1)
    (a) s.upper()
    (b) sorted(L)
    (c) L.sort()
    (d) t + (1,)
    Show the answer (c) L.sort(). Strings and tuples are immutable, and sorted() builds a new list.
  4. Q15. The statement print("Total: " + 5) stops the program with a message. This is: (1)
    (a) a syntax error
    (b) a run-time error
    (c) a logical error
    (d) not an error
    Show the answer (b) a run-time error. The grammar is correct; the TypeError appears only when the line is executed.
  5. Q16. How many numbers does this loop print? (1)
    Q16while
    i = 20
    while i > 0:
        print(i)
        i //= 3
    (a) 2
    (b) 3
    (c) 7
    (d) It never ends
    Show the answer (b) 3. It prints 20, 6 and 2. Then 2 // 3 is 0 and the test fails.
  6. Q17. A website notes your IP address and the pages you open, though you fill in nothing. This data is part of your: (1)
    (a) active digital footprint
    (b) passive digital footprint
    (c) trademark
    (d) malware
    Show the answer (b) passive digital footprint. An active footprint is left on purpose, as in a post or a form.
  7. Q18. Which licence requires that a changed program, if distributed, is shared under the same licence? (1)
    (a) Apache
    (b) GPL
    (c) Copyright
    (d) Trademark
    Show the answer (b) GPL, the General Public License. Apache allows the changed version to be released under other terms.
  8. Q19. Software that encrypts a school’s files and asks for money to open them is: (1)
    (a) adware
    (b) a cookie
    (c) ransomware
    (d) a web browser
    Show the answer (c) ransomware. The payment demanded is the ransom.
  9. Q20. Assertion (A): Writing the photographer’s name under a copyrighted photo always makes it legal to use. Reason (R): Plagiarism means presenting someone’s work without giving credit. (1)
    Show the answer (d) A is false but R is true. Credit avoids plagiarism, but copyright also needs permission or a licence.
  10. Q21. Assertion (A): An old phone should not go into the kitchen dustbin. Reason (R): Electronic parts can contain metals such as lead and mercury, which may reach soil and water. (1)
    Show the answer (a) Both are true and R explains A. It should go to an authorised e-waste collector.

Practice paper. Section B, 14 marks

Section B: short answers, two marks each

Questions 22 to 28. Where you see OR, attempt one part. About 30 minutes; two marks want two points, so number them.

  1. Q22. A. State De Morgan’s first law, (A.B)’ = A’ + B’, in words and prove it with a truth table. OR B. Differentiate between system software and application software, with one example of each. (2)
    Show the answer A. The complement of an AND is the OR of the complements.
    ABA.B(A.B)’A’B’A’ + B’
    0001111
    0101101
    1001011
    1110000
    Columns four and seven match in every row. Half a mark for the words, one and a half for the table.
    B. System software runs and looks after the computer itself, for example an operating system. Application software does a particular job for the user, for example a spreadsheet. One mark for the difference, half for each example.
  2. Q23. The program should print the sum 1 + 2 + ... + n. Rewrite it with the errors removed and underline each correction. (2)
    Q23four errors
    n = int(input("How many? ")
    total = 0
    for i in range(1, n):
        total =+ i
    Print("Sum", total)
    Show the answer
    Q23program
    n = int(input("How many? "))   # 1. bracket closed
    total = 0
    for i in range(1, n + 1):      # 2. n must be included
        total += i                 # 3. += adds, =+ assigns
    print("Sum", total)            # 4. small p
    Q23sample run
    How many? 5
    Sum 15
    Half a mark each. Errors 1 and 4 stop the program; errors 2 and 3 are logical, and only a test run shows them.
  3. Q24. A. Write one statement for each: (I) from city = " new delhi " get the string "New Delhi"; (II) from T = (4, 9, 4, 7) find how many times the smallest value occurs. OR B. Predict the output. (2)
    Q24 Bpartition
    text = "Monday-Tuesday"
    a, sep, b = text.partition("-")
    print(b.find("day") + len(a))
    print(a.replace("Mon", "Sun").isalpha())
    Show the answer A. (I) city.strip().title() (II) T.count(min(T)), which gives 2. One mark each.
    B. First line 10: "day" begins at index 4 of Tuesday, and Monday has 6 letters. Second line True: Sunday has letters only. One mark each.
  4. Q25. Predict the output. (2)
    Q25trace the dictionary
    values = [5, 12, 7, 20]
    result = {}
    for v in values:
        if v % 5 == 0:
            result[v] = v // 5
        else:
            result["other"] = result.get("other", 0) + v
    print(result)
    Show the answer {5: 1, 'other': 19, 20: 4}
    vBranchresult after the pass
    5divisible{5: 1}
    12other{5: 1, 'other': 12}
    7other{5: 1, 'other': 19}
    20divisible{5: 1, 'other': 19, 20: 4}
  5. Q26. A. What is the difference between a copyright and a patent? Give an example of each. OR B. What is the difference between a virus and a trojan? (2)
    Show the answer A. Copyright protects the expression of creative work, such as a song or the code of a program. A patent protects an invention, such as a new kind of pump. One mark for the difference, half for each example.
    B. A virus attaches itself to a file and makes copies of itself when that file is run. A trojan pretends to be something useful, such as a free game, and does harm once installed; it does not copy itself. One mark each.
  6. Q27. Write any two rules of communication etiquette to follow when sending an e-mail to a teacher. (2)
    Show the answer Any two, one mark each: write a clear subject line; be brief and polite; check spelling and the address before sending; avoid writing in capitals; do not attach a very large file without asking; reply within a reasonable time.
  7. Q28. A. Name two difficulties a student with a visual impairment may face while using a computer, and a remedy for each. OR B. Give two reasons why fewer girls may take up computing, and one step a school can take. (2)
    Show the answer A. The screen cannot be read: use a screen reader or a magnifier. The mouse pointer cannot be followed: teach keyboard shortcuts or a Braille keyboard. Half a mark for each difficulty and remedy.
    B. Reasons: stereotypes about who is good with machines; few visible role models; less access to a computer at home. A step: equal lab time, or inviting women who work in the field. Half a mark for each reason, one for the step.

Definitions for Questions 26 to 28 are set out in tables in the Class 11 CS notes.

Practice paper. Section C, 9 marks

Section C: three programs, three marks each

Questions 29 to 31 ask for a number program, a string program and a list or tuple program. About 25 minutes. In the sample runs, what follows a prompt was typed.

  1. Q29. A. Write a program to input n and print the sum of 1/2 + 2/3 + 3/4 + ... up to n terms. OR B. Write a program to input a positive number and count its even digits and its odd digits. (3)
    Show the answer A.
    Q29 Aprogram
    # Sum of 1/2 + 2/3 + 3/4 + ... + n/(n + 1)
    n = int(input("Number of terms: "))
    total = 0
    for k in range(1, n + 1):
        total += k / (k + 1)
    print("Sum =", round(total, 4))
    Q29 Asample run
    Number of terms: 4
    Sum = 2.7167
    One mark for input and starting value, one for the loop and its range, one for the term and the print.
    B.
    Q29 Bprogram
    # Count the even digits and odd digits of a number
    number = int(input("Positive number: "))
    even = odd = 0
    while number > 0:
        digit = number % 10
        if digit % 2 == 0:
            even += 1
        else:
            odd += 1
        number //= 10
    print("Even digits:", even, " Odd digits:", odd)
    Q29 Bsample run
    Positive number: 730462
    Even digits: 4  Odd digits: 2
    One mark for taking a digit, one for the test, one for reducing the number and printing. Zero counts as an even digit.
  2. Q30. Write a program to input a sentence and print each word with its length, and at the end the longest word. If two words are equally long, print the one that comes first. (3)
    Show the answer
    Q30program
    # Length of every word, and the longest word
    sentence = input("Sentence: ")
    words = sentence.split()
    longest = ""
    for word in words:
        print(word, len(word))
        if len(word) > len(longest):
            longest = word
    print("Longest:", longest)
    Q30sample run
    Sentence: The rover landed near a crater
    The 3
    rover 5
    landed 6
    near 4
    a 1
    crater 6
    Longest: landed
    One mark for split() and the loop, one for lengths, one for the longest. Because the test is > and not >=, landed stays although crater has six letters too.
  3. Q31. A. Write a program to input the runs scored in n innings into a list, and display the mean and every score above the mean. OR B. A tuple holds the temperatures of seven days: temps = (34, 36, 35, 38, 33, 38, 37). Write a program to display how many days were above 35 and the number of the first day with the highest temperature. (3)
    Show the answer A.
    Q31 Aprogram
    # Runs that are above the mean
    runs = []
    n = int(input("Innings: "))
    for i in range(n):
        runs.append(int(input("Runs: ")))
    mean = sum(runs) / n
    print("Mean", mean)
    for score in runs:
        if score > mean:
            print(score)
    Q31 Asample run
    Innings: 5
    Runs: 12
    Runs: 60
    Runs: 33
    Runs: 8
    Runs: 47
    Mean 32.0
    60
    33
    47
    One mark for filling the list, one for the mean, one for the loop that compares.
    B.
    Q31 Bprogram
    # Hot days in a week
    temps = (34, 36, 35, 38, 33, 38, 37)
    hot = 0
    for t in temps:
        if t > 35:
            hot += 1
    print("Days above 35:", hot)
    print("Hottest first on day", temps.index(max(temps)) + 1)
    Q31 Bsample run
    Days above 35: 4
    Hottest first on day 4
    One and a half marks for the count, one and a half for the day. Day numbers start at 1, so 1 is added to the index.

Practice paper. Section D, 16 marks

Section D: conversions, a dictionary, outputs and a cyber case

Questions 32 to 35, four marks each, usually split into parts. About 45 minutes. Write the part number before every answer.

  1. Q32. (I) Convert the octal number 214 to hexadecimal through binary. (II) Convert the decimal number 45.25 to binary. (III) Write the Boolean expression for F in the circuit below. (IV) A. Give the values of A, B and C for which F is 0. OR B. Draw the truth table of a NOR gate. (1 + 1 + 1 + 1) ABCF
    Show the answer (I) 2 is 010, 1 is 001, 4 is 100, so 010001100. In fours from the right: 1000 1100, which is 8C.
    (II) 45 is 101101. 0.25 x 2 = 0.5, then 0.5 x 2 = 1.0, so the fraction is .01. Answer: 101101.01.
    (III) F = (A.B)’ + C. The first gate is NAND, the second OR.
    (IV) A. An OR is 0 only if both its inputs are 0: C = 0 and (A.B)’ = 0, which needs A = 1 and B = 1. So A = 1, B = 1, C = 0. OR B.
    ABA NOR B
    001
    010
    100
    110
    One mark for each part; show the working.
  2. Q33. A cycling club keeps names and kilometres in a dictionary. Write a program to: (I) input n names with their kilometres; (II) display the names of those who rode more than 20 km; (III) display who rode farthest; (IV) add 2 km to everyone’s distance and print the dictionary. (4)
    Show the answer
    Q33program
    # Distances cycled, name : kilometres
    rides = {}
    n = int(input("Cyclists: "))
    for i in range(n):                          # (I)
        name = input("Name: ")
        rides[name] = float(input("Km: "))
    for name in rides:                          # (II)
        if rides[name] > 20:
            print(name, "rode more than 20 km")
    for name, km in rides.items():              # (III)
        if km == max(rides.values()):
            print("Farthest:", name, km)
    for name in rides:                          # (IV)
        rides[name] += 2
    print(rides)
    Q33sample run
    Cyclists: 3
    Name: Aditi
    Km: 18.5
    Name: Rohan
    Km: 27
    Name: Sana
    Km: 22.5
    Rohan rode more than 20 km
    Sana rode more than 20 km
    Farthest: Rohan 27.0
    {'Aditi': 20.5, 'Rohan': 29.0, 'Sana': 24.5}
    One mark for each part. Part (III) prints every rider who shares the highest distance, which a single max() on the keys would not do.
  3. Q34. Predict the output of each code. (2 + 2)
    Q34 Inested loop
    for i in range(4, 0, -1):
        for j in range(i):
            print(i * j, end=" ")
        print()
    Q34 IInested list
    M = [[2, 5], [7, 1], [4, 4]]
    total = 0
    for row in M:
        row.sort()
        total += row[0]
        if row[0] == row[1]:
            row.append(0)
    print(M, total)
    Show the answer (I)
    Q34 Ioutput
    0 4 8 12
    0 3 6
    0 2
    0
    Half a mark for each line. The inner loop starts at 0, so every line begins with 0.
    (II) [[2, 5], [1, 7], [4, 4, 0]] 7. Each row is sorted in place, so M itself changes, and the smaller numbers 2, 1 and 4 add to 7. Half a mark for each row and half for the total.
  4. Q35. Naina gets a message: "Your scholarship is approved. Confirm your bank password within 2 hours at this link." A week later she finds her painting, which she had posted online, printed on T-shirts sold by a shop that never asked her. (I) Name the cyber crime in the message. (II) Write two signs that the message is false. (III) Which of Naina’s intellectual property rights has the shop violated? (IV) A. Name the Indian law that deals with cyber offences. OR B. Suggest one thing she should do about the message. (1 + 1 + 1 + 1)
    Show the answer (I) Phishing. (II) Any two, half a mark each: it asks for a password; it creates hurry with a time limit; it comes as a link and not from the official site; the sender is unknown. (III) Copyright. Selling copies without her permission is copyright infringement. (IV) A. The Information Technology Act, 2000. OR B. Do not open the link or reply; tell a parent or teacher, and report the message.

If Question 32 was slow, practise on number system and Boolean logic before another paper.

Practice paper. Section E, 10 marks

Section E: two long programs, five marks each

Questions 36 and 37. About 35 minutes. Read all the parts first, because later parts reuse what the earlier ones store.

  1. Q36. (I) Write a program to input the number of rows and print the triangle shown, using nested loops. (II) A. Write a program to input two positive integers and display every number in that range which is divisible by the sum of its own digits. OR B. Write a program to display all two-digit numbers that are equal to the sum of their digits plus the product of their digits. (2 + 3)
    Q36 Ifor 4 rows
    1 3 5 7
    3 5 7
    5 7
    7
    Show the answer (I)
    Q36 Iprogram
    # Triangle of odd numbers
    n = int(input("Rows: "))
    for row in range(n):
        for k in range(row, n):
            print(2 * k + 1, end=" ")
        print()
    Q36 Isample run
    Rows: 4
    1 3 5 7 
    3 5 7 
    5 7 
    7
    One mark for the two loops, one for the value printed.
    (II) A.
    Q36 II Aprogram
    # Numbers divisible by the sum of their digits
    low = int(input("From: "))
    high = int(input("To: "))
    for number in range(low, high + 1):
        digits = 0
        copy = number
        while copy > 0:
            digits += copy % 10
            copy //= 10
        if number % digits == 0:
            print(number, "is divisible by", digits)
    Q36 II Asample run
    From: 110
    To: 120
    110 is divisible by 2
    111 is divisible by 3
    112 is divisible by 4
    114 is divisible by 6
    117 is divisible by 9
    120 is divisible by 3
    One mark for the range with both ends included, one for the digit sum on a copy, one for the test.
    B.
    Q36 II Bprogram
    # Two-digit numbers equal to the sum of digits plus product
    for number in range(10, 100):
        tens = number // 10
        units = number % 10
        if tens + units + tens * units == number:
            print(number, end=" ")
    print()
    Q36 II Bsample run
    19 29 39 49 59 69 79 89 99
    One mark for the loop, one for separating the digits, one for the test. All nine answers end in 9.
  2. Q37. A shop writes a stationery bill. Write a program to: (I) input n items and store name, price and pieces of each as an inner list; (II) display each item with its amount, and the total bill; (III) display how many bags are needed if one bag holds 6 pieces, using the math module. (2 + 2 + 1)
    Show the answer
    Q37program
    # Stationery bill, one inner list for each item
    import math
    
    items = []
    n = int(input("Items: "))
    for i in range(n):                                # (I)
        name = input("Name: ").strip().title()
        price = float(input("Price: "))
        pieces = int(input("Pieces: "))
        items.append([name, price, pieces])
    
    total = 0
    count = 0
    for name, price, pieces in items:                 # (II)
        amount = price * pieces
        print(name, pieces, "x", price, "=", amount)
        total += amount
        count += pieces
    print("Bill:", total)
    
    print("Bags:", math.ceil(count / 6))              # (III)
    Q37sample run
    Items: 2
    Name:  gel pen
    Price: 12.5
    Pieces: 8
    Name: drawing book
    Price: 60
    Pieces: 3
    Gel Pen 8 x 12.5 = 100.0
    Drawing Book 3 x 60.0 = 180.0
    Bill: 280.0
    Bags: 2
    Part (I): one mark for reading with the right conversions, one for appending a list. Part (II): one for the amounts, one for the running total. Part (III): half for the import, half for ceil(). Eleven pieces need two bags, since 11 / 6 is more than 1.

A program of this kind, grown to eight menu options, is the Class 11 Computer Science project. The 20 programs for the file are on the practical file page.

Beyond the paper

Class 11 computer science important questions, unit by unit

Sixteen more questions on parts of the syllabus the paper had no room for. "Important" here means that the topic is in the syllabus and students often answer it loosely; nobody outside your school knows what it will ask.

Computer systems, and the start of Python

  1. X1. Convert the binary number 10111.11 to decimal.
    Show the answer 16 + 4 + 2 + 1 + 0.5 + 0.25 = 23.75.
  2. X2. Write the expression for a circuit in which B passes through a NOT gate, joins A in an OR gate, and the result joins C in an AND gate. Find F for A = 0, B = 1, C = 1.
    Show the answer F = (A + B’).C. Here A + B’ is 0 + 0, which is 0, so F = 0.
  3. X3. Why can a Hindi message not be stored in ASCII?
    Show the answer ASCII has 128 codes, enough for English letters, digits and signs. Devanagari characters have no code there; Unicode, for example in UTF-8, gives each of them one.
  4. X4. Name the function of an operating system at work when you run two programs together, and when you rename a folder.
    Show the answer Process management for the first, file management for the second.
  5. X5. What is the difference between implicit and explicit type conversion? Give one line of each.
    Show the answer Implicit is done by Python: 3 + 1.5 turns 3 into a float and gives 4.5. Explicit is written by you: int("42") + 1 gives 43.
  6. X6. Rewrite for k in range(10, 3, -2): print(k) with a while loop.
    Show the answer
    X6prints 10, 8, 6, 4
    k = 10
    while k > 3:
        print(k)
        k -= 2
  7. X7. Write statements to check whether two words are anagrams.
    Show the answer
    X7prints True
    first = "Listen"
    second = "Silent"
    print(sorted(first.lower()) == sorted(second.lower()))
  8. X8. Write a program to remove repeated values from a list without disturbing the order.
    Show the answer
    X8prints [4, 9, 2]
    L = [4, 9, 4, 2, 9]
    unique = []
    for x in L:
        if x not in unique:
            unique.append(x)
    print(unique)

Collections, modules, and society

  1. X9. Differentiate between pop(), remove() and del for a list.
    Show the answer pop(i) removes by index and returns the item; remove(x) removes the first item equal to x and returns None; del L[i] is a statement that removes by index, or a whole slice, and returns nothing.
  2. X10. Count how many times each letter occurs in "kaveri kaapi", leaving out the space.
    Show the answer
    X10prints the dictionary
    text = "kaveri kaapi"
    count = {}
    for ch in text:
        if ch != " ":
            count[ch] = count.get(ch, 0) + 1
    print(count)
    # {'k': 2, 'a': 3, 'v': 1, 'e': 1, 'r': 1, 'i': 2, 'p': 1}
  3. X11. What will random.randrange(10, 20, 5) return?
    Show the answer 10 or 15. The stop value 20 is never returned.
  4. X12. Swap the first and last characters of a string of at least two characters.
    Show the answer
    X12prints nythop
    s = "python"
    s = s[-1] + s[1:-1] + s[0]
    print(s)
  5. X13. Give three precautions for using a computer in a cyber café.
    Show the answer Use private browsing and log out of every account; do not save passwords or let the browser remember them; do not enter bank details; check that nobody is watching the keyboard.
  6. X14. How is ransomware different from adware?
    Show the answer Ransomware locks data and demands money. Adware shows unwanted advertisements; it annoys and may track you but does not lock your files.
  7. X15. What may a person do with a photo under a Creative Commons licence?
    Show the answer What that licence allows: usually copy and share it with credit, and, depending on the version, change it or use it for business. The terms must be read, because versions differ.
  8. X16. Write two things the IT Act, 2000 provides.
    Show the answer Legal recognition for electronic records and digital signatures, and penalties for cyber offences such as breaking into a computer system.

Q2. How do I use a practice paper?

After the annual exam paper: mark it, sort the losses, write another

Write the paper in one sitting, mark it the next day with the step marks above, and put each lost mark into one of four boxes. The box tells you what to do; the total does not.

BoxWhat it looks likeWhat to do this week
Did not knowA blank, or a guessRead that topic, then write it from memory
Traced wronglyOutput off by one valueTen outputs with a trace table, one column for each name
Could not beginA program left emptyWrite its steps in plain words before any code
CarelessColon, indent, missing unit or exampleKeep five minutes for a slow last reading

A timetable for three hours

SectionMinutes
A30
B30
C25
D45
E35
Checking15
Total180

The minutes are our suggestion. If your school’s paper is shorter in time, cut each in proportion.

Writing programs on paper without losing steps

  1. Read the input line twice

    Whole numbers want int(), measurements want float(), names want neither. A missing conversion makes every line after it wrong.

  2. Set the starting values

    Sum at 0, product at 1, longest word at an empty string, largest at the first item. It is the line most easily forgotten.

  3. Draw the indents

    Leave a clear gap for each level and keep it the same down the page. An indent that cannot be read changes what the program means.

  4. Run it by hand on a tiny case

    Two items are enough. If the hand run prints what the question shows, move on.

For many more complete programs, see Python programs for Class 11 with output.

One to one, at your own timing

Practise the annual exam with a teacher, one to one

Because each school sets its own paper, practice is most useful when it copies yours. Bring a past term paper to a priority demo, a paid full live class at your chosen slot that ends with a written skill report; the fee is adjusted if you enrol. A free demo class is also available.

Before you enrol · Try a class

Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

  • Part of this paper, or of a school paper, marked with you
  • One output question traced aloud, step by step
  • One program moved from your page to the screen and run
  • A written skill report, unit by unit, afterwards
Book a priority demo

The classes · Choose your own timing

Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

  • Papers shaped to the pattern your school uses
  • Handwritten programs typed as they stand and corrected by you
  • Unit 3 answers trimmed to the points that earn marks
  • Class hours that move when the exam timetable arrives
Ask for a personalised plan

A student starting a term ahead can cover all three units and still write several papers. One starting late does outputs and programs first, since Unit 2 is 45 of the 70 marks. There is no admission fee, billing is monthly, and you may stop at the end of any month.

Studying outside India?

Annual exam practice from wherever you study

Students of CBSE schools in Sharjah, Riyadh or Kathmandu sit a school-set paper too, often in a different week. We fit the classes to your timetable and your clock.

Where you liveTime differenceUsual class window, local timeFormat
India
every Indian city
Indian timeAny time you choosePersonalised 1-on-1
UAE and Oman
Dubai, Abu Dhabi, Sharjah, Muscat
1 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Saudi Arabia, Qatar, Kuwait, Bahrain
Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama
2 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Nepal
Kathmandu
15 min ahead of India4:30 PM to 9:00 PMPersonalised 1-on-1
Ethiopia and East Africa
Addis Ababa and East Africa Time
2 h 30 min behind India4:30 PM to 9:00 PMPersonalised 1-on-1
Singapore and Malaysia
Singapore, Kuala Lumpur
2 h 30 min ahead of India3:30 PM to 9:00 PMPersonalised 1-on-1

Send us the portion and the dates when the school announces them, and the remaining classes are divided between units. For the whole year’s teaching, see Class 11 Computer Science tuition.

What families say

Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the Class 11 series

More pages for Class 11 students

Every page in the CBSE Class 11 Computer Science, IP and AI series, grouped by what you need.

About the Class 11 paper

Class 11 Computer Science sample paper: questions students ask

Is there an official CBSE Class 11 Computer Science sample paper 2026-27?

The official 2026-27 sample question paper we have checked for Computer Science (083) is for Class XII. For Class XI the CBSE curriculum gives the syllabus and unit marks, and each school sets its own annual paper. The paper on this page is an original practice paper built on those unit marks.

What is the paper pattern of Class 11 Computer Science?

Only the marks are common to all schools: 70 for theory, divided as 10 for computer systems, 45 for Python and 15 for society, law and ethics. The number of questions, sections and choices is decided by the school. Many students find it useful to practise in the Class 12 shape, as here.

Where can I get a Class 11 Computer Science question paper with solutions?

This page has a full 70-mark paper with every answer worked and every program run. Add your own school’s term papers, because they show the pattern you will meet. Check any older paper you find online against the 2026-27 syllabus, since some still carry C++ or topics that have been dropped.

When is the Class 11 Computer Science annual exam in 2027?

The date is fixed by your school, not by CBSE, and so is the duration. Ask for the date sheet, and ask separately about the practical, which is often on another day. The date sheet CBSE publishes is for the board classes, so it will not list your paper.

What are the important questions for Class 11 Computer Science?

Outputs that use slicing, list and dictionary methods; programs on numbers, strings and lists; number conversions; truth tables and De Morgan’s laws; and differences in Unit 3, such as copyright and patent or virus and trojan. This page adds 16 such questions with answers after the paper.

How many marks of programs come in the Class 11 Computer Science paper?

There is no published number. Unit 2 as a whole is 45 marks and includes theory, outputs and programs, so the split depends on the school. In this practice paper, 23 marks are for writing programs from scratch: nine in Section C, four in Section D and ten in Section E.

Will functions or SQL come in the Class 11 Computer Science paper?

They are not in the Class XI syllabus for 2026-27. User-defined functions, file handling and SQL all belong to Class 12 Computer Science. If a sample paper you are solving has def or SELECT in it, it was made for another class, another subject or another year.

How do I score well in Class 11 Computer Science theory?

Split your time as the marks are split. Trace two outputs and write one program most days, learn Unit 3 as term, meaning and example, and do a few conversions and one truth table each week. Then write two or three full papers by hand and repair what each one shows.

Are Class 11 Computer Science programs marked in steps?

The scheme is your school’s, but splitting a program into input, logic and output is common sense and common practice. The answers here show one way to divide the marks. It means a program with one slip should not be left out: write as many correct steps as you can.

Can I get this Class 11 sample paper as a PDF?

You can print the page from your browser or choose Save as PDF. The answers stay folded on screen so that you can attempt the questions first. If you want them in your copy, open each one before you print.

Can a teacher check my Class 11 practice paper?

Yes. In a personalised one to one class at Modern Age Coders, the teacher marks your handwritten paper with you and runs your programs exactly as you wrote them. You can start with a priority demo at a slot you pick, with a written skill report, or with the free demo class.

Start

Write one section, then let us mark it with you

Section D is a good one to bring, because it touches all three units in 16 marks. Write it without notes, send a photograph, and the demo class goes through it line by line, with the marks you would have received and the reason for each.

Choose the priority demo for a slot of your own and a written skill report; its fee is adjusted in the first month if you enrol.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Every class is live video. The form requests a callback and reserves nothing.

We call within a few hours. No card, no enrolment fee.

Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

Book a priority demo

Keep exploring Modern Age Coders

By class and age

Learn more

Free resources

From the blog

Start here