VU Midterm Past Papers
109 solved midterm past paper MCQs for CS401 (Computer Architecture & Assembly Language Programming) at Virtual University, each with the correct answer marked. Use them to learn the VU question style and test your recall. An independent study tool — not affiliated with VU.
Prefer a summary first? Read the CS401 midterm handout.
Q1. The first instruction of “COM” file must be at offset:
Q2. The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen , background color of the screen will be
Q3. The iAPX888 architecture consists of _______ register.
Q4. The execution of the instruction “mov word [ES: 0], 0x0741” will print “A” on the screen, color of the character will be
Q5. One screen location corresponds to a
Q6. When an item is pushed on the decrementing stack, the top of the stack is
Q7. Each screen location corresponds to a word, the lower byte of this word contains ____
Q8. if ax contains decimal -2 and BX contains decimal 2 then after the execution of instructions: CMP AX, BX ,JA label
Q9. If D is “35” is shift to left 2 bits the new value
Q10. When two 16bit numbers are added the answer can be 17 bits long, this extra bit that won’t fit in the target register is placed in the where it can be used and tested
Q11. Only instructions allow moving data from memory to memory.
Q12. When a 16 bit number is divided by an 8 bit number, the quotient will be in
Q13. Which bit of the attributes byte represents the red component of background color ?
Q14. | 0 |--›| 1 | 1 | 0 | 1 | 0 | 0 | 0 | --›| C | is a example of ______
Q15. allow changing specific processor behaviors and are used to play with it.
Q16. 8088 is a 16bit processor with its accumulator and all registers of __________.
Q17. decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack
Q18. In instruction ADC the operands can be
Q19. After the execution of instruction “RET”
Q20. The extended ASCII has
Q21. The second byte in the word designated for screen location holds
Q22. REP will always
Q23. The routine that executes in response to an INT instruction is called
Q24. In the instruction “CMP AX,BX” the contents of
Q25. All the addressing mechanisms iniAPX88 return a number called ______ address.
Q26. The execution of the instruction “mov word [ES: DI], 0x0720”
Q27. “mov byte [num1],5” is _______ instruction.
Q28. MOV instruction transfers a byte or word from which of the following source location.
Q29. If AX contains FFFFh, then after execution of instruction “SAL ax, 3”, the result will be
Q30. While using STOBS, if DF=1 then
Q31. After the execution of STOSW, the CX will be
Q32. The memory address always move from
Q33. An offset alone is not complete without
Q34. Code Segment is associated to _______ register by default.
Q35. After the execution of SAR instruction:
Q36. The screen is two dimensional space having:
Q37. In the Rotate Right Operation every bit moves one position to right and the bit dropped from the right is inserted at the left and:
Q38. ____________ of the following flags will be affected by MOVSB?
Q39. The iAPX88 processor supports ___________ modes of memory access.
Q40. Stack is a ______ that behaves in a first in last out manner.
Q41. The physical address of the stack is obtained by
Q42. Foreground and background parameter will be
Q43. The clear screen operation initialize whole block of memory
Q44. In STOSB instruction, when DF is Set, SI is
Q45. Assembly language is:
Q46. A 32 Bit processor has accumulator of ---------
Q47. To transfer control back the RET instruction take
Q48. RET is executed, it recovers the values from
Q49. To convert any digit to its ASCII representation
Q50. The prevalent convention in most high level languages is stack clearing by the
Q51. After execution of JCXZ instruction CX will changed with flag affect.
Q52. Execution of the instruction “mov word [ES : 0], 0x0741” will print
Q53. Which of the following options contain the set of instructions to open a window to the video memory?
Q54. Execution of the instruction “mov word [ES : 0], 0x1230” will print the character color will
Q55. RETF will pop the offset in the
Q56. “Far” jump is not position relative but is _______________
Q57. After the execution of instruction “RET 2”
Q58. DIV instruction has
Q59. When the operand of DIV instruction is of 16 bits then implied dividend will be of
Q60. After the execution of MOVS instruction which of the following registers are updated
Q61. In 8088 architecture, whenever an element is pushed on the stack
Q62. When a very large number is divided by very small number so that the quotient is larger than the space provided, this is called
Q63. In the word designated for one screen location, the higher address contains
Q64. In a video memory, each screen location corresponds to
Q65. After the execution of “PUSH AX” statement
Q66. physical address of the stack is obtained by
Q67. If the address of memory location Num1 is 0117 and its content is 0005 then after execution of the instruction “ mov bx, Num1” bx will contain
Q68. In STOS instruction, the implied source will always be in
Q69. The shift logical right operation inserts
Q70. assembly the CX register is used normally as a ______________register.
Q71. Which is the unidirectional bus ?
Q72. The basic function of SCAS instruction is to
Q73. _______ register holds the address of next instruction is to be executed
Q74. JC and JNC test the ____________ flag.
Q75. After the execution of REP instruction CX will be decremented then which of the following flags will be affected?
Q76. In string manipulation whenever an instruction needs a memory source, which of the following will hold the pointer to it?
Q77. which bit sets the character "blinking" on the screen?
Q78. If we want to divide a signed number by 2, this operation can better be accomplished by
Q79. After the execution of STOSB,the CX wil be........
Q80. shifting the -15 two bit sAR
Q81. mov ax,5 has
Q82. The second byte in the word designated for one screen location holds
Q83. Index registers are used to store __________
Q84. The bits of the _____________ work independently and individually
Q85. When a 32 bit number is divided by a 16 bit number, the quotient is of
Q86. Which mathematical operation is dominant during the execution of SCAS instruction
Q87. The execution of the instruction “mov word [ES : 160], 0x1230” will print a character “0” on the screen at
Q88. If the direction of the processing of a string is from higher addresses towards lower addresses then
Q89. The instruction ADC has________ Operand(s)
Q90. Suppose AL contains 5 decimal then after two left shifts produces the value as
Q91. The operation of CMP is to
Q92. The registers IP, SP, BP, SI, DI, and BX all can contain a ________offset.
Q93. In assembly the CX register is used normally as a ______________register.
Q94. Which bit of the attributes byte represents the blue component of foreground color
Q95. When a 32 bit number is divided by a 16 bit number, the quotient will be stored in
Q96. The execution of the instruction “mov word [ES : 0], 0x0741” will print character “A” on screen, color of the character will be
Q97. Which of the following flags will be affected by MOVSW?
Q98. Which bit of the attributes byte represents the blue component of background color ?
Q99. In STOSB instruction SI is decremented or incremented by
Q100. CMPS instruction subtracts the source location to the destination location. Destination location always lies in
Q101. Regarding assembler, which statement is true:
Q102. If “BB” is the OPCODE of the instruction which states to “move a constant value to AX register”, the hexadecimal representation (Using little Endian notation) of the instruction “Mov AX,336” (“150” in hexadecimal number system) will be:
Q103. In the instruction MOV AX, 5 the number of operands are
Q104. The maximum parameters a subroutine can receive (with the help of registers) are
Q105. When a 16 bit number is divided by an 8 bit number, the dividend will be in
Q106. in Left-Shift-Operation the left most bit _______
Q107. Suppose the decimal number "35" after shifting its binary two bits to left, the new value becomes _________
Q108. When divide overflow occurs processor will be interrupted this type of interrupt is called
Q109. _________ is one of the reasons due to which string instructions are used in 8088