This thread is derailing, so here are some hardware questions.
What is 87 in hexadecimal? (2)
What is the 2s complement for 42 (1)
What is 34+(-29)? (2)
Define the agile approach and how does it differ from the structured approach? (3)
How is 249.0625 expressed in 32-bit IEEE754 (3)
What is usually in the data-stream header and trailer? (2)
How does a flip-flop function? (3)
How many inputs and outputs does a full-adder have, what are they and what is their purpose? (4)
What is the binary code for a "space" character in ASCII? (2)
What is the difference between ASCII and Unicode? (4)
How many bits does UTF typically use? Is this more effective than ASCII? How so (4)
Goodluck guys.
1. 87 in hexadecimal, convert to binary 01010010, separate into nibbles (4 bits each) to get 0101 and 0010. That's 52. Hence, 82 in hexadecimal is 52.
2. 42 in binary is 00101010 so 2s complement for 42 is 11010110.
3. 34 + (-29) = 00100010 + 11100011 = 00000101
4. The agile approach is a much more flexible approach to software development. Agile approach teams are usually small and problems are usually broken down within this development approach. As a result of this, project requirements don't have to be fully known as it's adaptable. However, the structured approach is more formal and follows a chronological process. Each stage of the software development cycle is followed in order. Program requirements must be fully known before undertaking the structured approach.
5. 249.0625 = 11111001.0001. By representing in scientific notation we get 1.11110010001 x 2^7. Therefore mantissa = 11110010001000000000000. To get exponent we add 127 to the power to get 134, which is 10000110. Therefore 249.0625 is 0 10000110 11110010001000000000000.
6. In the header there's usually information on the kind of data, error checking data and the amount of data to follow. In the trailer there is usually error checking data and data to indicate the end of the data.
7. I'm not really sure, never really understood them. If somebody could explain that'd be great.
8. A full-adder has 3 inputs, the carry and the 2 bits to be added. The carry is the carried number from the previous addition.
9. space in ASCII = 32, so in binary space is 00100000.
10. Unicode is a 16-bit based representation of characters. It allows for over a hundred thousand different characters, much greater than the 127 allowed in the 7-bit ASCII representation. Unicode allows for all the main languages in the world, where as ASCII doesn't.
11. No idea, we didn't do this.
how do you do this?
19 Consider the following EBNF definition of a mussum string.
Which of the following is a legal mussum string?
(A) m1
(B) muum
(C) mu1sm
(D) mussum
You need to show the EBNF definition of a mussum string for us to be able to answer it.