Professional Documents
Culture Documents
Xii CS Quarterly 2425 Ans
Xii CS Quarterly 2425 Ans
Xii CS Quarterly 2425 Ans
SECTION –A
Q Question Marks
No.
1. State True or False (R) (1)
Ans. True
2. Ans. (b) return (U) (1)
3. Ans. (b) Tup.insert (2, 3) (U) (1)
17. Ans. (a) Both (A) and (R) are true and (R) is the correct explanation (1)R
for (A).
Global variable:
1. It is variable which is declared outside all the function
2. It is accessible throughout the program
def cube(n):
cn=n*n*n
return
x=10
xcubed=cube(x)
print(x,”cubed is”, xcubed)
SECTION – C
26. def LShift(Arr,n): (3)
L=len(Arr)
(A)
for x in range (0,n):
y=Arr[0]
for i in rane90,L-1):
Arr[i]=Arr[i+1]
Arr[L-1]=y
Print(Arr)
COURIER_ADD()
COURIER_SEARCH()
SECTION – E
34. 300 @ 200 (4)
300 # 100
(A)
150 @ 100
300 @ 150
35. i) Statement 1: open ("Cust_file.dat", "wb") (1)(CB)
Note: 'ab' mode also be considered
iii)Statement 3: pickle.dump(c_detail,bin_file)
Statement 4: break (2)