Recent questions tagged number-representation

2 2 votes
0 0 answers
156
156 views
𝐺𝑖𝑣𝑒𝑛 𝑡ℎ𝑒 4-𝑏𝑖𝑡 𝑡𝑤𝑜'𝑠 𝑐𝑜𝑚𝑝𝑙𝑒𝑚𝑒𝑛𝑡 𝑛𝑢𝑚𝑏𝑒𝑟 𝑋 = 𝑥₃𝑥₂𝑥₁𝑥₀, 𝑤𝑟𝑖𝑡𝑒 𝑡ℎ𝑒 𝑠𝑖𝑚𝑝𝑙𝑒𝑠𝑡 𝑆𝑂𝑃 𝑒𝑥𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑜𝑓 𝑡ℎ𝑒 𝑓𝑜𝑙𝑙𝑜𝑤𝑖𝑛𝑔:𝑎. 𝑜𝑑𝑑 (𝑠ℎ𝑜𝑢𝑙𝑑 𝑏𝑒 1 𝑤ℎ𝑒𝑛 𝑋 𝑖𝑠 𝑜𝑑𝑑 𝑎𝑛𝑑 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒):𝑏. 𝑒𝑣...
1 1 vote
1 answers 1 answer
127
127 views
Let s₈ be the number of distinct numbers that can be represented as signed (two’s-complement) 1-byte integers and u₈ be the number of distinct numbers that can be represe...
1 1 vote
0 0 answers
114
114 views
Let f₃₂ be the number of distinct numbers that can be represented in 4-byte IEEE-style floating point and u₃₂ be the number of distinct numbers that can be represented as...
5 5 votes
4 4 answers
295
295 views
In the following hexadecimal addition, find the digit $x$. $$(4x\mathrm{D})_{16}+(2\mathrm{B}7)_{16}=(744)_{16}$$
6 6 votes
2 2 answers
224
224 views
How many $8$-bit patterns represent the same decimal value when interpreted as sign-magnitude and $1$'s complement numbers?$64$ $127$ $128$ $255$
5 5 votes
2 2 answers
184
184 views
An $8$-bit pattern represents $-45$ in $2$'s complement form. If the same bit pattern is interpreted as a $1$'s complement number, what decimal value does it represent?$-...
5 5 votes
2 2 answers
195
195 views
Consider an $8$-bit signed integer system using $2$’s complement representation. For how many integer values of $x$ does the arithmetic left shift operation $(x << 1$, i....
4 4 votes
1 1 answer
166
166 views
Let $X$ be an $8$-bit integer stored in $2$'s complement representation. If the hexadecimal value of $X$ is given as $(E4)_{16}$, what is the decimal equivalent of the va...
7 7 votes
1 1 answer
265
265 views
Which of the following exact decimal expressions can be represented in binary notation with a finite number of bits?$0.84-0.33$ $0.64-0.015$ $0.72+0.02$ $0.45-0.125$
10 10 votes
2 2 answers
289
289 views
In a $10$-bit $2$’s complement system, how many bit patterns represent negative integers that are divisible by $8$, not divisible by $16$, and have even parity?
4 4 votes
2 2 answers
215
215 views
Which of the following $2$’s complement bit strings represents the smallest decimal value? Each bit string must be interpreted using its own given bit-width.$1001011$ as ...
4 4 votes
1 1 answer
192
192 views
A $12$-bit $2$’s complement number has hexadecimal representation $(B6D)_H$. This number is sign-extended to $16$ bits and then arithmetic right-shifted by $2$ positions....
5 5 votes
2 2 answers
279
279 views
Suppose we have two $16$-bit $2$’s complement numbers:$$101xx101101xxxxx$$$$1101101xx11xxxxx$$Here, each $x$ is an independent unknown bit and can be either $0$ or $1$.Co...
2 2 votes
3 3 answers
238
238 views
A controller has to send one of $45$ possible status messages. Each message is encoded using a fixed-length binary code. What is the minimum number of bits required, and ...
3 3 votes
2 2 answers
247
247 views
What is the minimum number of bits required to represent $-92$ in $2$’s complement form, and what is its representation using that minimum number of bits?$7$ bits, $01001...
3 3 votes
3 3 answers
197
197 views
What decimal value is represented by the following $8$-bit $2$’s complement bit pattern, given in hexadecimal notation?$$A7_{16}=\_\_\_\_\_\_\_\__{10}$$
1 1 vote
3 3 answers
275
275 views
In a $5$-bit $2$’s complement system, which of the following additions result in overflow?$11+9$ $-13+(-7)$ $14+(-6)$ $-9+12$
4 4 votes
2 2 answers
216
216 views
4 4 votes
1 1 answer
181
181 views
In an $n$-bit signed number system, zero has exactly $2$ different representations in which of the following representations?Sign-magnitude and $1$’s complement only $2$’...
8 8 votes
2 2 answers
234
234 views
Let $X$ be the number of distinct $12$-bit integers representable in $2$’s complement form. Let $Y$ be the number of distinct $12$-bit integers representable in $1$’s com...
7 7 votes
3 3 answers
944
944 views
The product of the digits of a three-digit number is $70$. The sum of the digits of this three-digit number is $\_\_\_\_$$12$$14$$16$$18$
9 9 votes
5 5 answers
2.6k
2.6k views
In a system, numbers are represented using $4$-bit two's complement form. Consider four numbers $N 1=1011, N 2=1101, N 3=1010$ and $N 4=1001$ in the system. Which of the ...
10 10 votes
3 answers 3 answers
2.1k
2.1k views
Consider the $8$ -bit signed integers $X, Y$ and $Z$ represented using the sign-magnitude form. The binary representations of $X$ and $Y$ are as follows:\[X: 10110100 \qu...
3 3 votes
2 2 answers
545
545 views
P and Q are 32 bit registers used to store IEEE single precision floating point notations (32 bit).Let content of P and Q are P = C0400000H and Q = 40400000H. The P * Q r...
0 0 votes
0 0 answers
118
118 views
What is the output if the following JavaScript program is executed by a typical web browser?// LocalScope.js var j=6; // global variable declaration and initialization fu...
2 2 votes
2 2 answers
590
590 views
Binary equivalent to $(\mathrm{AOF})_{16}$ is:$111000111$$101001111$$101000001111$$111100001010$
1 1 vote
1 1 answer
421
421 views
CB84000D001C001C is the content of a UDP header in hexadecimal format. The source port number is$52100$$13$$28$$52000$
2 2 votes
1 1 answer
293
293 views
Match the LIST-I with LIST-II$\begin{array}{|l|l|l|l|} \hline & \textbf{LIST-I} & & \textbf{LIST-II} \\ \hline \text{A.} & (100110011)_{2} & \text{I.} & \text{Error detec...