P2 T1 L2 - Binary and Hex Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How is data stored in computers?

5 points

A
  1. Data is held in computers in storage locations built using electrical circuits with switches
  2. The circuits have 1 of 2 states: Low voltage (closed), High voltage (open)
  3. So, we need 2 symbols to represent these 2 states: 0 (low), 1 (high)
  4. This is the Binary system
  5. All data is stored this way, that is: Programs, Numbers, Characters, Sound, Pictures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is bit?

2 points

A
  1. Stands for Binary Digit

2. Stores 0 or 1

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

What is byte?

1 point

A
  1. A group of 8 bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is word?

1 point

A
  1. A group of bytes

Note, a 64-bit machine has a word size of 64 bits (8 bytes)

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

What is a number system?

2 points

A
  1. A Number System is any notation for representing numbers
  2. The notation is the symbols used to represent different values

In this part of the course, you need to know about:
Binary - base 2
Denary - base 10
Hexadecimal - base 16

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

What are pure unsigned binary numbers?
(1 point)

An odd number always ends in _
An even number always ends in _

A
  1. The basic number system used to identify positive integers.

1
0

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

What formula do you use to find the largest binary number possible from a certain number of bits?

A

2^n -1

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

What are the 16 symbols in hexadecimal

A

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

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

What are the values of (Hexadecimal) A and F in pure binary and denary

A

A - 1010 (pure binary) -10 (denary)

F - 1111 (pure binary) - 15 (denary)

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

How do you convert unsigned binary to Hexadecimal?

3 steps

A
  1. Break the binary number into 4-bit nibbles
  2. Translate each nibble into the hex equivalent
  3. Write the hex digits together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you convert Hexadecimal to unsigned binary?

2 steps

A
  1. Convert each hex character to a 4-bit nibble

2. Combine the nibbles into a single 8 bit binary value

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

How do you convert denary into hexadecimal?

2 steps

A
  1. Take the denary number and translate it to binary

2. Take the binary number and translate it to hexadecimal

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

Why is hexadecimal used?

3 points

A
  1. A way of writing large binary (or denary) numbers in a shorter number of digits
  2. Easier for humans to read than pure binary (The computer still just understands it as binary)
  3. Useful since all bit combinations in a 4 bit binary number may be represented in a single character – you would need 2 denary digits to do this
How well did you know this?
1
Not at all
2
3
4
5
Perfectly