XI CS MS Set1
XI CS MS Set1
Q. NO QUESTION MARKS
SECTION A
1 False 1
2 c. -244.0 1
3 a. MS OFFICE 1
4 c. 1 = t 1
5 d. float 1
6 c. XOR 1
7 b.2two 1
8 c.i 1
9 b. ! 1
10 d. Hi#Bye% 1
11 c. [2,3] 1
12 a.XOR 1
13 c.1101 1
14 a. harasht 1
15 c.split() 1
(ii) L.append(9)
20 GOOD 2
OR
22 To = 30 2
for K in range(0, To):
if K%4 == 0:
print(K*4)
else:
print(K + 3)
23 i. 0.25 GB 1x2=2
24 A’B + B’A 2
25 s = input(“Enter a string”) 2
t = ()
L = s.split()
for word in L:
t = t + (len(word),)
print(t)
SECTION C
26 i. 2+1 = 3
Control unit
Arithmetic Logic
Unit
Registers
Memory Unit
28 S = input(“Enter a String”) 3
count_digit = 0
count_hash_dollar = 0
for ch in S:
if ch.isdigit():
count_digit += 1
elif ch in ‘#$’: #OR ch in [‘#’,’$’] OR (ch == ‘#’) or (ch == ‘$’)
count_hash_dollar += 1
print(‘No of Digits - ’, count_digit)
print(‘No of # or $ -’, count_hash_dollar)
29 n = int(input("Enter a number")) 3
for i in range(2, n//2+1):
if n % i ==0:
print("Not Prime")
break
else:
print("Prime")
30 2 3
8
2
SECTION D
(iii) False
OR (iii) If you can dream it, you can do it.If you can dream it, you can do
it.
(iv) ['If', 'you', 'can', 'dream', 'it,', 'you', 'can', 'do', 'it.']
SECTION E
33 (i) Statement 1: int(input(“Enter a Number”)). 1x5 = 5
(ii) Statement 2: range(2,num+1)
(iii) Statement 3: Fib[i-1]
(iv) Statement 4: a0 + a1
(v) Statement 5: append
34 i. IGITAL *NDIA23134 3+2 = 5
ii.
In
di
a
is
B
ea
ut
if
ul
35 i. print(L.count(10)) 1x5 =5
ii. max(L)
iii. print(sum(L))
iv. L.sort()
v. L.remove(50)