Number Systems Flashcards

(30 cards)

1
Q

Why must data be converted to binary to be processed by a computer?

A

Data has to be converted to binary to be processed by a computer because computers are built using switches that can either be on or off, which fits the binary number system (1/0).

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

Define binary data.

A

Binary data is data represented using the binary number system, consisting of only two digits: 1 and 0.

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

Define binary number system.

A

The binary number system is a base-2 number system that represents numbers using only two digits: 0 and 1.

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

What is the advantage of processing data in binary format for computers? (3)

A

allows computers to perform:

  • complex calculations
  • store vast amounts of data efficiently
  • operate at incredible speeds.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is denary?

A

Denary is a base-10 number system made up of 10 digits (0-9), where each digit has a weight factor of 10 raised to a power.

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

What is hexadecimal?

A

Hexadecimal is a base-16 number system made up of 16 digits, including 10 numbers (0-9) and 6 letters (A-F).

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

How many unique values can one hexadecimal digit represent?

A

16 unique values (0-F).

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

What is the largest decimal number that can be represented by 8 bits in binary?

A

255 (11111111 in binary)

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

How many bits does one hexadecimal digit represent?

A

4 bits (half a byte or one nibble)

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

Define nibble.

A

A nibble is four bits of binary data or half a byte.

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

Define byte.

A

A byte is a unit of digital information that consists of 8 bits.

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

What is the definition of bit?

A

A bit is a basic unit of information in computing, representing either a 0 or 1.

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

Why is hexadecimal preferred when working with large values in Computer Science?

A

Hexadecimal is preferred because:

  • it takes fewer digits to represent a given value than binary making it easier to read
  • less prone to errors when copying.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define MAC address.

A

A unique identifier for network interfaces, typically consisting of 12 hexadecimal digits which is equivalent to 48 digits in binary.

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

What is the format of a typical hexadecimal color code?

A

A typical hexadecimal color code consists of 6 hexadecimal digits, equivalent to 24 digits in binary. Each two-digit pair represents the colors red, green, and blue

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

Define URL encoding.

A

The process of converting characters in a URL that are outside the standard set into hexadecimal codes.

17
Q

What are three common uses of hexadecimal in computing?

A
  • MAC addresses
  • URL encoding
  • Color codes
18
Q

Define overflow error.

A

An overflow error occurs when a result is too large to be represented in the available storage space (needs more bits)

19
Q

What is 1 + 1 in binary addition?

A

1 + 1 = 10 (2 in denary)

20
Q

Define binary shift.

A

A binary shift is how a computer system performs basic multiplication and division by moving binary digits left or right a set number of times.

21
Q

What does a left shift do?

A

A left shift multiplies a binary number by 2 (for every 1 place shift).

22
Q

What does a right shift do?

A

A right shift divides a binary number by 2 (for every 1 place shift).

23
Q

Define underflow error.

A

An underflow error occurs when a result is too small to be represented in the available storage space.

24
Q

In binary shifts, what is the definition of precision?

A

In binary shifts, precision refers to the number of digits used to represent a value.

25
Define Two's complement.
A method of using signed binary values to represent negative numbers, where the leftmost bit is designated as the most significant bit (MSB).
26
How is a negative number represented in two's complement?
In two's complement, a negative number is represented by setting the most significant bit (MSB) to 1.
27
Define MSB.
The Most Significant Bit, which in two's complement represents the sign of the number (0 for positive, 1 for negative).
28
State one effect this logical shift has on the binary number
- Value becomes incorrect
29
Give two reasons why a programmer may use hexadecimal to represent binary numbers
- Shorter representation - Easier to write
30