๐ CHAPTER PRACTICE
CS401 - Computer Architecture and Assembly Language Programming โ Serial Port Programming
Practice 10 verified multiple choice questions per batch with instant answer reveal and comprehensive solutions.
Showing 1 โ 10 of 90 Questions
Page 1 of 9
Q1๐ Short Q๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
What is multitasking in operating systems and computer architecture?
Q2โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In multi-threading operating systems, each thread independently executes function calls, accepts parameters, and maintains its own ________ variables.
Q3โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
The thread registration code initializes the Process Control Block (PCB) and adds it to the linked list so that the ________ will give it a turn to execute.
Q4โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In NASM assembly, an imported symbol is declared with the ________, while an exported symbol is declared with the ________.
Q5โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In NASM assembly, an imported symbol (defined in another module) is declared using the ________ directive, while an exported symbol (made accessible to other modules) is declared using the ________ directive.
Q6๐ง Long Problem๐ Lec 14Medium๐RepeatedโญHigh-Yield๐กConceptual
Given the assembly language routine `swap` below, write a C language program that declares and calls this assembly routine to swap two integer variables:
```assembly
[section .text]
global swap
swap:
mov eax, [esp+4] ; load pointer to first integer (int *a)
mov ecx, [esp+8] ; load pointer to second integer (int *b)
mov edx, [eax] ; edx = *a
mov ebx, [ecx] ; ebx = *b
mov [eax], ebx ; *a = *b
mov [ecx], edx ; *b = *a
ret
```
Q7โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
How many prevalent calling conventions (e.g., C calling convention and Pascal calling convention) primarily exist for interfacing assembly routines with high-level languages?
Q8โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In NASM assembly language, an imported symbol is declared with the __________ directive, while an exported symbol is declared with the __________ directive.
Q9โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In NASM assembly language, an imported external symbol declared in another module is specified using which directive?
Q10โ MCQ๐ Lec 14Easy๐RepeatedโญHigh-Yield๐กConceptual
In NASM assembly language, an imported symbol is declared with the ________ directive, while an exported symbol is declared with the ________ directive.