Time allowed: 3 hours · Maximum marks: 70 · AW-11CS-AP-68083
Computer Science: Annual Exam Practice Paper · AW-11CS-AP-68083 · For the parent or teacher: award the marks shown for each step, even when the final answer is wrong.
| Q | Answer and marks for each step | Marks |
|---|---|---|
| Section A (21 × 1 = 21 marks) | ||
| 1 | (d) monitor | 1 |
| 2 | (a) 7 int('…') turns the text into a number | 1 |
| 3 | (d) 32 half the rows have an odd number of 1s | 1 |
| 4 | (b) True isalnum() checks every character of 'NOTE16' | 1 |
| 5 | (a) adware | 1 |
| 6 | (c) [8, 19, 1, 2, 12] remove(12) deletes only the first 12 | 1 |
| 7 | (a) 11001011 divide by 2 repeatedly and read the remainders from bottom to top | 1 |
| 8 | (d) change range(1, 10) to range(1, 11) range() stops before its end value | 1 |
| 9 | (b) <class 'int'> (89) is just 89 in brackets; a one-item tuple needs a comma: (89,) | 1 |
| 10 | (d) print(ceil(2.8)) from math import ceil brings in the name ceil itself, not the name math | 1 |
| 11 | (d) the CPU and the main memory (RAM) | 1 |
| 12 | (c) 539 2 to 540: 539 divisions | 1 |
| 13 | (b) list | 1 |
| 14 | (a) it stops with a TypeError, because a string cannot be changed in place strings are immutable | 1 |
| 15 | (d) 456,976 26 choices for each of 4 places: 26 to the power 4 | 1 |
| 16 | (a) b = a[:] | 1 |
| 17 | (d) 12 count the passes of the inner loop for each i | 1 |
| 18 | (d) 3 False del removes the key and its value | 1 |
| 19 | (d) 7 √37 is a little more than 6 | 1 |
| 20 | (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. | 1 |
| 21 | (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. | 1 |
| Section B (7 × 2 = 14 marks) | ||
| 22 | (i) X = 0 (ii) X = 1
| 2 |
| 22 OR | A | B | AND | XOR 0 | 0 | 0 | 0 0 | 1 | 0 | 1 1 | 0 | 0 | 1 1 | 1 | 1 | 0
| 2 |
| 23 | (i) (846)10 (ii) (1101001110)2
| 2 |
| 24 | (i) 5,120 GB (ii) 65,536 bits
| 2 |
| 24 OR | cache is a small, very fast memory between the CPU and RAM holding the data used most often; RAM is larger and slower
| 2 |
| 25 | ['#', 6, 'n', 'l', '#']
| 2 |
| 25 OR |
| 2 |
| 26 | <class 'int'> <class 'int'> <class 'float'> <class 'tuple'>
| 2 |
| 27 | An active digital footprint is the data a user leaves on purpose, such as posting a photo on social media. A passive digital footprint is the data collected without the user knowingly sharing it, such as a shopping app noting the products looked at.
| 2 |
| 27 OR | Identity theft is stealing someone’s personal details, such as Aadhaar or PAN numbers, and using them to pretend to be that person. Do not share personal identity details online, and keep copies of documents safe.
| 2 |
| 28 |
| 2 |
| 28 OR | E-waste is discarded electronic and electrical equipment, such as old phones and computers. Reuse: use a device again, or give it to someone who can use it, instead of throwing it away. Reduce: buy electronic goods only when they are really needed.
| 2 |
| Section C (3 × 3 = 9 marks) | ||
| 29 | L = [66, 92, 41, 51, 50, 74, 96, 60] key = 66 found = False for i in range(len(L)): if L[i] == key: print(key, 'found at position', i + 1) found = True break if not found: print(key, 'not found') Output: 66 found at position 1
| 3 |
| 29 OR | temps = [40, 98, 46, 65, 62, 37] big = temps[0] small = temps[0] total = 0 for x in temps: if x > big: big = x if x < small: small = x total = total + x print('Largest:', big) print('Smallest:', small) print('Mean:', total / len(temps)) Output: Largest: 98 Smallest: 37 Mean: 58.0
| 3 |
| 30 | word = 'programming' freq = {} for ch in word: if ch in freq: freq[ch] = freq[ch] + 1 else: freq[ch] = 1 print(freq) Output: {'p': 1, 'r': 2, 'o': 1, 'g': 2, 'a': 1, 'm': 2, 'i': 1, 'n': 1}
| 3 |
| 31 |
| 3 |
| 31 OR |
| 3 |
| Section D (4 × 4 = 16 marks) | ||
| 32 | (a) DAL (b) s = 'Keep Learning' v = 0 for ch in s: if ch in 'aeiouAEIOU': v = v + 1 print('Vowels:', v) Output: Vowels: 5
| 4 |
| 32 OR | Ke erig keep learning False gninraeL peeK
| 4 |
| 33 | x = 3 n = 7 s = 0 for i in range(1, n + 1): s = s + i * x print('Sum =', s) Output: Sum = 84
| 4 |
| 34 | True 7 [3, 33, 40, 48, 52, 58, 59] [52, 33, 3, 48]
| 4 |
| 35 | price = {'notebook': 85, 'glue': 140, 'folder': 130, 'scale': 150, 'pencil': 50} total = 0 for item in price: total = total + price[item] if price[item] > 90: print(item, price[item]) print('Total:', total) Output: glue 140 folder 130 scale 150 Total: 555
| 4 |
| Section E (2 × 5 = 10 marks) | ||
| 36 | (a) n = 107 is_prime = True if n < 2: is_prime = False for i in range(2, n): if n % i == 0: is_prime = False break if is_prime: print(n, 'is a prime number') else: print(n, 'is not a prime number') Output: 107 is a prime number (b) 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5
| 5 |
| 37 |
| 5 |