GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Convert positional numerals through place values

9 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Evaluate digits with integer or fractional radix powers, then convert to the target radix by division/multiplication or power-of-two bit grouping, preserving digit order. Known-radix conversions only; unspecified H notation is flagged.

2 marks · MSQ
Report issue

Compare numerals through a common base

Number Systems & Computer Arithmetic

Question 49, GATE 2024: Which equal 224 in base 5? A 64 in base 10; B 100 in base 8; C 50 in base 16; D 121 in base 7.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, D

Step through it (7 steps)

Approach: Expand each numeral as a sum of digit×base^position.

1. Derivation. 224 base5 equals 2×25+2×5+4=64 decimal. 100 base8 is 64; 50 base16 is 80 and differs; 121 base7 is 49+14+1=64. Thus A, B, D.

2. Explanation and checks. The rightmost position is the units position in every base. Thus the 4 in 224_5 contributes four, the middle 2 contributes ten, and the left 2 contributes fifty. For 100_8 only the 8² term is nonzero. For 121_7 the contributions are 49,14,1. The digits 5 and 0 in hexadecimal 50 contribute 5×16 and zero, not fifty decimal. Comparing all four decimal values prevents confusing the numeral’s appearance with its represented number.

Original paper, page 34 · Answer key

1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 32, GATE 2023: Convert the number (132)₄ to radix 5; enter its base-5 digits.
Tap to enlarge
Answer & solution

Official answer: 110

Step through it (9 steps)

132 base4 equals 1×16+3×4+2=30 decimal. Dividing30 by 5 gives quotient 6 remainder 0, and 6 by 5 gives quotient 1 remainder 1. Thus30=1×25+1×5+0, or 110 base5.

Teaching detail. The digits of a positional numeral are coefficients of powers of the base, starting at exponent zero from the right. Thus the conversion first obtains the underlying integer and then re-expresses it with powers of 5. The final check is 1·5²+1·5+0=30, equal to the original 1·4²+3·4+2. Do not enter 30 as the answer: that is the decimal intermediary, whereas the question requests the digit string in radix 5. All digits of 110 are valid in base 5.

Original paper, page 30 · Answer key

1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 6, GATE 2021: A number is 210 in base 3. What is its hexadecimal representation? A 15; B 21; C D2; D 528.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (8 steps)

The ternary numeral 210 represents 2·3²+1·3=21 decimal. Since21=1·16+5, its hexadecimal representation is 15, A.

The positional expansion is 2×9+1×3+0×1=21. Converting that decimal result to base 16 gives quotient 1 and remainder 5. Conversely hexadecimal 15 evaluates to 16+5=21, providing a reverse check. The visible digits 210 are not a decimal number to be converted directly.

Original paper, page 14 · Answer key

1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 18, GATE 2021: Decimal digits x,y satisfy (0.1101)₂=(0.8xy5)₁₀. Find x+y.
Tap to enlarge
Answer & solution

Official answer: 3

Step through it (8 steps)

Binary0.1101 equals 1/2+1/4+1/16=13/16=0.8125. Thus x=1, y=2 and x+y=3.

Weights to the right of the binary point are 2−1,2−2,2−3,2−4. Only the third bit is zero. Matching 0.8125 to 0.8xy5 identifies the digits individually before adding. The answer is an integer sum of digits, not the binary fraction's numerator.

Original paper, page 64 · Answer key

1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 1, GATE 2017: A 16-bit unsigned integer is BCA9 in hexadecimal. Give its octal representation. A:571244. B:736251. C:571247. D:136251.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step through it (13 steps)

1. Convert each hexadecimal digit into four binary bits: B=1011, C=1100, A=1010, 9=1001. The number is therefore 1011110010101001₂.

2. Octal groups binary bits in threes, starting at the least-significant end. Add two leading zeros only for grouping: 001 011 110 010 101 001.

3. These groups are 1,3,6,2,5,1, yielding 136251₈, option D. A decimal check is BCA9₁₆=48297, and 1·8⁵+3·8⁴+6·8³+2·8²+5·8+1=48297. Leading padding does not change the value.

Original paper, page 2 · Answer key

1 mark · MCQ
Report issue

Octal to hexadecimal conversion

Number Systems & Computer Arithmetic

Question 5, GATE 2009: Convert octal 1217 to the equivalent choice: A hexadecimal 1217; B hexadecimal 028F; C decimal 2297; D hexadecimal 0B17.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step through it (10 steps)

Octal 1217 expands to binary 001 010 001 111. Grouping in fours gives 0010 1000 1111, hexadecimal 28F, or 028F with a leading zero. Hence B. Its decimal value is 512+128+8+7=655.

Using place values, octal 1217 equals 1·8³+2·8²+1·8+7=512+128+8+7=655. Divide into hexadecimal place values:655=2·256+8·16+15, so it is 028F hexadecimal. The same conversion follows by octal digit triples 001010001111, regrouped into binary quartets 0010 1000 1111.

Original paper, page 2

1 mark · MCQ
Report issue

Octal to hexadecimal conversion

Number Systems & Computer Arithmetic

Question 17, GATE 2005: Convert octal 657 to hexadecimal: A 1AF; B D78; C D71; D 32F. Clearer GateForum source confirms option A.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step through it (9 steps)

657 in octal is 6×64+5×8+7=431. Dividing into hexadecimal digits gives 1×256+10×16+15=1AF, A. Equivalently, octal bits 110101111 regroup as 0001 1010 1111.

Convert via place values:6·8²+5·8+7=384+40+7=431. In hexadecimal 431=1·256+10·16+15, giving 1AF. Equivalently octal digit triples 110101111 become 0001 1010 1111. The answer is A, spelling 1AF; the clearer alternate confirms the faint final glyph in that choice.

Original paper, page 2

1 mark · MCQ
Report issue

Binary representation of a quarter

Number Systems & Computer Arithmetic

Question 1.14, GATE 2002: Which statement describes decimal 0.25?
(A) It equals binary 0.1.
(B) It equals binary 0.01.
(C) It equals binary 0.00111… .
(D) It cannot be represented exactly in binary.
Tap to enlarge
Your answer
Answer & solution

Answer: B and C if the trailing ones continue forever (no official key was published)

Step 1: Evaluate both binary expansions as real numbers.

Step 2: In0.001111…, the first one is in the third fractional position, so its value is 1/8+1/16+1/32+… . Multiplying this sum by 1/2 and subtracting leaves half the sum equal to 1/8, hence the sum is 1/4. No finite truncation equals 1/4, but the infinite expansion does. The ellipsis is therefore essential to the recorded ambiguity.

Conclusion: The terminating binary representation is 0.01₂=2−2=1/4, B. But the printed alternative C,0.001111..., also equals sum_(j=3)^∞2−j=(1/8)/(1−1/2)=1/4 when the ellipsis means infinitely repeated ones. Thus both are exact real-number representations, analogous to decimal 0.999...=1. B is the unique terminating representation, but the prompt does not restrict to terminating representations. This is an overlapping-options issue, not an official-key claim.

Original paper, page 2

Report issue

Binary fraction to decimal

Number Systems & Computer Arithmetic

Question 6.5.a, GATE 1993: Convert (110.101)₂ to decimal.
Question 6.5.a, GATE 1993: Convert (110.101)₂ to decimal.
Tap to enlarge
Answer & solution

Answer: 6.625 (no official key was published)

Step through it (8 steps)

The integer bits have weights 4,2,1 and contribute 4+2+0=6. The fractional bits have weights 1/2,1/4,1/8 and contribute 1/2+0+1/8=0.625. Add the two parts to get 6.625. Fractional bit positions continue negative powers of the base; treating .101 as a decimal fraction would not preserve the given binary value. This is one of the two separately retained conversion subparts sharing the printed group marks.

Original paper, page 5