Professional Documents
Culture Documents
Ahmedabad Region XI MS HY CS 2022-23
Ahmedabad Region XI MS HY CS 2022-23
Ahmedabad Region XI MS HY CS 2022-23
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
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= " ")
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)
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
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()
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)
******************
Page 7 of 7