System software: compilers, interpreters, loaders, linkers, macros and debuggers. - Question Bank
1. What is the main difference between a compiler and an assembler?
2. In the context of compilers, what does 'parsing' refer to?
3. What is the primary purpose of a 'runtime environment' for interpreted languages?
4. Which system software is responsible for managing the loading and linking of programs and libraries?
5. What is the role of the 'code generator' in a compiler?
6. What is the main advantage of using an interpreter for scripting languages?
7. Which of the following is a common type of macro processor?
8. What is 'relocation' in the context of a relocatable loader?
9. Which compiler phase is responsible for checking the logical correctness and type compatibility of statements?
10. What is a 'symbol table' used for in a compiler?
11. Which system software is responsible for managing the translation of assembly language to machine code?
12. What is the primary role of a debugger in the software development process?
13. Which type of loader allows a program to be loaded at any memory location?
14. What is 'intermediate code' in the context of compilation?
15. Which phase of compilation is also known as 'scanning'?
16. What is the primary goal of a linker in creating an executable program?
17. Which of the following is a common technique used by debuggers to inspect program state?
18. What does a macro expansion process involve?
19. Which system software translates symbolic machine language code into machine code?
20. What is the function of a loader's relocation mechanism?
21. What is the key difference between a compiler and an interpreter regarding output?
22. Which of the following is NOT a typical phase of compilation?
23. A 'breakpoint' in debugging refers to:
24. What is the output of the syntax analysis phase of a compiler?
25. Which system software is responsible for managing the execution of multiple programs concurrently?
26. What is the purpose of code optimization in a compiler?
27. Which of the following describes the 'just-in-time' (JIT) compilation approach?
28. What is the role of a compiler in the software development lifecycle?
29. Which part of the compiler is responsible for generating machine-independent intermediate code?
30. An absolute loader is also known as a:
31. What is the primary function of a macro processor?
32. Which of the following is a disadvantage of using an interpreter?
33. A linker resolves which of the following types of references?
34. What is the purpose of the symbol table in a compiler?
35. Which phase of compilation deals with the meaning of the statements, ensuring they are logically valid?
36. What does a debugger allow a programmer to do?
37. In the context of compilers, what is an Abstract Syntax Tree (AST)?
38. Which of the following is an example of a macro processor directive?
39. What is the main advantage of using a compiler over an interpreter?
40. A compiler typically performs all of the following steps except:
41. Which type of loader performs address modifications based on the memory addresses assigned to program segments?
42. The process of converting a high-level programming language into machine-readable code is called:
43. What is the output of the lexical analysis phase of a compiler?
44. Which phase of compilation involves checking the source code for grammatical correctness according to the rules of the programming language?
45. Which system software helps in identifying and correcting errors in a program?
46. What is a macro in the context of system software?
47. A loader is responsible for which of the following tasks?
48. What is the role of a linker in the software development process?
49. Which of the following is a characteristic of an interpreter?
50. What is the primary function of a compiler?