Q: 1 Which of the following binary numbers represents an invalid BCD code?
0101
1001
0111
1011
[ Option D ]
BCD (Binary-Coded Decimal) represents decimal digits 0 to 9 using 4-bit binary codes.
| Decimal | BCD Code |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
🔶 BCD Valid Range: 0000 to 1001
🔶 1011 = 11 (which is not a valid decimal digit in BCD)
Q: 2 Binary 101110.11 is equal to -
(56.6)8 only
(46.75)10 only
(2E.C)16 only
All options are correct
[ Option D ]
| Number System | Value | Conversion Steps |
|---|---|---|
| Binary | 101110.11 | Given, original number. |
| Decimal | 46.75 | Integer: 101110 : 46 Fraction: .11 : 0.75 |
| Octal | 56.6 | Integer: 101110 : 101 110 : 56 Fraction: .11 : .110 : 6 |
| Hexadecimal | 2E.C | Integer: 101110 : 0010 1110 : 2E Fraction: .11 : .1100 : C |
Q: 4 One’s complement representation of (-8)10 is :
(01000)2
(10111)2
(11000)2
(00111)2
[ Option B ]
In one’s complement representation, a negative number is obtained by inverting all the bits of its positive binary form. For (−8)10, we first write +8 in 5-bit binary, which is (01000)2. Now, by inverting each bit (all 0s become 1s and all 1s become 0s), we get (10111)2. Hence, the one’s complement representation of (−8)10 is (10111)2.
Q: 5 Result obtained from subtracting (1001)2 from (1100)2 is:
(1100)2
(0011)2
(0001)2
(1001)2
[ Option B ]
Binary subtraction works similarly to decimal subtraction, with borrowing done in base 2. When we subtract (1001)2 from (1100)2, we first convert them to decimal to understand the operation, 12 minus 9 equals 3. Converting 3 back to binary gives (0011)2. Therefore, the result obtained from subtracting (1001)2 from (1100)2 is (0011)2.
Q: 6 Which of the following is equivalent to decimal 255 in hexadecimal?
EE
FF
F0
FE
[ Option B ]
Q: 7 How many bits are needed to represent decimal number 999 in BCD?
8
12
16
32
[ Option B ]
Q: 8 If (146)x + (313)x-2 = (246)8, then the value of base x is –
5
6
7
9
[ Option C ]
To solve this base arithmetic problem, we first understand that numbers in different bases can be converted to decimal (base 10) to simplify calculations. By converting each term to decimal, we can form an algebraic equation in terms of the unknown base x and then solve for it using standard algebraic methods.
Alternatively, since the bases involved are small integers, a trial-and-error method can be used to test reasonable values of x until the sum matches the decimal equivalent of the right-hand side.
Method 1: Algebraic / Decimal Conversion Method:
Convert each number to decimal:
Form the equation in decimal:
(x2 + 4x + 6) + (3x2 − 11x + 13) = 166
4x2 − 7x + 19 = 166
4x2 − 7x − 147 = 0
When solving this quadratic equation, we found value of x is 7.
Method 2: Trial-and-Error
Understand the Base Involved:
Check possible integer values for x:
From the given option 5,6,7,9, try only x=7,9 (because x must be >6), by converting each term to decimal and verify if the sum equals the decimal value of (246)8 (which is 166).
Q: 9 8's complement of (7650) is –
0230
0130
1230
3450
[ Option B ]
To compute the 8’s complement of a number, we use the (r−1)’s complement method, where r is the base. First, we find the (r−1)’s complement by subtracting each digit of the number from (r−1), and then we add 1 to the result to get the r’s complement.
For example, consider the octal number (7650)8. Here, the base r=8, so r−1=7. To find the 7’s complement of 7650, we subtract each digit from 7 individually.
Thus, the 7’s complement of (7650)8 is 0127. Next, to obtain the 8’s complement, we add 1 to the 7’s complement, 0127+1= 0130.
Note: The addition is performed according to the base. Here, since it is base 8 (octal), each digit is added modulo 8, and any carry is handled within octal arithmetic.
Q: 10 Which of the following is a valid BCD representation of the decimal number 79?
100 1111
1111 0000
1000 1001
0111 1001
[ Option D ]
Q: 11 The right most bit of the Binary numbers is _______.
LBB
LSB
MBB
MSB
[ Option B ]
The rightmost bit of a binary number is known as the Least Significant Bit (LSB). It represents the smallest value in binary positional notation, corresponding to 20=1.
The opposite is the Most Significant Bit (MSB), which is the leftmost bit and represents the largest value place in the binary number, corresponding to 2n-1.
Q: 12 What is the 2’s complement of the binary number 01010101?
10101011
10101010
10101001
10101100
[ Option A ]
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.