Number Systems Flashcards

1
Q

___ are important for representing addresses and data in computer systems and networks

A

Number systems

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

Some attack vectors involve causing numerical…

A

overflows

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

a particular method for executing an attack.

A

attack vector

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

1010 in decimal

A

10

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

111 in decimal

A

7

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

___ binary digits represent one octal digit

A

3

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

75 octal to binary

A

111 101

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

61 octal to decimal

A

49

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

101101 to octal

A

55 octal

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

42 decimal to octal

A

52 octal

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

A5 hex to binary

A

1010 0101

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

A5 hex to decimal

A

165

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

To convert from decimal to binary

  1. Divide the original number by 2 and note the remainder.
  2. Keep dividing the ___1 (noting the remainder each time) until the ___1 becomes zero.
  3. Read the remainders ___2 for the result.
A
  1. intermediate quotient

2. in reverse order

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

___ binary digits represent one hex digit

A

4

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

111010101 to hex

A

1D5

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

Using ___ bits, we can represent 16 numbers.

A

4

17
Q

4 unsigned bits can represent numbers ranged…

A

0 - 15

18
Q

4 signed bits can represent numbers ranged…

A

-8 - 7

19
Q

Using 8 bits, we can represent ___ numbers.

A

256

20
Q

8 signed bits can represent numbers ranged…

A

-128 - 127

21
Q

in a 4-bit system with negatives, what happens when we try to add 5 and 6?

A

overflow

22
Q

-5 in binary using one’s complement

A

1010

23
Q

-3 in binary using two’s complement

A

1101

24
Q

to get a negative number using one’s complement, take the corresponding positive value and…

A

flip each bit

25
Q

two ways to get a negative using two’s complement

A
  1. flip each bit then add 1

2. subtract 1 then flip each bit

26
Q

a binary number is negative if…

A

the leftmost bit is 1

27
Q

signed 1101 0011 in decimal

A

-45

28
Q

signed 1111 1111 in decimal

A

-1

29
Q

signed 1000 0000 in decimal

A

-128

30
Q

signed 0111 1111 in decimal

A

127

31
Q

negate 0000 1111

A

1111 0001

32
Q

negate 1000 1111

A

0111 0001

33
Q

to subtract in binary

A

add the negated value

34
Q

when adding two positive numbers, overflow has occured if and only if…

A

the result is negative

35
Q

when adding two negative numbers, overflow has occured if and only if…

A

the result is positive

36
Q

when adding two 4-bit unsigned numbers, overflow has occured if…

A

there is a carry into the 5th bit