Microprogrammed control and programming the basic computer: machine and assembly language, assemblers, loops, subroutines and I-O programming. - Question Bank
1. Which of the following best describes the relationship between machine language, assembly language, and microprogramming?
2. What is the outcome of a 'jump' instruction in assembly language?
3. In the context of I/O programming, a 'device driver' is:
4. Which of the following is NOT a typical component of a basic assembly language instruction?
5. What is the primary difference between microprogramming and hardwired control?
6. The term 'Basic Computer' in the context of this topic typically refers to a simplified model of a computer used for educational purposes, often with a fixed instruction set.
7. I/O programming often involves interacting with:
8. When a subroutine is called, local variables are often stored on the:
9. Which of the following is a common way to represent conditional branching in assembly language?
10. A 'control word' in microprogramming typically contains:
11. What is the primary purpose of the 'micro-operations' defined in microprogramming?
12. An I/O instruction in assembly language might be used to:
13. In the context of I/O programming, 'polling' refers to:
14. The main advantage of using subroutines is:
15. Which of the following is a typical component of a subroutine's implementation?
16. A common characteristic of loops is that they require a condition for:
17. The process of converting assembly language into machine language is called:
18. Assembly language uses mnemonics to represent:
19. Machine language is:
20. When programming the Basic Computer, the instruction set determines:
21. What is the role of the instruction set architecture (ISA) in microprogramming?
22. Which component is essential for implementing DMA?
23. Direct Memory Access (DMA) allows I/O devices to:
24. Interrupt-driven I/O is generally more efficient than Programmed I/O because:
25. What is an 'interrupt' in the context of I/O programming?
26. In Programmed I/O (PIO), how does the CPU handle data transfer with an I/O device?
27. Which mechanism is commonly used to transfer data between the CPU and I/O devices?
28. I/O programming refers to:
29. What is the role of the stack in subroutine calls?
30. The 'RET' instruction at the end of a subroutine typically:
31. The 'CALL' instruction in assembly language typically performs two main actions:
32. Which instructions are typically used to manage subroutine calls and returns?
33. What is the primary purpose of a subroutine?
34. A 'subroutine' in assembly programming is analogous to a ______ in high-level languages.
35. Which assembly language construct is commonly used to implement a loop?
36. What is the purpose of a 'loop' in programming?
37. In assembly programming, what is a 'register'?
38. Which of the following represents a common mnemonic for an addition operation in assembly language?
39. What is the primary function of an assembler?
40. An assembler is a program that translates:
41. Which of the following is an example of a machine language instruction?
42. What is the main difference between machine language and assembly language?
43. A 'horizontal microinstruction' format is characterized by:
44. A 'vertical microinstruction' format typically has:
45. What is a disadvantage of microprogramming?
46. Which of the following is an advantage of using microprogramming?
47. In microprogramming, what is the purpose of the Control Memory (CM)?
48. A sequence of microinstructions stored in control memory that dictates the operation of the CPU is called a:
49. What is the primary role of a microprogrammed control unit in a CPU?