Why is program translation necessary?
What is the difference between a source program and an object program?
How do interpreters differ from compilers in program translation?
What is the role of a linker in program execution?
List three basic features of an Integrated Development Environment (IDE).
Answers and Descriptions:
Answer: Program translation converts high-level code into machine-readable instructions.
Description: Computers only understand binary (machine code), so translators convert human-readable code (e.g., Python) into executable form.Answer: A source program is written in a high-level language; an object program is the machine-code output after translation.
Description: The source program (e.g., .py file) is human-readable, while the object program (e.g., .exe) is executable by the computer.Answer: Interpreters execute code line-by-line without creating an object file; compilers translate the entire code into an object file before execution.
Description: Interpreters (e.g., Pythonβs default mode) are slower but allow immediate execution, while compilers (e.g., C++) are faster but require a separate compilation step.Answer: A linker combines object code with necessary libraries to create an executable file.
Description: It resolves external references (e.g., library functions) to ensure the program runs correctly.Answer: Code editor, compiler/interpreter, debugger.
Description: An IDE provides a code editor for writing, a compiler/interpreter for execution, and a debugger for identifying and fixing errors, streamlining development.