MS Ip Set I 2022
MS Ip Set I 2022
MS Ip Set I 2022
1 (iv) Plotter 1
3 (ii) Compiler 1
5 (iii) Cross-platform 1
6 (iv) 1991 1
8 (iv) 2022Project 1
9 (iii) > 1
10 (iv) 1 1
11 (iii) 20.0 1
12 (i) int(c/3) 1
13 (ii) True 1
14 (iii) 5 1
15 (iv) 5,8,11,14 1
16 (ii) 50 1
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the
correct choice as
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True
Page 1 of 4
17 (ii) Both A and R are true and R is not the correct explanation for A 1
18 (i) Both A and R are true and R is the correct explanation for A 1
SECTION B
19 Free software always being free and proprietary software a paid product. 2
Suitable examples
OR
RANDOM ACCESS MEMORY
READ ONLY MEMORY
RAM is a volatile storage medium to store the information, whereas ROM
is a non-volatile storage medium to store the data.
x=100
if x<y:
print(“x is smaller than y”)
else x>y:
print(“x is not smaller than y”)
SECTION C
26 i. L.append(10) 3
ii. L.sort(reverse=True)
iii. L.pop()
Page 2 of 4
27 Append: 3
Adds an element at the end
List.append(10)
Extend:
Adds more than one element in the form of list
List.extend(List1)
L.clear()
28 D={} 3
for i in range(10):
Name=inpur(“ENTER NAME”)
Contact=int(input(“ENTER CONTACT NUMBER:”))
D[Name]=contact
29 l= int(input(“enter length:”)) 3
b= int(input(“enter breadth:”))
area=l*b
peri=2*(l+b)
print(area)
print(peri)
OR
n=int(input(“enter a number”))
s=n**2
c=n**3
print(s)
print(c)
30 n=int(input(“enter a number”)) 3
for i in range(1,11):
print(n,’*’,i,’=’,n*i)
OR
n=int(input(“enter a number”))
sum=0
for i in range(1,n+1):
print(i)
sum+=i
print(sum)
SECTION D
31 i. 10 5
ii. 654
iii. 511
iv. [15, 79, 64, 79]
v. [99, 486, 654, 44, 55]
OR
i. index() returns index of element
ii. sorted() Returns elements in sorted form
iii. min() Finds smallest element from list
iv. count() Returns occurrence of an element from list
v. remove() To delete element with value
32 i. D.keys() 5
ii. D.values()
iii. len(D)
Page 3 of 4
iv. D[6]
v. del D[10]
33 i. Predict the output of following code. (2 Marks) 5(2+3)
11
14
12
20
ii. n=int(input(“enter a number”))
f=1
s=2
print(f,s)
for i in range(n-2):
t=f+s
print(t)
f,s=s,t
OR
i. HELLO
HI
SEE YOU AGAIN
ii. for i in range(5):
for j in range(i+1):
print(“#”, end=’ ‘)
print()
SECTION E
34 1+1+2
i. pass statement is empty statement of python which does
nothing.
ii. Control move out of loop
iii. No, Only executes when for loop executes completely.
OR (For iii only)
STATEMENT 2 gets executed once.
35 For a given dictionaries D1 and D2. 1+1+2
D1={1:’ONE’,2:’TWO’,3:’THREE’,4:’FOUR’,5:’FIVE’}
D2={5:’FIVE’,6:’SIX’,7:’SEVEN’,8:’EIGHT’,9:’NINE’}
Answer the following questions.
i. [1:’ONE’,2:’TWO’,3:’THREE’,4:’FOUR’,5:’FIVE’]
ii. 5
iii. {1:’ONE’,2:’TWO’,3:’THREE’,4:’FOUR’,5:’FIVE’,
6:’SIX’,7:’SEVEN’,8:’EIGHT’,9:’NINE’}
OR (For iii only)
NO, Dictionaries are unordered
******************
Page 4 of 4