Ahmedabad Region XI MS HY CS 2022-23

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

केंद्रीय विद्यालय संगठन, अहमदाबाद संभाग

KENDRIYA VIDYALAYA SANGATHAN, AHMEDABAD REGION

अर्धिावषधक परीक्षा 2022-23


HALF YEARLY EXAMINATION 2022-23
SET-1

SUBJECT: M.M.:
CLASS: XI TIME: 3 Hours
MARKING SCHEME
Q.N QUESTIONS MARK
O S

1 (a) 6
2 (b)(11,80)
3 (c) XOR
4 (b) for_is
5 (c) **
6 (b) OR
7 (d) /
8 (d)2345678
9 (d) Panda
10 (a) Interpreter
11 (a) Anti Virus
12 (c) Power Management
13 (a)Power On Self Test
14 AMERICAN STANDARD CODE FOR INFORMATION INTERCHANGE
15 All of above

16 (d)False True

17 (a) Both A and R are true and R is the correct explanation for A

18 (b) Both A and R are true and R is not the correct explanation for
A

19 1. 18
2. False

Page 1 of 7
20 for i in range(4, 20, 2):
if i%4==0:
print("Number is divided by 4")
else:
print("Number is not divided by 4”)
OR
T=30
for K in range(0,T) :
if k%4==0:
print (K*4)
else:
print (K+3)
(1/2 mark for each correction)
21 i.5457

ii.1010 0010 1111


22 The two types of RAM are SRAM and DRAM. The main difference
between SRAM and DRAM is that SRAM is a type of memory
chip that is both quicker and more energy-efficient than
DRAM. However, DRAM is a memory chip that can store more
data than SRAM but consumes more power
23 A truth table is a tabular representation of all the combinations
of values for inputs and their corresponding outputs

24 (22, 44, 66)

Page 2 of 7
25

Or
Enter n
Assign fact and I variable to 1
Use for loop for I upto n
Assign fact=fact*i
Increment value of I
Check loop if condition false
Print factorial
26

import math
Math.sqrt(2-4*z*z*y+4*y)

P+Q / (R+S)**4

|a+b|
Math.fabs(a+b)
27 l=[4,8,7,5,6,2,10]

Page 3 of 7
for i in range(-1,-m-1,-1):
print(l[i]*2,end= " ")

The output will be:


20 4 12 10 14 16 8

OR

28 a=0
b=1
print(a,"",b,"", end=" ")
c=a+b
while c<=50:
print(c,end=" ")
c=a+b
a=b
b=c
0 1 1 1 2 3 5 8 13 21 34

OR

29 subscript_list=[]
for i in range(len(l)):

Page 4 of 7
if l[i]!=0:
subscript_list.append(i)

print(subscript_list)

The output will be:


[0, 1, 3, 5]
30 for i in t:
if i%7==0:
print(i,"@",i)

or
for i in range(len(t)):
if t[i]%7==0:
print(t[i],"@",t[i])
21 @ 21
28 @ 28
31 i.remove 5

ii.index

iii.pop/del

iv.append

v.insert

OR

l= [35, 12, 16, 69, 26]


for i in range(len(l)):
if l[i]%2==0:
l[i]=l[i]+2
else:
l[i]=l[i]+1
print(l)

[36, 14, 18, 70, 28] 3mark

ii) False 1mark

iii)3 1 Mark

32 print(s[3:7]): Comp 5
print(s[14: ]): ience#@@@
print( s[ -2:-4:-1]): @@
print(s[ : : -1]): @@@#ecneicS retupmoC IX
print(s[-1]):@
33 Write a code to display following pattern 2+2
i) +1

Page 5 of 7
1
12
123

for i in range(1,4):
for j in range(1,4):
if(i>=j):
print(j,end=" ")
print()

ii) 1
23
456
k=1
for i in range(1,4):
for j in range(1,4):
if(i>=j):
print(k,end=" ")
k=k+1
print()

iii)break statement used in loop to terminate the loop.

34 i)Write a python program to enter string and count no.of 4


digits,no.of alphabet and no.of blank space present in the string.
(3 Mark)

s=input(“Enter a string : ”) ½ mark


a,d,sp=0,0,0 ½ mark
for i in s:
if i.isalpha(): ½ mark
a+=1
elif i.isdigit(): ½ mark
d+=1
else i.isspace():½ mark
sp+=1
print(“No. of alphabets:”,a)
print(“No. of digits:”,d)
print(“No. of Blank Spaces:”,sp)
for print ½ mark
(1 Mark)
ii)Go!Go!Go!

OR

s="madam"
if s==s[::-1]:
print("string is palindrome")
else:
Page 6 of 7
print("string is not plalindrome")

string is palindrome

ii)Error
35 4

F= wx’ + y’z
ii)
1 mark for writing combinations of inputs and equivalent
outputs for the each expression i.e. A + (B C) and (A +
B) (A + C).

OR
ii)

1 mark for writing combinations of inputs and equivalent


outputs for the each expression

******************

Page 7 of 7

You might also like