Академический Документы
Профессиональный Документы
Культура Документы
(e) What do you mean by data types? What are Python's built- in data types? 2
Write one example for each.
(f) Convert the following binary number into decimal number 2
i) 1001010 ii) 10011001010
Q.3 (a) What is the difference between equality (==) and = operator? 2
(b) Reema is confused between 3*2 and 3**2. Help her to know the 2
difference between the two expressions.
(c) What is the difference between implicit and explicit type conversion? 2
(d) What will be the output produced by the following code- 3
A, B, C, D=9.2, 2.0, 4, 21
print(A/4)
print(B**C)
print(A%C)
(e) Write following arithmetic expressions using operators in Python: 4
𝑎+𝑏
(i) c= (ii) x = a3 + b3+ c3
2𝑎
2 −𝑏±√𝑏 2 −4𝑎𝑐
(iii) A = π r(r+h) (iv) x =
2𝑎
(f) Write a program to get input from user and calculate EMI as per given 3
formula: E=PR(1+R)n / ((1+R)n -1)
Where-
E=EMI, P=Principal amount, R=Rate of interest, n=tenure of loan in
months
Q.4 (a) Identify following from given devices:- 3
i. Input Devices, ii. Output Devices & iii. Memory Devices:-
VDU, RAM, Scanner, MICR, COM, Cache, Speaker, TFT, Pen Drive,
Register, Laser Printer, ROM, Touch Screen, Digital Camera.
(b) Predict the output of the following code fragment- 2
x=1
if x>3:
if x>4:
print(“A”, end=’ ‘)
else:
print(“B”, end=’ ‘)
elif x<2:
if (x!=0):
print(“C”, end=’ ‘)
print(“D”)
Page 2 of 2