CS401 Quiz 2 Solved
1) EBCDIC, grey code, and ASCII are the standards for __________ representation of characters.
- Numeric
- Alpha-numeric
- Generic
- Alphabetic
2) If AX=00FF, then which of the following instruction can be used to change the value of AX to FF00
- XOR AX, AX
- AND AX, FF00
- NOT AX
- OR AX, AX
3) Shift logical Right (SHR) moves all the bits one position to the _________ and inserts a zero from the ____________.
- Left, left
- Left, right
- Right, left
- Right, right
4) Which bit of the attribute byte represents the red component of foreground color
- 2
- 4
- 3
- 5
5) Which of the following bit is dropped into the carry flag after the execution of “Shift Logical Right” operation
- 0 bit
- Left most bit
- Right most bit
- 1 bit
6) ___________ can also be used as a masking operation to convert selection bits.
- OR
- AND
- XOR
- NOT
7) What is the content of stack pointer
- Address of the lower element of the stack
- Address of the next instruction
- Address of the current instruction
- Address of the top element of the stack
8) For jump is not position relative rather _______.
- Indirect
- Memory dependent
- Temporary
- Absolute
9) In MUL instruction, if the source operand is a byte, then the result is returned in _______ and _______.
- AH, AL
- AH, AX
- AL, AX
- BH, BL
10) Which of the following are the two variants of STOS instruction
- STOS1 and STOS2
- STOSA and STOSB
- STOS and STOSES
- STOSB and STOSW