Ch 06: Parameter Passing and Stack Frames

216 Questions216 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 โ€“ 216 of 216 Questions
Page 22 of 22
Q211
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.3. Attribute Byte FormatEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8-bit text-mode character attribute byte, which bit controls the Green component of the foreground color?
  1. A.Bit 1
  2. B.Bit 5
  3. C.Bit 3
  4. D.Bit 7
Q212
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 80x25 text-mode Video RAM, which formula calculates the memory offset for a character cell at row position 'y' and column position 'x'?
  1. A.location = (y_pos * 80 + x_pos) * 3
  2. B.location = (y_pos * 80 + x_pos) * 2
  3. C.location = (y_pos * 25 + x_pos) * 2
  4. D.location = (y_pos * 80 + x_pos) / 2
Q213
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.2. ASCII Character CodingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction 'MOV WORD [ES:160], 0x1230' written to Video RAM in text mode, what character is represented by the lower byte value 0x30?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q214
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 80x25 text mode, at which screen location will the instruction 'MOV WORD [ES:160], 0x1230' render a character?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230
  1. A.First column of second row
  2. B.Second column of first row
  3. C.Second column of second row
  4. D.First column of third row
Q215
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is ASCII (American Standard Code for Information Interchange), and why is character encoding essential in computer systems?
๐Ÿ’ป assembly Snippet
; Displaying ASCII character 'A' (ASCII 65 / 0x41) in Assembly
mov al, 'A'       ; Load ASCII value 0x41 into AL
mov ah, 0x07      ; Load light gray text attribute into AH
mov [es:0], ax    ; Print 'A' at top-left of video memory
Q216
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Text Mode Display MemoryEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is plain ASCII text format, and why is it widely used for system software and data exchange?