Programming the Basic Computer - machine language, assembly language, assembler, program loops, subroutines, input-output programming - Question Bank
1. What is a 'jump' or 'branch' instruction used for in machine/assembly language?
2. What is a 'buffer' in I/O programming?
3. What is a 'stack frame' or 'activation record'?
4. Which loop structure guarantees that the loop body will execute at least once?
5. What is the process of 'linking'?
6. What is the main benefit of using assembly language over machine language?
7. Which instruction format is directly executable by the CPU?
8. In the context of I/O programming, what is a 'device driver'?
9. What is the 'call stack' primarily used for?
10. An infinite loop is a loop whose condition:
11. What is the 'symbol table' used for during assembly?
12. Assembly language mnemonics are symbolic representations of:
13. Machine language is also known as:
14. Which I/O technique involves the CPU being notified by hardware when an I/O device is ready?
15. What is the primary role of the stack in subroutine calls?
16. What is a 'nested loop'?
17. In assembly language, what is the purpose of a 'pseudo-operation' or 'assembler directive'?
18. What does the 'operand' field in a machine instruction typically specify?
19. Which component translates assembly language into machine code?
20. What is Direct Memory Access (DMA)?
21. What is 'recursion' in programming?
22. A 'do-while' loop is an example of what type of loop?
23. Which of the following is a common assembler directive?
24. What is the main purpose of using labels in assembly language?
25. Machine code instructions are specific to a particular what?
26. What does 'memory-mapped I/O' mean?
27. What happens when a subroutine 'returns'?
28. Which type of loop continues to execute as long as a specified condition remains true?
29. What is the output of an assembler?
30. Assembly language provides a one-to-one or close-to-one mapping with what?
31. Which of the following is a typical operand in machine language?
32. What is an 'interrupt' in the context of I/O programming?
33. What is the process of 'calling' a subroutine?
34. A 'while' loop is an example of what kind of loop?
35. An 'assembler directive' (or pseudo-operation) provides instructions for which entity?
36. Which mnemonic might represent the 'ADD' operation in assembly language?
37. What does the 'op-code' part of a machine language instruction specify?
38. When programming input/output, what does 'polling' typically involve?
39. What is the main advantage of using subroutines?
40. A 'for' loop is a common example of which type of loop?
41. What is the role of a linker in the compilation process?
42. Which of the following is a characteristic of assembly language?
43. Machine language instructions are typically represented in what format?
44. Which type of programming involves writing instructions that directly interact with hardware devices?
45. What is a subroutine in the context of programming?
46. In programming, what is a 'program loop' primarily used for?
47. What is the primary function of an assembler?
48. Which programming language uses mnemonics to represent machine code instructions?
49. What is the lowest level of programming language that a computer can directly understand and execute?