Data Flashcards

1
Q

What number systems are used in microprocessors

A

Binary (Base-2) Decimal (Base-10) Hexadecimal (Base-16)

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

How do unsigned and signed integers differ

A

Unsigned integers represent only positive values while signed integers use Two’s Complement for positive and negative values

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

How do you convert a number to Two’s Complement

A

Flip all bits and add 1

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

What’s the difference between fixed-point and floating-point numbers

A

Fixed-point has a predefined binary point position while floating-point uses mantissa and exponent for dynamic scaling

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

How does BCD represent numbers

A

Each decimal digit is represented by a 4-bit binary value (e.g. 9 → 1001)

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

How do ASCII and Unicode differ

A

ASCII (7-bit) supports 128 characters while Unicode (32-bit) supports 110000+ symbols for multiple languages

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

How is Boolean data represented

A

1 for True 0 for False commonly used in microprocessor flags

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

What are the two main types of memory organization

A

Word-Addressable (fixed-size words) and Byte-Addressable (each byte has a unique address)

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

Explain Little and Big Endian formats

A

Little Endian stores the least significant byte first while Big Endian stores the most significant byte first

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

When is the Zero Flag set

A

When the result of an operation is zero

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

What does the Carry Flag indicate

A

A carry out from the MSB used in multi-word arithmetic

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

When is the Overflow Flag set

A

When a signed integer operation result exceeds the representable range

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

What does the Negative Flag indicate

A

The result is negative when the MSB of the result is 1

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

What does the Half-Carry Flag indicate

A

A carry from the lower nibble (4 bits) often used in BCD operations

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

What arithmetic operations are supported

A

Addition Subtraction Comparison Negation

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

What are the main logical operations

A

AND OR NOT XOR (bitwise)

17
Q

What do shift operations do

A

Shift Left multiplies by 2 Shift Right divides by 2

18
Q

How do rotate operations work

A

Circularly shifts bits optionally through the Carry Flag

19
Q

Why are Multiply and Divide important

A

They handle complex arithmetic though not always supported in simpler processors

20
Q

What is Multiply-Accumulate (MAC)

A

Combines multiplication and addition useful in Digital Signal Processing (DSP)