Wednesday, December 8, 2010

CS401 Mid Dec 2010 Paper

1) Execution of the instruction “mov word [ES : 0], 0x0741” will print
• “A” appear on the top left of screen
• “A” appear on the top right of screen
• “A” appear on the center of screen
• “A” appear on the bottom left of screen

2) After the execution of “PUSH AX” statement
AX register will reside on the stack
A copy of AX will go on the stack
The value of AX disappear after moving on stack
Stack will send an acceptance message

3) If D is “35” is shift to left 2 bits the new value
• 35
• 70
• 140
• 17
4) When an item is pushed on the decrementing stack, the top of the stack is
First decremented and then element copied on to the stack
First incremented and then element copied on to the stack
Decremented after the element copied on to the stack
Incremented after the element copied on to the stack

5) After the execution of REP instruction CX will be decremented then which of the following flags will be affected?
CF
OF
DF
No flags will be affected

6) In a video memory, each screen location corresponds to
One byte
Two bytes
Four bytes
Eight bytes

7) shifting the -15 two bit sAR
-7
-8
7
8
8) mov ax,5 has
1 operand
2 opeand
3 operand
4 opeand
Q Name types of addressing mode
Q why DS is used with ES to access vedoi memory.
Q How stack is increamented or decremented
Q write process block instruction
Q What are the instructions used by assembly language for permanent and temporary diversions.
Q Describe CMPS instructions also REPE and REPNE Prefixes.

No comments:

Post a Comment