Programming Language Concepts - paradigms, models, programming environments, binding times, syntax and translation stages - Question Bank
1. A 'parse tree' represents the syntactic structure of a program, which is generated by the:
2. The process of assigning memory to a variable during program execution is an example of binding at:
3. Which of the following is a characteristic of a 'declarative' programming approach?
4. What is the main advantage of using an interpreter over a compiler for certain tasks?
5. A 'symbol table' is primarily used by which compiler stages?
6. Which paradigm uses recursion and immutability as core concepts?
7. What is a 'syntax error'?
8. Which binding time is associated with the definition of language keywords and operators?
9. In the context of programming language translation, what is 'intermediate representation'?
10. The concept of 'encapsulation' is central to which programming paradigm?
11. Which translation stage deals with the structure and grammar of the code?
12. What is the role of a 'debugger' in a programming environment?
13. Static typing in a programming language means type checking is primarily done at:
14. A dynamic language typically performs more binding at:
15. Which of the following is NOT typically considered a programming paradigm?
16. What is a common characteristic of 'pure' functional programming languages?
17. Which programming model focuses on the flow of control and data through a sequence of operations?
18. What is the primary goal of the 'code generator' stage?
19. Type checking is typically performed during which translation stage?
20. Which translation stage is responsible for identifying if a sequence of tokens forms a valid structure according to the grammar rules?
21. What is a 'token' in lexical analysis?
22. The association of a variable name with its scope is an example of binding that occurs at:
23. Which binding time is associated with the process of connecting different pieces of compiled code?
24. Just-In-Time (JIT) compilation is a technique often used in:
25. What is a 'virtual machine' in the context of programming environments?
26. SQL (Structured Query Language) is a prime example of which programming paradigm?
27. Which programming paradigm is characterized by a focus on 'what' needs to be computed rather than 'how'?
28. The 'linker' is responsible for:
29. What is the final stage of a typical compiler?
30. Code optimization aims to:
31. Intermediate code generation typically occurs after which stage?
32. What is the purpose of the 'semantic analyzer' in a compiler?
33. Syntax analysis (parsing) checks the source code for:
34. What is the output of the 'parser' in a compiler?
35. Lexical analysis (scanning) breaks the source code into:
36. What is the typical first stage in the translation process of a compiled language?
37. An 'interpreter' typically executes source code by:
38. What is the primary role of a 'compiler'?
39. Which of the following describes the 'semantics' of a programming language?
40. What is 'syntax' in the context of programming languages?
41. Binding a variable to a memory location typically happens at which binding time?
42. Which binding time occurs earliest in the software development lifecycle?
43. Binding refers to the association of a name with a thing. What is 'binding time'?
44. Which of the following is an example of a programming environment component?
45. What does a 'programming environment' typically include?
46. Which programming paradigm is based on mathematical logic and formal reasoning?
47. What is a common model for imperative programming?
48. In functional programming, what is a key characteristic of functions?
49. Which programming paradigm emphasizes the concept of 'objects' with data and methods?