Page 1
2023-24
HALF YEARLY
EXAM
NCERT BASED
SYLLABUS
DOWNLOAD PDF
FOR
CBSE BOARD
AND
STATE BOARDS
Page 2
Half Yearly Exam 2023-24
Question Paper
Class - XI Subject – Computer Science
Time – 3 Hours Maximum Marks - 70
General Instructions:
(i) This question paper contains five sections, Section A to E.
(ii) All questions are compulsory.
(iii) Section A has17 questions carrying 1 mark each.
(iv) Section B has 6 Very Short Answer type questions carrying 2 marks each.
(v) Section C has 6 Short Answer type questions carrying 3 marks each.
(vi) Section D has 3 long Answer type questions carrying 5 marks each.
(vii) Section E has 2 questions carrying 4 marks each.
(viii) All programming questions are to be answered using Python Language only.
SECTION-A
1. Which of the following falls under utilities? [1]
(a) Text editor (b) Backup (c) Disk defragmenter (d) All of these
2. Which of the following memory types will store data or information permanently? [1]
(a) RAM (b) Cache (c) Hard disk (d) All of these
3. ______ is capable of recognizing a pre-specified type of mark made with dark pencil or ink. [1]
(a) OCR (b) OMR (c) MICR (d) Bar Code Reader
4. Convert (43)10 into binary number system: [1]
(a) (101011)2 (b) (110011)2
(c) (110101)2 (d) (110010)2
5. Which numbering system uses numbers and letters as symbols? [1]
(a) Decimal (b) Binary (c) Octal (d) Hexadecimal
6. The expression of NAND gate is _________ [1]
(a) A.B (b) A’B+AB’ (c) (A.B)’ (d) (A+B)’
7. Python language is _______________ [1]
(a) Free (b) Open Source (c) Free & Open Source (d)Proprietary
8. What will be the output of the following snippet? [1]
x,y=2,6
x,y=y,x+2
print(x,y)
(a) 6 6 (b) 4 4 (c) 4 6 (d) 6 4
1
Page 3
9. Evaluate the following expressions: [1]
16-(4+2)*5+2**2**2
(a) 2 (b) -2 (c) 0 (d) 32
10. Identifier name cannot be composed of special characters other than…………. [1]
(a) # (b) Hyphen (-) (c) $ (d) Underscore (_)
11. Which of the following is/are not legal string operators? [1]
(a) in (b) + (c) * (d) /
12. Which of the following functions will return the last three characters of a string s? [1]
(a) s[3:] (b) s[:3] (c) s[-3:] (d) s[:-3]
13. Which method should I use to convert String “Python programming is fun” to “Python [1]
Programming Is Fun”?
(a) capitalize() (b) title() (c) istitle() (d) upper()
14. Guess the correct output of the following string operation. [1]
str1=’Wah’
print(str1*2)
(a) WahWah
(b) TypeError: unsupported operand type(s) for * : ‘str’ and ‘int’
(c) WWaahh
(d) Wah2
15. Write the output of the following: [1]
a=”Blog”
a=”a”
print(a)
(a) Error (b) Blog (c) a (d) Bloga
16. Assertion (A): The range() function is used with the for loops only. [1]
Reason (R): It is a built in function that accepts three parameters viz. initial value. Stop
value, update. By default, the initial and update values are 0 (zero) and 1 (one) respectively.
Based on the above discussion, choose an appropriate statement from the options given
below:
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true and Ris not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
(e) Both A and R are false.
17. Assertion (A): The process of repeating a set of elements in a string is termed as replication.
Reason (R): This task is performed using (*) operator along with a number that specifies the [1]
number of replications.
Based on the above discussion, choose an appropriate statement from the options given
below:
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true and R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
(e) Both A and R are false.
2
Page 4
SECTION-B
18. Draw a circuit diagram corresponding to the following Boolean expression: [2]
P.Q’+P’.R
19. What is comment in python? How will you write comment in python? [2]
20. Write any two advantages and any two limitations of python. [2]
OR
What do you mean by break and continue statement in python? Explain with an
example.
21. Write a program to generate Fibonacci series upto n terms. [2]
22. Predict the output of the following codes: [2]
a=1
s=0
while (a<=10):
n=int(input(“enter a number:”))
s=s+n
a=a+3
if(a==4):
continue
print(s)
when n=5,10,15,20
23. Write a program to enter a character and display if it is an uppercase character, [2]
lowercase character, digit or special character.
SECTION-C
24. What do you mean by operating system? Explain any four functions of an operating [3]
system.
25. State De Morgan’s law and prove it with a truth table. [3]
26. Explain the following terms: [3]
(a) keywords (b) Identifiers (c) implicit conversion
27. Write a program to perform the following task according to the user’s choice using [3]
menu.
(a) Area of circle
(b) Area of rectangle
(c) Circumference of circle
28. Write a python code to enter a sentence. Frame a word by joining all the first characters [3]
of each word of the sentence. Display the word.
Sample Input: Read Only Memory
Sample Output: ROM
29. Write a python code to input a number and check whether it is a prime number or not. If [3]
it is not a prime then display the next number that is prime.
Sample Input: 14
Sample Output: 17
3
Page 5
SECTION-D
30. (i) Convert the following hexadecimal numbers to decimal: [5]
(a) B6 (b) A13D
(ii) Convert the following hexadecimal numbers to octal:
(a) 28AC (b) 4FD6
(iii) Convert the following binary numbers to octal:
(a) 100111011 (b) 1110100111
(iv) Convert the following decimal numbers to binary:
(a) 1265.25 (b) 766.75
(v) Add the following binary numbers:
(a) 1011011 and 1100101 (b) 1110, 11011 and 10110
31. (i) Write a programme to enter a number and check whether it is Armstrong number [2+3]
or not.
(ii) Write a program to find the sum of the geometric series given below:
S=a+ar+ar2+ar3+ar4+……………………arn
32. (i) Write a program to enter a string and check whether it is palindrome or not. [2+3]
(ii) Write a program that reads a string and displays the longest substring of the given
string.
SECTION-E
33. Consider the string str1=”Global Warming”. [4]
Write statements in python to implement the following :
(i) To display the last four characters.
(ii) To replace all the occurrence of letters ‘a’ in the string with “*”.
(iii) Change the case of each letter in string str1.
(iv) Whether ‘b’ exists in string str1 or not.
34. Predict the output of the following codes:
(i) val = 10
total = 0
for count in range (1,val,3):
total = total + count
if count % 2 = = 0:
print (count * 10)
else:
print (count)
print (total)
(ii) a,b=1,10
while a<b:
print(a*a,b)
a=a+1
b=b-1
4
AglaSem Earn while Learn Program. Send your papers and get paid.
Contact: support@
Page 6
QUESTION PAPERS
GET PREVIOUS YEAR QUESTION PAPERS FOR ALL CLASSES FOR CBSE, ISCSE, ISC AND ALL ALL
STATE BOARDS HERE AT
Andhra Pradesh Board Question Papers
BOARD
WISE Assam Board Question Papers
Bihar Board Question Papers
Chhattisgarh Board Question Papers
Goa Board Question Papers
Gujarat Board Question Papers
Haryana Board Question Papers
Himachal Pradesh Board Question Papers
J&K State Board Question Papers
Jharkhand Board Question Papers
Karnataka Board Question Papers
Kerala Board Question Papers
Madhya Pradesh Board Question Papers
Maharashtra State Board Question Papers
Manipur Board Question Papers
Meghalaya Board Question Papers
Mizoram Board Question Papers
Nagaland Board Question Papers
Orissa Board Question Papers
Punjab Board Question Papers
Rajasthan Board Question Papers
Tamil Nadu Board Question Papers
Telangana State Board Question Papers
Tripura Board Question Papers
Uttarakhand Board Question Papers
Uttar Pradesh (UP) Board Question Papers
West Bengal (WB) Board Question Papers