Question

Given 8 random bits forming a byte, can you determine whether the byte represents an integer...

Given 8 random bits forming a byte, can you determine whether the byte represents an integer or a character? Why?

Homework Answers

Answer #1

One thing is not clear here. question is asking about character or unsigned character also.

- if 8 random bits are there means it is representing an integer.

Because if we talk about a character which has 8 bits but 7th bit is signed bit so that basically it will have -128 to 127 valuse.

but integer have 4-byte size means 4*8 = 32 bits where 31st bit is signed bit and other bit use for value.

So, if we go for random bits forming a byte. then there is possibility that 7th bit of the byte is 1 and that means if we go for character statement will become wrong because a character has 8 bit but 7th bit is used for a signed bit.

But if we go for integer and 7th bit is 1 than that statement remains true. because in integer 31st bit is signed bit. 7th bit is 1 or 0 is not make sense regarding sign in integer.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Given the following UTF-8 byte stream: 0x63 0xec 0xa7 0x93 0x33 0xd3 0xa9 what are the...
Given the following UTF-8 byte stream: 0x63 0xec 0xa7 0x93 0x33 0xd3 0xa9 what are the unicode character code points encoded by the above stream?
Given a 8 bit binary sequence 01111001, show the decimal number it represents in unsigned integer,...
Given a 8 bit binary sequence 01111001, show the decimal number it represents in unsigned integer, sign-magnitude, one's complement, two's complement and execess-127.
Design a circuit which outputs the 2CF of a 4-bits integer A3A2A1A0 given as input to...
Design a circuit which outputs the 2CF of a 4-bits integer A3A2A1A0 given as input to the circuit. For example, if input A3A2A1A0 = 1010 then the 2CF output is B3B2B1B0 = 0110. You should apply the full design procedure explained in classroom.
Sign extension means that any given signed number can be represented with more bits by simply...
Sign extension means that any given signed number can be represented with more bits by simply repeating the sign bit. For example, 0005 = +5 and 00005 = +5. This holds true for negative numbers as well. For example, 1011 = -5 and 11011 = -5. Also, 11111011 = -5. Using finite summation notation, prove that sign extension can be applied to any 2's complement binary integer, B, with b number of bits
You are given 2019 integer numbers. Show that you can choose several of them such that...
You are given 2019 integer numbers. Show that you can choose several of them such that their sum is divisible by 2019.
Assuming you are using a 64-bit (8-byte) block cipher in CBC mode. Show the results of...
Assuming you are using a 64-bit (8-byte) block cipher in CBC mode. Show the results of padding the following plaintexts so they can fit into an even number of blocks. (A) 0f8353c2 8e1ff6 (B) 8c521e (C) c1 (D) 9f6bef2c 902fe4ba
Determine whether Rolle’s Theorem can be applied to f on the given interval. If Rolle’s Theorem...
Determine whether Rolle’s Theorem can be applied to f on the given interval. If Rolle’s Theorem can be applied, find all the values of c in the interval (a, b) such that f 0 (c) = 0. If Rolle’s Theorem cannot be applied, explain why. h(x) = x 2 − 2x/ x + 2 on [−1,6]
IN MATLAB: Suppose you are given an array with integers between 1 and 1,000. One integer...
IN MATLAB: Suppose you are given an array with integers between 1 and 1,000. One integer is in the array twice. How can you determine which one?
Determine whether the claim stated below represents the null hypothesis or the alternative hypothesis. If a...
Determine whether the claim stated below represents the null hypothesis or the alternative hypothesis. If a hypothesis test is? performed, how should you interpret a decision that? (a) rejects the null hypothesis or? (b) fails to reject the null? hypothesis? A scientist claims that the mean incubation period for the eggs of a species of bird is less than 35 days.
8. It is possible to check if an integer is divisible by 9 by summing its...
8. It is possible to check if an integer is divisible by 9 by summing its digits: if the digits add up to 9 the number is divisible by 9. For integers up to 90 only a single application of the rule is required. For larger integers, multiple applications may be required. For example, for 99, the digit sum is 18. Then, because 18 still has multiple digits we sum them again to get 9, confirming that 99 is divisible...