0% found this document useful (0 votes)
402 views4 pages

Class-Xi 2023-24 Midterm Computer Science

The document is a midterm examination paper for Class 11 Computer Science at Delhi Public School (Joka), South Kolkata, covering various topics in computer science. It consists of 39 questions divided into five sections, with multiple-choice questions, short answer questions, programming tasks, and theoretical questions. The exam is designed to assess students' understanding of computer science concepts and Python programming skills.

Uploaded by

Bhandary Atanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
402 views4 pages

Class-Xi 2023-24 Midterm Computer Science

The document is a midterm examination paper for Class 11 Computer Science at Delhi Public School (Joka), South Kolkata, covering various topics in computer science. It consists of 39 questions divided into five sections, with multiple-choice questions, short answer questions, programming tasks, and theoretical questions. The exam is designed to assess students' understanding of computer science concepts and Python programming skills.

Uploaded by

Bhandary Atanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DELHI PUBLIC SCHOOL (JOKA) SOUTH KOLKATA

MIDTERM EXAMINATION
2023 - 2024
Subject : Computer Science(083) Time : 3 Hours
Class : 11 Max. Marks: 70

Name : ___________________________Roll No.: ______ Invigilators Signature _______________

GENERAL INSTRUCTIONS :

 All questions are compulsory.


 Please check that this question paper contains 4 printed pages.
 The question paper consists of 39 questions divided into four sections A, B, C, D & E
 Section A contains 18 questions of 1 mark each. Students should write the correct option number
along with the answer too.
 Section B contains 6 questions of 2 marks each.
 Section C contains 6 questions of 2 marks each.
 Section D contains 5 questions of 4 marks each.
 Section E contains 4 questions of 2 marks each.

Section A
Multiple Choice Questions: [1X18=18]

1. Which one of the following components is used to only read data?


a) ROM b) RAM c) Hard Drive d) Cache Memory
2. Which of the following is not a valid encoding scheme for characters?
a) ASCII b) ISCII c) Unicode d) ESCII
3. Escape sequences are treated as __________________.
a) Strings b) Characters c) integers d) None of these
4. Python relational operator yields the result in _______________ data type.
a) Integer b) Float c) String d) Boolean
5. Which of the following statements will make a repetition construct in Python?
a) if b) if-else c) for d) do-while
6. Which of the following functions will return the total number of characters in a string?
a) count ( ) b) index ( ) c) len ( ) d) All of these

1
7. Arithmetic and logic unit along with control unit of a computer, combined into a single
unit, is known as ________________.
a) Central Processing Unit b) System Unit c) I/O Unit d) Operating Unit
8. Which of the following is not a valid symbol in octal number system?
a) 2 b) 8 c) 5 d) 7
9. Which of the following symbol is used to mark as a single comment line in Python?
a) % b) @ c) * d) #
10. Which of the following is not an immutable type in Python?
a) String b) Tuples c) Number d) List
11. The ____________ construct repeats a set of statements a specified number of times as
long as a condition is true.
a) Selection b) Iteration c) Sequence d) Flow
12. Which of the following is membership operator in python?
a) in b) + c) = d) is
13. A disk defragmenter is an example of ______________.
a) Application software b) System software c) Utility program d) none of these
14. The value of radix in hexa-decimal number system is ______________.
a) 2 b) 8 c) 10 d) 16
15. To convert the real value through input ( ) into a floating point number, ____________ ( )
is used.
a) floating b) float c) int d) floor
16. Which python built-in-function returns the unique number assigned to an object?
a) identity() b) id() c) refnum() d) ref()
17. An empty/null statement in Python is _______________.
a) go b) pass c) over d) ;
18. Which of the following is not a valid loop in Python?
a) for b) while c) do–while d) all are valid

Section B

Answer the following questions: [2X6=12]


19. Convert (78B) 16 = (?)8
20. Find the complement of the Boolean expression: A + ( B + C)
21. Differentiate between Interactive & Script mode in Python.
22. Give the Classification Chart of Python-data type.
23. What is the difference between break and continue with respect to Python loop?
24. What is the difference between find() and index() with respect to Python string?
(Provide one suitable simple example for question number 23 and 24 each)

2
Section C
Answer the following as directed: [2X3=6]

25. Evaluate and justify the output of the following print statement:
print(False and 1==1 or not True or 1==1 and False or 0==0)

26. Write the output of the following code segment:


a. true = False
while True:
print(True)
break

b. x= "and" * (3+2) > "or" + "4"


print(type(x))

27. Write the output of the following code segment:


a. s= “Mummy?Papa?Brother?Sister?Uncle”
print(s.split())

b. for i in “JAVA”:
print(i in “JAVA”)

Answer the following: [2X3=6]


28. Add a pair of parentheses to each expression so that it evaluates to True.
a. 0 == 1 == 2
b. 2 + 3 == 4 + 5 == 7

Find (underline) and correct the error from the following codes: [Qtn 29 & 30]
29. a, b = 0
if (a = b)
a +b = c
print( z)

30. a = bool (0)


b = bool (1)
print (a == false)
print (b ==true)

3
Section D
Write down the following programs using Python programming language. [4 X 5=20]

31. Write a program which will take a range from user and find out all the palindrome
number within that range. [Do not convert any number into string for processing]
Ex. If the range is : 100 and 150
Output : The palindrome numbers are: 101, 111, 121, 131, 141
(Palindrome numbers means “the reverse of the number is equal to the number itself)

32. Write a program to print the sum of the following series without using any in-built
operator or any in-built function. [Hint: Use the concept of loop]
S=x-x2+x3-x4+x5-x6………up to xn
(Where x and n will be the user input and positive integers)
33. Write a program which will accept a string from user and print the same in the
following pattern:
If the string input is: “Python String Program”, then the out will be as follows:
Python
Python String
Python String Program

34. Write a program which will take a decimal number as input and display the equivalent
binary number.
e.g.: Enter Decimal Number: 18
Binary is: 10010
(Fractional part is ignorable)

35. Write a program that reads a line as string and print the smallest word within it.
e.g. : Input string : “Hello Python do you know me?”
Output : “Smallest word is: do”

Section E

Write down the answer of the following questions. [4X2=8]


36. Distinguish between SRAM and DRAM.
37. Give one example of each of implicit and explicit type casting in python programming.
38. What are literals in Python program? How many types of literals are there in python?
39. What will be the output of the following expressions when s= “python”?
a. print((s[:]+s[: : -1]))
b. print((s[:]+s[: : -1])[: : -1].split("nn"))
4

You might also like