End Term Examination Practice Paper
Directorate of Education, GNCT of Delhi
Class – XI
Computer Science (Code No. 083)
Session: 2025-26
Time allowed: 3 Hours Maximum Marks: 70
General Instructions
- Please check this question paper contains 37 questions.
- This paper is divided into 5 sections, A, B, C, D and E.
- All questions are compulsory.
- Section A consists of 21 questions (1 to 21). Each question carries 1 mark.
- Section B consists of 7 questions (22 to 28). Each question carries 2 marks.
- Section C consists of 3 questions (29 to 31). Each question carries 3 marks.
- Section D consists of 4 questions (32 to 35). Each question carries 4 marks.
- Section E consists of 2 questions (36 to 37). Each question carries 5 marks.
- All programming questions are to be answered using Python Language only.
Section A (21 × 1 = 21 Marks)
| Q. No. | Question | Marks |
|---|---|---|
| 1 | State True or False. “Python is case-sensitive language” | 1 |
| 2 | Which is not an input device? a) Keyboard b) Printer c) Scanner d) Mouse | 1 |
| 3 | Which of the following is a valid variable name? a) if b) pass c) roll no d) age | 1 |
| 4 | Which gate outputs 1 only if both inputs are 1? a) AND b) XOR c) NOR d) NOT | 1 |
| 5 | The output of 1 or 0 and 1 is: a) True b) False c) 0 d) 1 | 1 |
| 6 | ALU is part of ______? a) Input Unit b) Output Unit c) Central Processing Unit d) Control Unit | 1 |
| 7 | What type of error is caused by misspelled keyword? a) Logical b) Runtime c) Syntax d) Compilation | 1 |
| 8 | “Hello” <= “hello” gives output as: a) True b) False c) Hello d) “hello” | 1 |
| 9 | ______ is equal to 65 in octal: a) (110101)₂ b) (1000001)₂ c) (101010)₂ d) (100011)₂ | 1 |
| 10 | Which loop is best if iterations known? a) while loop b) for loop c) do while loop d) infinite Error | 1 |
| 11 | What will be the output of the following code:x = "python" a) “python hello” b) “hello python” c) “pythonhello” d) “hellopython” | 1 |
| 12 | Run Time error occurs due to ______________ a) Wrong Syntax b) Misspelled Keyword c) Logical Mistake d) Illegal operations during execution | 1 |
| 13 | UTF-8 is an encoding scheme of _______. a) Images b) Audio c) characters (Text) d) Videos | 1 |
| 14 | Which function will convert string “100” into integer? a) int() b) str() c) float() d) id() | 1 |
| 15 | What is the output of the following python code:if 1: a) Not Empty b) Empty c) 1 d) Error | 1 |
| 16 | Which of these is a logical operator: a) == b) >= c) or d) != | 1 |
| 17 | What is the output of the following python code:n=2 a) 2 4 6 b) 2 4 6 7 c) 2 7 d) Infinite loop | 1 |
| 18 | Which of these will give a runtime error? a) print(1+3) b) print(1/0) c) print(“Hi”) d) a=8 | 1 |
| 19 | Which statement is used to skip the current iteration in a loop? a) break b) continue c) pass d) exit | 1 |
| 20 | Assertion (A): Interpreter works line by line Reason (R): Hence slower than compiler. Mark the correct choice: A) Both A and R are true and R is correct explanation of A B) Both A and R are true but R is not correct explanation of A C) A is true but R is false D) A is false but R is true | 1 |
| 21 | Assertion (A): NOR is a universal gate. Reason (R): Any circuit can be designed using it. Mark the correct choice: A) Both A and R are true and R is correct explanation of A B) Both A and R are true but R is not correct explanation of A C) A is true but R is false D) A is false but R is true | 1 |
Section B (7 × 2 = 14 Marks)
| Q. No. | Question | Marks |
|---|---|---|
| 22 | Mehak, a Python programmer, wants to print the squares of all odd numbers between 1 and 20. She wrote the following code, but it contains errors. Correct the code and underline the corrections made.num = 1 | 2 |
| 23 | Write a program in python that takes a number as an input from the user and check whether that number is positive, negative, or zero. | 2 |
| 24 | What will be the output of following statement: (9>=8) and (not False) or (7<3) OR What will be the output of following statement: 2**3**2+10-2 | 2 |
| 25 | Differentiate between system software and application software. | 2 |
| 26 | What is the output of the following code?for i in range(2,5): | 2 |
| 27 | Write a Python program that takes an integer as an input from the user and check whether a number is divisible by 3 and 5 both. OR Write a Python program that takes an integer input from the user and prints its table. | 2 |
| 28 | Find the Binary equivalent of (FACE)16. OR Draw the circuit diagram of the following expression: X’Y’Z’ + XY + (XY)’ | 2 |
Section C (3 × 3 = 9 Marks)
| Q. No. | Question | Marks |
|---|---|---|
| 29 | Write a Python program that takes an integer input from the user and checks whether the number is prime or not. OR Write a Python program that takes an integer n as input from the user and prints the first n terms of the Fibonacci series. E.g. If the user enters 5, the program should print: 0 1 1 2 3 If the user enters 8, the program should print: 0 1 1 2 3 5 8 13 | 3 |
| 30 | Prove the following identity using truth table: A · (B + C) = A · B + A · C OR Fill in the blanks: (a) ________ number system uses digits 0 and 1 only. (b) ________ memory is volatile in nature. (c) A ________ is a collection of instructions that tells a computer what to do. | 3 |
| 31 | Write a Python program to reverse the digits of a number. OR Write a Python program to find the largest of three numbers entered by the user. | 3 |
Section D (4 × 4 = 16 Marks)
| Q. No. | Question | Marks |
|---|---|---|
| 32 | State True or False: (i) Python is an example of a high-level programming language. (ii) ASCII can represent characters of multiple languages. (iii) In Python, // operator is used for floor division. (iv) In hexadecimal, the digit ‘F’ represents decimal 15. OR Fill in the blanks: (i) The component of CPU that controls the flow of data is ______. (ii) (123)8 = ( )10 (iii) ( )2 = (124)10 (iv) (AB)16 = ( )2 | 4 |
| 33 | Write a python program to print the following pattern using loops:* | 4 |
| 34 | Write a program in python to input the value of x and n and print the sum of the following series: x – x²/2 – x³/3 + x⁴/4 – … + xⁿ/n | 4 |
| 35 | Answer the following questions in one word/line. (i) Name one primary memory type. (ii) Expand KB, MB, GB. (iii) Which base is hexadecimal? (iv) Name a Python keyword. | 4 |
Section E (2 × 5 = 10 Marks)
| Q. No. | Question | Marks |
|---|---|---|
| 36 | (i) Write a program in python that accepts two numbers and swap them without using a third variable. (ii) Write a program in python that accepts a and b two integers and compute the greatest common divisor. | 5 |
| 37 | Partigya, a student of class 11 is designing a circuit diagram. Help her to get the output out of it at different stages. Circuit description: Input A → NOT gate → C Input B → NOT gate → D C and D → AND gate → E E → NOT gate → Z (i) What will be the output at C? (ii) What will be the output at D? (iii) What will be the output at E? (iv) What will be the output at Z? (v) A cooler should turn ON when the door is closed and the fan is ON. Which gate should be used? | 5 |
