Вы находитесь на странице: 1из 1

12 Computing and Binary Operations

s
1. The WHILE-DO control structure executes the loop 4. What is the octal equivalent of binary number
at least 111001 [DCE 1999]
[DCE 1995] (a) 69 (b) 70
(a) Thrice (b) Twice
(c) 71 (d) 82
(c) Once (d) None of these
2. The control structure IF-THEN is a 5. The identity element for the binary operation *
[DCE 1994]
ab
(a) Multiple selection (b) Double selection defined by a * b = , a, b  Q0 (the set of all
2
(c) Single selection (d) None of these
non-zero rational numbers) is
3. 74.1875 in binary is [DCE 2001]
(a) 10010010.0011 (b) 1001010.0011 (a) 1 (b) 0
(c) 1001010.0101 (d) 1001100.0101 (c) 2 (d) None of these

(SET - 35)

1. (d) It is obvious. 4. (c) (111001)2 =


2. (c) It is obvious.
3. (b) For integral part 1 1 1 0 0 1
2 74 
2 37 0 1 × 22 + 1 × 2 1 + 2 0 0 × 22 + 0 × 21 + 1 ×
0
2 18 1 2
2 9 0 7 1
2 4 1
= (71)8.
2 2 0
5. (c) Let e be the identity element for the binary
1 0
ab
1 operation * on Q0 defined by a * b 
2
= (1001010)2
For fractional part
Then, a * e  a  e * a for all a Q0
0.1875 ae
  a for all a Q0
 2 2
0.3750
 2  e  2.
= (0.0011)2
0.7500
 2
1.5000
 2
1.0000

Therefore 74.1875 in binary is


(1001010.0011)2.

***

Вам также может понравиться