0% found this document useful (0 votes)
337 views

COMPUTER SCIENCE CLASS XI QUESTION PAPER HY EXAM 2024-25

Uploaded by

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

COMPUTER SCIENCE CLASS XI QUESTION PAPER HY EXAM 2024-25

Uploaded by

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

1

DAV CENTENARY PUBLIC SCHOOL, HALDWANI


HALF YEARLY EXAMINATION (2024-25)
CLASS: XI
SUBJECT: COMPUTER SCIENCE
Time Allowed: 3 Hours Max. Marks: 70
General Instructions:
 This question paper contains 37 questions.
 All questions are compulsory.
 The paper is divided into 5 Sections- A, B, C, D and E.
 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.
 In case of MCQ, text of the correct answer should also be written.
Q.No Section-A (21 x 1 = 21 Marks) Marks
1 Arithmetic and logic unit along with control unit of a computer, 1
combined into a single unit is known as:
(a)Central processing unit (b)memory unit
(c)I/O unit (d)Operating system
2 Operating system is an example of : 1
(a)Application software (b)System software
(c)Utility program (d)None of these
3 The value of radix(base) in octal number system is _________ 1
(a)2 (b)8 (c)10 (d)16
4 The decimal number equivalent to following binary number is: 1
(100101)2 = ________
5 Convert (56)10 to Binary number. 1
6 Write full form of ASCII and ISCII. 1
7 Python is a/an _________language. 1
(a)High level (b)Object oriented (c)Procedural
(d)Low level
8 Python code can run on a variety of platforms, it means Python is a 1
____________language.
(a)Graphical (b)Cross platform (c)independent
(d)All of these
9 Python programs are typed in 1
2

(a)Interactive mode (b)Script mode


(c)Boot mode (d)None of these
10 You don’t have to pay for Python and you can view its source code 1
too. It means Python is _________
(a)Free and open source (b)Freeware
(c)Licensable (d)Shareware
11 Special meaning words of Python fixed for specific functionality are 1
called_____________
(a)Identifiers (b)functions (c)Keywords (d)literals
12 To convert the read value through input( ) into a floating point 1
number, _______( ) is used:
(a)floating (b)float (c)int (d)integer
13 Fill in the blanks 1
Python is a ____________sensitive language.
14 What is the value of the expression 100//25? 1
(a)4 (b)4.0 (c)4.24 (d)None of these
15 In Python statement x = a + 5 – b; a and b are _______________. 1
(a)Operands (b)Expression (c)Operators (d)Equation
16 The order of statement execution in the form of top to bottom, is 1
known as ______________construct.
(a)selection (b)repetition (c)selection (d)flow
17 Negative index -1 belongs to ___________of string. 1
(a)first character (b)last character
(c)second last character (d)second character
18 Which of the following expressions evaluates to False? 1
(A) not(True) and False (B) True or False
(C) not(False and True) (D) True and not(False)
19 State True or False: 1
“In a Python program, if a break statement is given in a nested loop, it
terminates the execution of all loops in one go.”
Q20 and 21 are ASSERTION AND REASONING based
questions. Mark the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b)Both A and R are true and R is not the correct explanation for
A
(c) A is True but R is False
(d)A is false but R is True
20 Assertion(A): List is an immutable data type 1
Reasoning(R): When an attempt is made to update the value of an
immutable variable, the old variable is destroyed and a new variable is
created by the same name in memory.
3

21 Assertion(A): Comments are non-executable statements that enable 1


the users to understand the program logic.
Reasoning(R): They are basically statements used to put remarks. The
comments are used to explain the code and to make it more
informative for the users.
Section-B ( 7 x 2=14 Marks)
22 Select the possible output for the given code in Python. Write the 2
minimum value ‘e’ and maximum value ‘s’ can have.
import random
num = [‘one’, ‘two’,three’,‘four’, ‘five’, ‘six’, ‘seven’,’eight’, ‘nine’]
s=random.randint(2,5)
e=random.randint(4,5)
for k in range(s,e+2):
print (num[k], end=’@’)
a) two@three@four@ b) three@four@five@six@
c) five@six@seven@eight d) four@five@six
23 Match the following : 2
Column A Column B
(a)for (i)punctuator
(b)+ (ii)literal
(c) : (iii)operator
(d) 67 (iv)literal
24 Rewrite the following code after correcting the errors and underline 2
the corrections:

n=input(‘Enter a number’)
For k in range ( 2,20)
print( n/2)
25 Write a program to check the input number is even or odd. 2
26 Write a program to check the input number is positive or negative. 2
27 What will be the output of following code? 2
x, y = 2, 6
x, y = y, x + 2
print(x, y)
28 Differentiate between break and continue statements. 2
Section-C ( 3 x 3 = 9 Marks)
29 What are immutable and mutable data types? List immutable and 3
mutable data types of Python.
30 Input a string having some digits. Write a program to calculate the 3
sum of digits present in this string.
31 Write a program to find the sum of digits of an integer number, input 3
4

by the user.
Section-D ( 4 x 4 = 16 Marks)
32 (i)Rewrite the following code fragment that saves on the number of 4
comparisons.
if a==0:
print(“Zero”)

if a==1:
print(“One”)
if a==2:
print(“Two”)
if a==3:
print(“Three”)
(ii)Under what conditions will this code fragment print “water”?
if temp < 32:
print(“ice”)
elif temp < 212:
print(“water”)
else:
print(“steam”)
33 Rewrite the following code fragments using while loop: 4
(i)
min = 0
max = min
if num<0:
min=num
max=0
for i in range(min, max + 1):
sum += i
(ii)
for i in range(1,16):
if i%3 == 0:
print(i)
34 What is the output of the following code? 3+1=4
(i)
for i in range(4):
for j in range(5):
if i+1 ==j or j+i==4:
print(‘+’, end= ‘ ‘)
else:
print(‘*’, end= ‘ ‘)
5

print()
(ii)
for y in range(500,100, 100):
Print(“*”, y)
35 (i)Write a program to print Fibonacci series: 3+1=4
0 , 1 ,1, 2, 3, 5, 8, 13,21,………..upto n terms (n is input number)
(ii)Which method should we use to convert string “python
programming is fun” to “Python Programming Is Fun”?
(a)capitalize() (b)title() (c)istitle() (d)upper()
SECTION E (2 X 5 = 10 Marks)
36 Find the output of following: 5
(i)s1=”I enjoy working in Python”
x=s1.partition(“working”)
print(x)
(ii)s2=”I love Python”
a=s2.split()
print(a)
(iii)print(“*”.join(“HELLO”))
(iv) What will be the output of the following code snippet?
message= "World Peace"
print(message[-2::-2])
(v)What is the output of the following code?
str1=”Mission 999”
str2=”999”
print(str1.isdigit(), str2.isdigit())
37 (i)Consider the following string myAddress: 5
myAddress = “WAZ-1, New Ganga Nagar’, New Delhi”
What will be the output of following string operations:
(a)print(myAddress.lower()) (b)print(myAddress.count(‘New’))
(c)print(myAddress.index(‘Agra’))
(ii)Consider the following string mySubject:
mySubject = “Computer Science”
What will be output of the following string operations:
(a)print(mySubject[::-1])
(b)print(mySubject[:3] + mySubject[3:])

You might also like