Topic-6 ( Numbers and Logic )

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/64

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:29 PM on 6/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

65 Terms

1
New cards

What is base-8 called?

Octal

2
New cards

What is base-10 called?

Decimal

3
New cards

What is base-2 called?

Binary

4
New cards

What is base-16 called?

Hexadecimal

5
New cards

Octal digits range from?

0 to 7

6
New cards

Binary digits range from?

0 to 1

7
New cards

Hexadecimal digits range from?

0-9, then A=10, B=11, C=12, D=13, E=14, F=15

8
New cards

Convert octal 125 to decimal?

(1×64)+(2×8)+(5×1)=85

9
New cards

Binary digit weightings (5-bit example)?

16, 8, 4, 2, 1

10
New cards

Convert binary 10110 to decimal?

(1×16)+(0×8)+(1×4)+(1×2)+(0×1)=22

11
New cards

What is the "guessing" method for decimal→binary?

Visualise binary digit weightings

12
New cards

What is the "repeated division by 2" method?

Divide decimal by 2 repeatedly, collect remainders backwards

13
New cards

Convert 50 to binary using repeated division?

50 → remainder 0, 25→1, 12→0, 6→0, 3→1, 1→1 → 110010

14
New cards

Binary 110010 equals what decimal?

32+16+0+0+2+0=50

15
New cards

Add binary 0110111 + 010010

27 + 18 = 45 → 101101

16
New cards

Subtract binary 0110111 − 000110

27 − 6 = 21 → 010101

17
New cards

Multiply binary 0110111 × 101

27 × 5 = 135 → 10000111

18
New cards

How do computers perform subtraction?

Negate the 2's complement of the second number and add

19
New cards

What is 2's complement negation method?

Complement all bits (0→1,1→0), then add 1

20
New cards

What is 2's complement?

Negative binary representation where high order bit has negative positional value

21
New cards

In 8-bit 2's complement, what is the high order bit value?

-128

22
New cards

Convert 01110101 (2's complement) to decimal?

64+32+16+4+1 = 117

23
New cards

Convert 11110101 (2's complement) to decimal?

-128+64+32+16+4+1 = -11

24
New cards

8-bit 2's complement range?

-128 to +127

25
New cards

Complement of 10110100?

01001011

26
New cards

Negate 10110100 using 2's complement?

01001011 + 1 = 01001100 (76)

27
New cards

Negate 00100000 using 2's complement?

11011111 + 1 = 11100000 (-32)

28
New cards

How many bits per octal digit?

3 bits

29
New cards

How many bits per hexadecimal digit?

4 bits

30
New cards

Convert hex 0A to decimal?

10

31
New cards

Convert hex 0F to decimal?

15

32
New cards

Hexadecimal digits: what is A, B, C, D, E, F?

A=10, B=11, C=12, D=13, E=14, F=15

33
New cards

Convert hex 2F to decimal?

2×16 + 15 = 47

34
New cards

What is BCD?

Binary Coded Decimal — each decimal digit converted to 4-bit binary

35
New cards

How many bits per BCD digit?

4 bits (nibble)

36
New cards

Convert 57 to BCD?

0101 0111

37
New cards

Convert 57 to binary?

0011 1001

38
New cards

Convert 57 to hex?

39

39
New cards

What happens when BCD addition exceeds 9?

Add 6 (0110) to correct for the 6 disallowed codes (10-15)

40
New cards

Add 8+7 in BCD?

1000 + 0111 = 1111 → +0110 = 0001 0101 (BCD 15)

41
New cards

What is ASCII?

American Standard Code for Information Interchange — maps characters to numbers

42
New cards

How many bits in standard ASCII?

7 bits → 127 characters

43
New cards

What is extended ASCII?

Adds another 127 characters (total 256)

44
New cards

What is ASCII code for '0'?

48 decimal, 30 hex

45
New cards

What is ASCII code for 'A'?

65 decimal, 41 hex

46
New cards

What is ASCII code for 'a'?

97 decimal, 61 hex

47
New cards

What is Unicode?

16-bit character set → supports multiple languages, scripts, math symbols

48
New cards

ASCII vs Unicode main difference?

ASCII = 7-bit (English only), Unicode = 16-bit (multiple languages)

49
New cards

In computer logic, what numbers represent True and False?

True = 1, False = 0

50
New cards

AND truth table: 0 AND 0?

0

51
New cards

AND truth table: 0 AND 1?

0

52
New cards

AND truth table: 1 AND 0?

0

53
New cards

AND truth table: 1 AND 1?

1

54
New cards

OR truth table: 0 OR 0?

0

55
New cards

OR truth table: 0 OR 1?

1

56
New cards

OR truth table: 1 OR 0?

1

57
New cards

OR truth table: 1 OR 1?

1

58
New cards

NOT truth table: NOT 0?

1

59
New cards

NOT truth table: NOT 1?

0

60
New cards

Binary AND example: 10110100 AND 11001110?

10000100

61
New cards

Binary OR example: 10110100 OR 11001110?

11111110

62
New cards

Binary NOT example: NOT 10110100?

01001011

63
New cards

AND logic real-world example?

Both valves must be open for water to flow

64
New cards

OR logic real-world example?

Either valve open → water flows

65
New cards

NOT logic real-world example?

Light sensor — light on → glow off; light off → glow on