Module 4 - Data Representation Flashcards

1
Q

In the field below, enter the 8-bit binary representation of the decimal value 46.

A

00101110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In the field below, enter the 8-bit binary representation of the decimal value 24.

A

00011000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the field below, enter the decimal representation of the binary value 00010110.

A

22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A binary "0" is represented by what physical phenomena in a modern computer?
  High Current
  Low Current
  High Voltage
  Mechanical contacts closed.
  Low Voltage
A

Low Voltage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A binary "1" is represented by what physical phenomena in a modern computer?
  Low Current
  High Current
  Low Voltage
  Mechanical contacts closed.
  High Voltage
A

High Voltage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In the field below, enter the 8-bit binary representation of the decimal value 31.

A

00011111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the field below, enter the decimal representation of the binary value 00111010.

A

58

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the field below, enter the decimal representation of the binary value 00100001.

A

33

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many symbols are used in the binary number system?

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A binary "1" is represented by what physical phenomena in a modern computer?
  High Current
  High Voltage
  Low Voltage
  Low Current
  Mechanical contacts closed.
A

High Voltage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the field below, enter the hexadecimal representation of the binary value 0000011100100000 using 4 hex places.

A

0720

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In the field below, enter the decimal representation of the hexadecimal value 0x0444.

A

1092

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In the field below, enter the hexadecimal representation of the binary value 0000101010110101 using 4 hex places.

A

0AB5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In the field below, enter the hexadecimal representation of the decimal value 1708 using 4 hex places.

A

06AC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In the field below, enter the hexadecimal representation of the decimal value 124 using 4 hex places.

A

007C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In the field below, enter the decimal representation of the 2’s complement value 11100010.

A

-30

17
Q

In the field below, enter the 2’s complement representation of the decimal value -1 using 8 bits.

A

11111111

18
Q

In the field below, enter the decimal representation of the 2’s complement value 11011100.

A

-36

19
Q

In the field below, enter the decimal representation of the 2’s complement value 11110000.

A

-16

20
Q

In the field below, enter the decimal representation of the 2’s complement value 11111010.

A

-6

21
Q
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
A

The most significant bit is 1

22
Q

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 = ?

A

0b11000110

23
Q

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 = ?

A

0b11110011
11110011
0b 11110011

24
Q

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 = ?

A

0b 11101010
0b11101010
11101010

25
Q

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 = ?

A

0b00110110
00110110
0b 00110110

26
Q

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.

A

Subtracting from a variable when its value is at the lower end of the datatype range.

27
Q

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.

A

No exception.

28
Q

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.

A

Underflow.

29
Q

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.

A

Overflow.

30
Q

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.

A

No exception.

31
Q

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.

A

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.

32
Q

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.

A

The most significant byte of a multi-byte datatype is stored at a lower address than the least significant byte.