Professional Documents
Culture Documents
Q.36 When does the else statement written after loop executes?
A. When break statement is executed in the loop
B. When loop condition becomes false
C. Else statement is always executed
D. None of the above
i=2
while True:
if i%3 == 0:
break
print(i)
i += 2
A. 2 4 6 8 10 … B. 2 4 C. 2 3 D. error
Q.1 (1B0.B0)16 The octal equivalent of the decimal number (417)10 is
Ans. (614)8
Q.2 Convert the hexadecimal number (1E2)16 to decimal.
Ans. (482)10
Q.3 Convert binary to octal: (110110001010)2 =?
Ans. (6612)2
Q.4 Add the binary numbers : 110101 and 101111 = 1100100
Q.5 Convert (FACE)16 to binary.
Ans. 110100100110
Q.6 1100001110 Convert the following (2C9)16 to decimal.
Q7. Convert these numbers to octal system number
(11100.1001)2
(111111)2 = (77)8
Q.8 Convert these numbers to binary system number
(5A.B)16 = 01011010.1011
(75.2)8= 111101.010
Q.9 Convert Decimal to Binary: (782)10
Q.10 Convert the following decimal numbers to equivalent octal numbers.
(a) (19)10 = 23 (b) (132)10=204
Q.11 Convert the following binary numbers to equivalent hexadecimal numbers.
(a) (10 1010)2 =2A (b) (1 1110 0110)2=1E6
Best of Luck... 1/8
Q12. Obtain the Boolean Expression for the logic circuit shown below:
Ans. Q= AB+BC(B+C)
Q.1 Q13 Principal of dual for the Boolean expression AB.(1+CD) is
1. AB+(1.CD)
2. (A+B)+(0.C+D)
3. (A+B).(0.C+D)
4. (A+B)+(1.C+D)
1. P = A+B.C
2. P = AB+C
3. P = A+B+C
4. P = ABC
Q.6 Obtain the Boolean Expression for the logic circuit shown below:
Q.7 Obtain the Boolean Expression for the logic circuit shown below:
1. Y = A + A’B
2. Y = A + AB
3. Y = A’ + AB
4. Y = A’(A+B)
a) mutable b) immutable
c) integer d) all of these
a) dictionary b) array
c) tuple d) list
Q.26 what will be the result of the expression ‘a’ and ‘x’ ? Ans. X
Q.27 what will be the result of the expression ‘False’ and False? Ans. False
Q.28 What keyword would you use to add an alternative condition to an if statement?
a. else if b. elseif c. elif
d. None of the above