Ch 03: Branching, Loops and Program Flow

261 Questions261 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS401 - Computer Architecture and Assembly Language Programming Examination Practice

Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 211 โ€“ 220 of 261 Questions
Page 22 of 27
Q211
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Unsigned Conditional Jumps (JA)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the statement true or false: 'The JA (Jump if Above) instruction cannot execute after CMP if the unsigned destination operand is greater than the source operand'?
๐Ÿ’ป assembly Snippet
cmp ax, bx
ja above_label
  1. A.True
  2. B.False
Q212
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Conditional Jump Range (Short Jumps)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language architecture, conditional jump instructions can only perform which type of jump?
๐Ÿ’ป assembly Snippet
jnz short_label
  1. A.Far jumps
  2. B.Short jumps (-128 to +127 bytes)
  3. C.Near jumps
  4. D.All of the given options
Q213
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Program Control InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write any two program control instructions used in x86 assembly language and briefly describe their functions.
๐Ÿ’ป assembly Snippet
jmp label
call subroutine
Q214
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ LOOP Instruction and Delay LoopsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the function of the assembly code snippet 'MOV CX, 0xFFFF' followed by 'LOOP $'? Write your answer in a single line.
๐Ÿ’ป assembly Snippet
mov cx, 0xffff
loop $
Q215
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Types of Jumps (Short, Near, Far)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the three fundamental types of jump instructions available in x86 assembly language?
๐Ÿ’ป assembly Snippet
jmp short label
jmp near label
jmp far label
  1. A.Short, Near
  2. B.Short, Near, Far
  3. C.Near, Far
  4. D.Short, Far
Q216
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Short Jump Definition and RangeEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Define a Short Jump instruction in x86 assembly language.
๐Ÿ’ป assembly Snippet
jmp short target
Q217
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Array Processing IterationsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A complete traversal over an array in sorting or comparison algorithms is called a single:
  1. A.Iteration
  2. B.Recursion
  3. C.Branch
  4. D.Subroutine
Q218
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Types of Address Wraparound in 8088 Real ModeMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many distinct types of address wraparound mechanisms occur in 8088 real mode system memory architecture?
  1. A.2
  2. B.3
  3. C.4
  4. D.5
Q219
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Effective Address (EA) ComputationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
All memory addressing mechanisms in the iAPX88 (8088) architecture compute and return a 16-bit offset value known as the:
๐Ÿ’ป assembly Snippet
mov ax, [bx+si+4]
  1. A.Effective Address (EA)
  2. B.Physical Address
  3. C.Direct Address
  4. D.Segment Address
Q220
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Effective Address (EA) ComputationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
All memory addressing mechanisms in the iAPX88 (8088) architecture compute and return a 16-bit offset value called the:
๐Ÿ’ป assembly Snippet
mov ax, [bx+si+5]
  1. A.Effective address
  2. B.Faulty address
  3. C.Indirect address
  4. D.Direct address