Module 4 - Data Representation Flashcards
In the field below, enter the 8-bit binary representation of the decimal value 46.
00101110
In the field below, enter the 8-bit binary representation of the decimal value 24.
00011000
In the field below, enter the decimal representation of the binary value 00010110.
22
A binary "0" is represented by what physical phenomena in a modern computer? High Current Low Current High Voltage Mechanical contacts closed. Low Voltage
Low Voltage
A binary "1" is represented by what physical phenomena in a modern computer? Low Current High Current Low Voltage Mechanical contacts closed. High Voltage
High Voltage
In the field below, enter the 8-bit binary representation of the decimal value 31.
00011111
In the field below, enter the decimal representation of the binary value 00111010.
58
In the field below, enter the decimal representation of the binary value 00100001.
33
How many symbols are used in the binary number system?
2
A binary "1" is represented by what physical phenomena in a modern computer? High Current High Voltage Low Voltage Low Current Mechanical contacts closed.
High Voltage
In the field below, enter the hexadecimal representation of the binary value 0000011100100000 using 4 hex places.
0720
In the field below, enter the decimal representation of the hexadecimal value 0x0444.
1092
In the field below, enter the hexadecimal representation of the binary value 0000101010110101 using 4 hex places.
0AB5
In the field below, enter the hexadecimal representation of the decimal value 1708 using 4 hex places.
06AC
In the field below, enter the hexadecimal representation of the decimal value 124 using 4 hex places.
007C
In the field below, enter the decimal representation of the 2’s complement value 11100010.
-30
In the field below, enter the 2’s complement representation of the decimal value -1 using 8 bits.
11111111
In the field below, enter the decimal representation of the 2’s complement value 11011100.
-36
In the field below, enter the decimal representation of the 2’s complement value 11110000.
-16
In the field below, enter the decimal representation of the 2’s complement value 11111010.
-6
What indicates a negative number in the two’s complement representation? The least significant bit is 1 The most significant bit is 1 The least significant bit is 0 The most significant bit is 0
The most significant bit is 1
In the field below, enter the binary result of the following calculation.
The numbers are given 8-bit 2’s complement format, and can be positive or negative.
Your answer should also be provided as 8-bit 2’s complement format.
11010001 + 11110101 = ?
0b11000110
In the field below, enter the binary result of the following calculation.
The numbers are given 8-bit 2’s complement format, and can be positive or negative.
Your answer should also be provided as 8-bit 2’s complement format.
11001010 + 00101001 = ?
0b11110011
11110011
0b 11110011
In the field below, enter the binary result of the following calculation.
The numbers are given 8-bit 2’s complement format, and can be positive or negative.
Your answer should also be provided as 8-bit 2’s complement format.
11110011 + 11110111 = ?
0b 11101010
0b11101010
11101010
In the field below, enter the binary result of the following calculation.
The numbers are given 8-bit 2’s complement format, and can be positive or negative.
Your answer should also be provided as 8-bit 2’s complement format.
00101110 + 00001000 = ?
0b00110110
00110110
0b 00110110
Which of the following are causes of underflow?
Subtracting from a variable when its value is at the upper end of the datatype range.
Adding to a variable when its value is at the upper end of the datatype range.
Adding to a variable when its value is at the lower end of the datatype range.
Subtracting from a variable when its value is at the lower end of the datatype range.
Subtracting from a variable when its value is at the lower end of the datatype range.
A variable of type signed int stores a value of -2147483648, If the variable value is incremented what exception will occur?
Overflow.
Underflow.
No exception.
No exception.
A variable of type signed int stores a value of -2147483648, If the variable value is decremented what exception will occur?
Underflow.
Overflow.
No exception.
Underflow.
A variable of type unsigned char stores a value of 255. If the variable value is incremented, what exception will occur?
No exception.
Underflow.
Overflow.
Overflow.
A variable of type unsigned int stores a value of zero. If the variable value is incremented, what exception will occur?
Overflow.
No exception.
Underflow.
No exception.
In which of the following situations will endianness become an issue?
Transferring a memory block from a Little-Endian processor to a Little-Endian processor.
Transferring a memory block from a Big-Endian processor to a Big-Endian processor.
Transferring a memory block from a Big-Endian processor to a Little-Endian processor.
Transferring a memory block from a Little-Endian processor to a Big-Endian processor.
Transferring a memory block from a Big-Endian processor to a Little-Endian processor.
Transferring a memory block from a Little-Endian processor to a Big-Endian processor.
Select the definition of big-endian.
The most significant bit of a single byte datatype is stored at a lower address than the least significant bit.
The least significant bit of a single byte datatype is stored at a lower address than the most significant bit.
The least significant byte of a multi-byte datatype is stored at a lower address than the most significant byte.
The most significant byte of a multi-byte datatype is stored at a lower address than the least significant byte.
The most significant byte of a multi-byte datatype is stored at a lower address than the least significant byte.