CS401-Midterm
1 / 50
The physical address of the stack is obtained by
2 / 50
Left-Shift-Operation the left most bit _______
3 / 50
Which bit of the attributes byte represents the red component of background color ?
4 / 50
“Far” jump is not position relative but is _______________
5 / 50
If we want to divide a signed number by 2, this operation can better be accomplished by
6 / 50
After the execution of REP instruction CX will be decremented then which of the following flags will be affected?
7 / 50
After the execution of SAR instruction:
8 / 50
To convert any digit to its ASCII representation
9 / 50
To transfer control back the RET instruction take
10 / 50
In a video memory, each screen location corresponds to
11 / 50
The basic function of SCAS instruction is to
12 / 50
Regarding assembler, which statement is true:
13 / 50
The first instruction of “COM” file must be at offset:
14 / 50
In assembly the CX register is used normally as a ______________register.
15 / 50
16 / 50
“mov byte [num1], 5” is _________ instruction.
17 / 50
REP will always
18 / 50
RETF will pop the offset in the
19 / 50
The prevalent convention in most high level languages is stack clearing by the
20 / 50
When the operand of DIV instruction is of 16 bits then implied dividend will be of
21 / 50
Which mathematical operation is dominant during the execution of SCAS instruction
22 / 50
In the instruction MOV AX, 5 the number of operands are
23 / 50
The maximum parameters a subroutine can receive (with the help of registers) are
24 / 50
Which bit of the attributes byte represents the blue component of background color ?
25 / 50
Execution of the instruction “mov word [ES : 0], 0x0741” will print
26 / 50
In STOS instruction, the implied source will always be in
27 / 50
The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background color of the screen will be
28 / 50
After the execution of MOVS instruction which of the following registers are updated
29 / 50
if ax contains decimal -2 and BX contains decimal 2 then after the execution of instructions: CMP AX, BX ,JA label
30 / 50
After the execution of “PUSH AX” statement
31 / 50
The execution of the instruction “mov word [ES: DI], 0x0720”
32 / 50
When a 16 bit number is divided by an 8 bit number, the quotient will be in
33 / 50
The execution of the instruction “mov word [ES: 0], 0x0741” will print “A” on the screen, color of the character will be
34 / 50
The second byte in the word designated for screen location holds
35 / 50
36 / 50
The routine that executes in response to an INT instruction is called
37 / 50
All the addressing mechanisms iniAPX88 return a number called ______ address.
38 / 50
39 / 50
40 / 50
After the execution of instruction “RET ”
41 / 50
42 / 50
The execution of the instruction “mov word [ES : 160], 0x1230” will print a character “0” on the screen at
43 / 50
one Only ___________ instructions allow moving data from memory to memory.
44 / 50
The instruction ADC has________ Operand(s)
45 / 50
In STOSB instruction, when DF is Set, SI is
46 / 50
If the direction of the processing of a string is from higher addresses towards lower addresses then
47 / 50
decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack
48 / 50
While using STOBS, if DF=1 then
49 / 50
“mov byte [num1],5” is _______ instruction.
50 / 50
mov ax,5 has
Your score is
The average score is 64%
Restart quiz