| |
GeekInterview.com > Placement Papers > Cognizant
| Print | |
Question: Binary Numbers (5 Questions) In a certain code, the symbol for 0 (zero) is. * and that for 1 is $. The numb.:rs greater than 1 are to be written only by using the two symbols given above. The value of the symbol for 1 doubles itself every time it shifts one place to the left. (For example, 4 is written as $**; and; 3 is written as $$)
(6) 260 can be represented as: A) $****$** B) $$*$$$$$ C) $$*$$$$** D) $*****$**
(7) 60 / 17 can also be represented as: A) $$$*$*** / $$**$$ B) $$$***** / $$**$$ C) $*$$*$** / $$**$$ D) $$*$*$** / $$**$$
(8) $***$ can be represented as: A) $$$ / $* B) $*$**- $$ C) $*$*$- $$ D) $$$***$ - $$
(9) 30^2 can be represented as: A) ($$*$$ ) $*+ $*$*$$*$ B) ($$*$$ ) $* + $$****$ C) ( $$*$$ ) $$ + $*$**** D) ( $$*$$ ) $$ + $*$**$
(10) 11x 17 / 10 + 2 x 5 + 3 / 10 can also be represented as: A) $*$$* B) $*$$$ C) $$$*$ D) $**$$ how to solve these type of problems?
|
| May 05, 2008 00:32:47 |
#2 |
| vaidesh85 |
Member Since: May 2008 Total Comments: 1 |
RE: Binary Numbers (5 Questions)In a certain code, the symbol for 0 (zero) is. * and that for 1 is $. The numb.:rs greater than 1 are to be written only by using the two symbols given above. The value of the symbol for 1 doubles itself every time it shift |
6) 260 binary equivalent=10000100 so jus replace 1 with $ and 0 with *
7)60/17 is also equivalent to 180/51 coz $$**$$==110011===== binary equivalent of 51 which is 17*3 hence 60*3=180 therefore 60/17 is also = 180/17 ===10110100/110011 ===$*$$*$**/$$**$$ hence option C is correct
8)$***$ ===10001 which is ===17 option B is $*$*$-$$ ===10101-11 ===20-3====17 hence option B is correct |
| |
Back To Question | |