Easysemester.com



Test Bank for Prelude to ProgrammingChapter 2MULTIPLE CHOICE1. How many digits are there in the binary system? a.9b.10c.0 1d.2ANS:D2. A normalized binary number consists of three parts. These are: a.sign, exponent, mantissab.integer part, decimal point, fractional partc.sign, real part, imaginary partd.sign, integer, mantissaANS:A3.Given the decimal number 43, the base is:a. 4b. 3c. 10d. 64ANS:A4.What is the decimal value of 01102?a. 4b. 6c. 11d. 110ANS:B5. What is the binary representation of 6210?a.00111110b.00100010c.00100001d.11101000ANS:A6.Represent 3110 in hexadecimal notation.a. 1Fb. FFc. F1d. AFANS:A7. Convert 001100112 to hexadecimal.a. 5A116b. 3316c. A316d. 3A16ANS:B8. In sign-and-magnitude format, what does 01112 represent?a. 8b. -7c. +7d. 110ANS:C9.Convert 1710 to an 8-bit integer in sign-and-magnitude format:a. 100012b.100100012c. 000100012d. 1100012ANS:C10. Convert +1210 to a 4-bit integer in two’s complement format:a.000011002b.100011002c. 11002d. 100112ANS:C11. Convert -1510 to a 4-bit integer in two’s complement format:a. 11112b. 100012c. 000012d. 00012ANS:D12. The standard representation for storing positive, zero, and negative integers is:a. unsignedb. sign-and-magnitudec. one’s complementd. two’s complementANS:D13. Floating point numbers always have which of the following:a. An integer partb.A signc.A fractional partd.All of theseANS:D14. Convert the decimal fraction ? to binary.a. 0.012b. 0.12c. 1.02d. .1102ANS:B15. Convert the decimal number 0.610 to a 4-bit binary number.a. 0.11002b. 0.10102c. 0.10012d. 0.1112ANS:C16. Convert the decimal number 12.410 to a binary number, allocating 4 bits for the integer part and 4 bits for the fractional part.a. 1100.01002b. 1010.0112c. 1100.01102d. None of these are correctANS:C17. Convert 5,689,00010 to exponential notation. a. 5689 X 103b. 5689E+3c. 5.6E+5d. 5.689E+6ANS:D18. A single precision floating point number stored in a computer has three parts. They are: a. sign, binary point, mantissab. sign, exponent, mantissac. integer, binary point, fractiond. sign, integer, fractionANS:B19. Convert +610 to binary using the Excess_127 system. a. 0110 X 10127b. 1.0000101E+7c. 0000101d. 10000101ANS:D20. Convert -1210 to binary using the Excess_127 system.a. 10001100b. 01110011c. 0.1110011E-12d. Cannot be doneANS:BTRUE/FALSE1.True/False? There are 9 digits in the hexadecimal system.ANS:F2.True/False: Any number can be used as a base for a number system.ANS:T3.True/False: In a storage location of 8 bits, a sign-and-magnitude integer could be any integer from 0 to 15, inclusive.ANS:F4.True/False: The range of integers that can be stored in one’s complement format is exactly double the range that can be stored in sign-and-magnitude format. ANS:F5.True/False: One problem with using one’s complement to store integers is that there are two ways to represent 0. ANS:T6.True/False: It is impossible to store the fraction 0.5 in 6 bits as a binary number because 0.510 = 0.12.ANS:F7.True/False: To store the binary number 101012 in an 8-bit location, simply add three zeros to get 101010002. ANS:F8.True/False: A number system that uses 19 as a base would be impossible to create because the highest possible number system is 16.ANS:F9.True/False: The result of adding the binary digits 1 + 1 is 10. ANS:T10. True/False: In one’s complement format, the leftmost bit is saved for the sign where 1 indicates a negative number and 0 indicates a positive number.ANS:F11. True/False: The smallest integer that can be represented by a sign-and-magnitude binary number is always 0.ANS:F12. True/False: A double precision number always takes up 64 bits in the computer’s memory. ANS:T13. True/False: The following two representations are equivalent:1110010111010101010100112 and D5D55316ANS:T14. True/False: It is impossible to store 1610 in 4-bits because overflow will occur.ANS:T15. True/False: The two’s complement representation of +6710 in 8-bits is 10000112.ANS:FSHORT ANSWER1.Given the number 455, __________ is the base.ANS:452.(-23)0 = __________.ANS:13.There are __________ digits in the binary system. ANS:two4.The decimal value of A in the hexadecimal number 6A2 is __________.ANS:1605.A very long binary number, such as 1111000010101100111000102 may be converted to __________ notation to make it easier to read. ANS:hexadecimal6.The one’s complement format is not often used because there are two ways to represent the value of __________ .ANS:zero7.The unsigned form of an integer does not allow for __________ numbers.ANS:negative8.The condition known as __________ occurs when you try to store an integer that is bigger than the maximum allowed by the number of bits you have.ANS:overflow9.Given: |-56|. The __________ of this expression is 56.ANS:magnitude10. A __________ separates the whole number and fractional parts of a binary floating point number. ANS:point or binary point ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download