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

XI_HY_PAPER

Uploaded by

no1adampur
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)
48 views4 pages

XI_HY_PAPER

Uploaded by

no1adampur
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/ 4

K.

V NO1 BANBASA CANTT


CLAS XI (CS) ,HALF YEARLY EXMINATION(2024-25)
Note:- Attempt all the questions
This question paper contains 05 sections (A,B,C,D AND E)
Que Question Marks
no
SECTION A ( 1 x 21=21)
Q1 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.”
Q2 What will be the output of the following statement: 1
print(3-2**2**3+99/11)
(a)244 (b)244.0 (c) -244.0 (d) Error
Q3 Select the correct output of the code: 1

Q4 Consider the statements given below and then choose the correct output from the given options: 1
pride="#G20 Presidency"
print(pride[-2:2:-2])
a. ndsr b. ceieP0 c. ceieP d. yndsr
Q5 Which of the following statement(s) would give an error during execution of the following 1
code?
tup = (20,30,40,50,80,79)
print(tup) #Statement 1
print(tup[3]+50) #Statement 2
print(max(tup)) #Statement 3
tup[4]=80 #Statement 4
Options:
a. Statement 1 b. Statement 2 c. Statement 3 d. Statement 4
Q6 What possible outputs(s) will be obtained when the following code is executed? 1
Options
(a)RED * (b)WHITE* (c)WHITE*WHITE* (d)YELLOW*
WHITE* BLACK* BLACK*BLACK* WHITE*WHITE*
BLACK* BLACK*BLACK*BLACK*
Q7 Predict the Output of following Python Code. 1
for P in range(2,9,7):
print(P * " #")
(A) Error (B) P*# # (C) 2 # # (D) # #
Q8 Which of following is not a valid variable name in Python? 1
(A) Dream11 (B) Dream_11 (C) 11Dream (D)
_Dream11
Q9 Select the Correct output of the following code 1
S=”Amrit Mahotsav @ 75”
A=S.partition(“ “)
print(A)
(a)(“Amrit Mahotsav”,”@”,”75”) (b)[“Amrit”,”Mahotsav”,”@”,”75”]
(c)(“Amrit”, “Mahotsav @ 75”) (d (“Amrit” ,” “, “Mahotsav@75”)
Q10 Consider the statements given below and then choose the correct output from the given options: 1
G=”Vasudhaiva Kutumbakam"
print(G[-4::-2])
amtKaihu b. amtK ihua c. amtKaihua d. amtkaihua
Q11 Which of the following statement(s) would give an error during execution of the following 1
code?
Str1 = “Kendriya Vidyalaya Sangathan”
print(Str1.upper()) #Statement 1
Str1[7]=’e’ #Statement 2
Str1.index(‘Kend’) #Statement 3
Str1.find(‘Sung’) #Statement 4
Options:
a. Statement 1 b. Statement 2 c. Statement 3 d. Statement 4
Q12 Consider the following statements and choose the correct output from the given options : 1
EXAM="COMPUTER SCIENCE"
print(EXAM[:12:-2])
a) EN b) CI c)SCIENCE d) ENCE
Q13 Select appropriate operator to calculate reminder (modulus)from the following: 1
a) / b)// c)% d)Both a) & b)
Q14 11Jatin wants to terminates the while loop at the end of program. Suggest him a suitable 1
keyword from the following:
a) terminate b)continue c)break d)stop
Q15 The physical components of computer system are known as 1
b) Software b)Humanware c)Hardware d)Operating System
Q16 Bhojo is designing a digital circuit he is using a gate which is producing output 0 when all the 1
inputs are HIGH. Which gate Bhojo is using??
(a)NAND (b)NOT (c)AND (d) OR
Q17 Which of the following expression will result in an error 1
a) ‘3’ * 3 (b) (3) * 3 (c) [3] * 3 (d) {3:3} * 3
Q18 In the combination of following gates the output Y can be written in the terms of Input A and B 1
as
(a)A’.B’ (b)A.B’ + A’.B (c) A’ + B’ (d) none of the above
Q19 Npandiyan Class XI student he is designing a logic circuit , his logic circuit design which is 1
given below is giving output similar to a logic gate ,please help him, his logic circuit design
output is similar to which gate output.

(a)NAND gate (b)NOR gate (c)OR gate (d)AND gate


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
Q20 Assertion (A): Strings in Python are mutable. 1
Reason (R): The first character has the index 0 and the last character has the index n-1 where n
is the length of the string.
Q21 Assertion(A): Comments in the python start with the hash character, #, and extend to the end of 1
the physical line
Reason(R): Comments are interpreted and shown on the output screen.
SECTION B (7 x 2=14)
Q22 Draw logic circuit for following expression: 2
(A+B)’. (B’+C)
Q23 Which function is used for following 2
(a)to check the data type of any variable (b) to check ASCII value of any character
Q24 Radhika Manchandani is a computer programmer , she has written a python code given below, 2
when she is running the code it’s showing error ,help Radhika to remove the errors from the
code, underline them and write the correct code.
num1, num2=20,30
For I in range(1,10):
if I % 2 =0:
num1=+20
else
num2+=10
Q25 (a)Consider the following list and find the output 2
L1=[“Aman”, ”Ankit”, “Ashish”, “Rajan”, “Rajat” ]
print(L1[-1 :-4 :-1]
(b) Consider the following tuple and find the output
T1= (10,20,30, (10,20,30),40)
Print(T1.index(20))
Q26 Bhojo has visited a post office for send letter via speed post, He saw the printer which is 2
printing the slips have impact over the slips and the printer head is moving from one end to
another ,but the printer he has at his home have no head movement, What types of printers has
Bhojo seen and does he have?. Differentiate point wise these two printer.
Q27 Prgyan is Student of Class XI CS ,he has complete the topic about OS ,now he want to know 2
the features of OS, help Prgyan about any four features of OS
Q28 As a computer science student aspiring to build a career in technology, You have noticed that 2
when you save a file or folder on my computer, it gets stored in a specific location or drive.
Similarly, when you open a file or folder, it loads and becomes accessible. How does data
travel within the system? What are the components or mediums involved in transferring data
between the CPU, hard disk, and RAM?"
SECTION C (3 x 3 =9)
Q29 Predict the output of the Python code given below: 3
str='Half Yearly Exam'
text='' “
x=range(len(str)-1)
for i in x:
if str[i].isupper():
text+=str[i]
elif str[i].islower():
text+=str[i+1]
else:
text+='@'
print(text)
Q30 Convert the following numbers from one base to another 3
(a) (100101)2 = ( )10 (b) (79)10 = ( )2 (c) (345.24)10 = ( )2 (d) (A35)16 =( )8
(e)(ABCD.AB)16 =( )2 (f)(101111011110 . 10001)2= ( )16
Q31 Write a program to print table of a number in this format 3
5 * 1= 5
SECTION D (4 x 4=16)
Q32 Write a program to enter marks of 5 subject of your choice and calculate total and percentage, 4
calculate and print grade of a student as per percentage criteria given below:-

Percentage range Grade


More than or equivalent A
90
More than 80 B
More than 60 C
More than 50 D
More Than 33 E
Less than 33 F
Q33 Write a program to check whether an integer number input by a user is prime or not? 4
OR
Write a program to input an integer value and display it in reverse order.
Q34 Write a program that takes any two lists L and M of the same size and adds their elements 4
together to form a new list N whose elements are sums of the corresponding elements in L and
M. For instance, if L = [3, 1, 4] and M = [1, 5, 9], then N should equal [4,6,13].
Q35 Rini has define a tuple t1=(56,48,35,89,6478,65), now Rini wants to change the value of tuple 4
in odd index by adding 10 and in even index want to half the value. As a python programmer
help Rini to achieve this task.
SECTION E (5 x 2=10)
Q36 Consider the following list L=[13,18,20,10,18,23] Write python statements to perform 5
(a) Count number of times the value 18 is repeating
(b) Arrange values in descending order
(c) Remove the last element
(d) Insert 15 at index position 3
(e) change the value of third index value by 50
Q37 N.RAMAN is a Student of Class XISci, he has created a following dictionary 5
d1={1:”Apple”,2:”Mango”,3:”Gauva”,4:”Orange”,5:”grapes”,6:500,7:60}
N.RAMAN is not able to perform the following task in dictionary, as Pyhton expert please
assist him.
1.N.RAMAN wants to change the value mango to jack fruit
2.N.RAMAN want to get Keys and values separately, what statement should he write.
3. He wants to add a new key value, pair key-“kv” and value-“Banbasa”
4.He wants to delete key value pair whose key is 3
5.He wants to check whether key 4 is in the dictionary or not.

You might also like