Binary, headecimal signed 2s compliment Flashcards

(35 cards)

1
Q

Computer technology has all components that recognise only two states. What are they?

A

1 or 0 (binary aka on or off)

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

Binary code is used inside the computer to do what?

A

.store and manipulate data

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

What is a disadvantage of using binary code?

A

Difficult to document outside of the computer system

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

What can be used to document instead of binary code?

A

Hexadecimal representation

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

What type of system is binary?

A

Base 2

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

What type of system is hexadecimal?

A

Base 16

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

How is one hexadecimal symbol grouped?

A

in four bits (nibble)

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

Convert 1011 0110 0111 0001 into Denary

A

46705

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

Convert 485 into Binary - 16 bits

A

0000000111100101

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

Convert 865 into Hexadecimal

A

361

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

Convert 1011 0110 0111 0001 into Hexadecimal

A

B671

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

Convert AE2 into denary

A

2786

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

How many bits in a byte?

A

8 bits

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

Why do we need signed numbers?

A

To see if a binary number is positive or negative

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

How is a signed binary byte structured

A

The first bit is used to represent the + or - sign. 0 is positive and 1 is negative. The remaining bits total up the value. Another name for this is sign and magnitude.

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

Give a disadvantage of using sign and magnitude method

A

You have a positive and negative 0.

17
Q

How do people normally store signed integers?

A

In 2’s complement

18
Q

State what is meant by one’s complement

A

The binary number obtained by subtracting each digit in a binary number from 1

19
Q

State what is meant by two’s complement

A

The one’s complement of a binary number plus 1

20
Q

Express the number 10100100 in 2’s complement

21
Q

How do you convert a negative denary number into binary Two’s
Complement

A
  1. Find the binary equivalent of the denary number
  2. Add an extra bit before the most significant bit and turn that into 0
  3. Flip all the bits: 0 to 1; 1 to 0
  4. Add 1
22
Q

How do you Converting Two’s Complement to denary

A
  1. Flip all the bits: 0 to 1; 1 to 0
  2. Add 1
  3. Simple conversion from binary to denary
23
Q

Give an example of where 2’s complement can be used

A

Digital displays. This is because you take the lowest negative value, and each successive higher value is obtained by adding 1 to the binary code. When all numbers in the nibble is 1, it rolls over again to all 0 - just like a digital display.

24
Q

State what is meant by binary coded decimal?

A

Another method to grouping bits

25
Why use BCD?
If you need an application where single denary digits are required to be stored or transmitted - BCD is used
26
Give examples of BCD being used?
Calculator screen or digital time display or the display of currency on a computer
27
If a currency is $300.25, display this in BCD
0011 0000 0000 0010 1001
28
Add up 0.26 + 0.85 using BCD
0000 0001 0001 0001
29
State what is meant by ASCII
It is a coding scheme that allows text to be stored via a character code
30
State the columns of an ASCII table
Binary, Hexadecimal, Character, Description
31
How many different codes are available for 7 bit code.
27 (128)
32
What characters are contained in an ASCII table
Non-printing or control characters - there for data transmission or entering data in a computer terminal (not used much anymore). Upper and Lower Case letters; Punctuation symbols; Numerals and Arithmetic Symbols
33
What is the problem with ASCII codes
Limited amount of characters can be stored not suitable for different languages.
34
State what can be used instead of ASCII code
Unicode - the first 128 characters is ASCII and has different lengths
35
How is Unicode structured
Uses a CODE POINT instead of character code (ASCII). e.g. U+0041 is the letter A where 0041 is hexadecimal. Where Unicode uses ASCII (the first byte) it starts with 0.