Professional Documents
Culture Documents
Hyderabad Region XI CS HY MS 2022-23
Hyderabad Region XI CS HY MS 2022-23
General Instructions
The question paper is divided into 3 sections – A, B and C
Section A, consists of 18 questions (1-18). Each question carries 1 mark.
Section B, consists of 7 questions (19-25). Each question carries 2 marks.
Section C, consists of 5 questions (26-30). Each question carries 3 marks.
Section D, consists of 2 questions (31-32). Each question carries 4 marks.
Section E, consists of 3 questions (33-35). Each question carries 5 marks
Internal choice is given to Q35.
Section -A
Each question carries 2 marks
Q. Question Marking Marks
No Instructi
ons
1. b.ROM 1 mark 1
for
correct
answer
2. a.RAM 1 mark for 1
correct
answer
3 b.AND 1 mark for 1
correct
answer
4 b)A’B’ 1 mark for 1
correct
answer
5 d.{Hello} 1 mark for 1
correct
answer
6 d)2.0 1 mark for 1
correct
answer
7 a)True 1 mark for 1
correct
answer
[1]
8 b)False 1 mark for 1
correct
answer
9 b)# 1 mark for 1
correct
answer
10 (a) foo+bar 1 mark for 1
correct
answer
11 (c) a,b,c = 1000, 2000, 3000 1 mark for 1
correct
answer
12 American Standard Code for Information 1 mark for 1
Interchange correct
answer
13 (d) print() function 1 mark for 1
correct
answer
14 Ans: 264 1 mark for 1
correct
answer
15 200KB, 1024 KB,20MB, 2GB 1 mark for 1
correct
answer
16 NOT gate 1 mark for 1
correct
answer
17 A+AB = A 1 mark for 1
correct
answer
18 c)Integer 1 mark for 1
correct
answer
19 Any two valid differences between RAM and 1 mark for 2
ROM. each valid
difference
20 ½ mark for 2
To=30
each
for K in range(0, To): correct
if K%4==0: answer
print(K*4)
else:
print(K+3)
[2]
21 Output12 2 marks 2
for correct
answer
22 Output 110 2 marks 2
108 for correct
106 answer
104
102
23 The variable, for which we can change the value is called a 1 mark for 2
mutable variable. each
Example- List, set correct
The variable, for which we cannot change the value is an answer
immutable variable.
Example- String, tuple
[3]
28 = . 3 marks 3
= + for correct
A B A+B A.B answer + .
0 0 0 1 1 1 0 1 1 1
0 1 1 0 1 0 0 1 1 0
1 0 1 0 0 1 0 1 1 0
1 1 1 0 0 0 1 0 0 0
29 1.abc 2. _a_ 3.FOR 4.true 5.python1 6. pqr ½ mark 3
for each
correct
answer
30 num = input("Enter a number: ") //Type casting 3 marks 3
missing. for correct
if (num % 2) = 0: // Should be “==” answer
print(num," is Even") #indentation
else:
print(num," is Odd")
[4]
33 a) (A+B). ( 2 marks 5
for
A B C A+B (A+B).( Boolean
0 0 0 0 1 1 0 expressio
n
0 0 1 0 1 1 0 3 marks
for truth
0 1 0 1 0 0 0
table
0 1 1 1 0 1 1
1 0 0 1 1 1 1
1 0 1 1 1 1 1
1 1 0 1 0 0 0
1 1 1 1 0 1 0
34 marks1= int(input("enter the marks in subject 1 ")) 5 marks
marks2= int(input("enter the marks in subject 2 ")) for
marks3= int(input("enter the marks in subject 3 ")) correct
marks4= int(input("enter the marks in subject 4 ")) answer
marks5= int(input("enter the marks in subject 5 "))
totalMarks=marks1+marks2+marks3+marks4+marks5
percentage=totalMarks*100/500
if (percentage>=85):
grade='A'
elif(percentage<85 and percentage>=75):
grade='B'
elif(percentage<75 and percentage>=50):
grade='C'
elif(percentage<50 and percentage>= 30):
grade='D'
elif(percentage>30):
grade='Reappear'
[5]
ii) # input number
inputNumber = 10
# checking whether the number modulus 2 is equal to 0
if inputNumber%2==0:
# printing even if the remainder is 0
print(inputNumber, "is an even number")
else:
# else printing odd
print(inputNumber, "is an odd number")
[6]