GATE | GATE-CS-2014-(Set-3) | Question 65

Consider the equation: (7526)8 − (Y)8 = (4364)8 , where (X)N stands for X to the base N. Find Y.
(A) 1634
(B) 1737
(C) 3142
(D) 3162


Answer: (C)

Explanation: (X)N stands for X to the base N.

7526(8) – Y(8) = 4364(Y)

Base 8(Octal) uses digits 0 to 7.



Now Y(8) = 7526(8) – 4364(8)

The subtraction of octal numbers follows the same rules as the subtraction of numbers in any other number system. The only variation is in borrowed number. In the decimal system, you borrow a group of 10(10). In the binary system, you borrow a group of 2(10). In the octal system you borrow a group of 8(10).

Reference: http://www.tpub.com/neets/book13/53f.htm

Quiz of this Question



My Personal Notes arrow_drop_up