Java SIBA Syllabus Lesson 01 MCQ - Programming Terminology PDF
Document Details
NiMa Pathirange, BIT
Tags
Related
- Pharos University Computer Skills & Programming Concepts II 2021-2022 Final Terminology PDF
- UEC02 Terminology (Summer 2023-2024) PDF
- Fundamentals Of Programming PDF
- Introduction to Python PDF
- 4th Lesson OOSE PDF
- Grundkonzepte der wissenschaftlichen Programmierung mit Python - Terminologie und Tools PDF
Summary
This document is a set of multiple-choice questions (MCQs) about programming terminology, focusing on source code, object code, translators, interpreters, and compilers. The questions cover fundamental concepts in computer science and programming languages like Python.
Full Transcript
Java SIBA Syllabus PATS Info Lesson 01: MCQ - Programming Terminology 1. Which of the following is NOT a valid definition of source code? a. A set of instructions written in a human-readable programming language. b. Code that can be di...
Java SIBA Syllabus PATS Info Lesson 01: MCQ - Programming Terminology 1. Which of the following is NOT a valid definition of source code? a. A set of instructions written in a human-readable programming language. b. Code that can be directly understood and executed by a computer. c. The code that programmers write using a programming language like Python or Java. d. Code that needs to be translated into machine code before execution. 2. What is the primary function of a compiler? a. To execute high-level language code line by line. b. To translate high-level language code into machine code all at once. c. To convert machine code back into source code. d. To manage the computer's hardware resources. 3. Which of the following is an advantage of using an interpreter? a. Faster execution speed compared to compiled programs. b. Better error messages (diagnostics) during the development process. c. Smaller program size. d. More efficient use of computer memory. 4. What is the role of a translator in programming? a. To convert source code into machine code. b. To write source code for programmers. c. To execute machine code. d. To design programming languages. 5. Which of the following is NOT a type of programming translator? a. Compiler b. Interpreter c. Assembler d. Editor 6. What is the output of a compiler? a. Source code b. Byte code c. Object code d. Executable code 7. What is another term for object code? a. Source code b. Byte code c. Machine code d. High-level code 8. Which of the following is a characteristic of compiled programs? a. They typically execute more slowly than interpreted programs. b. They are translated line by line. c. They often have a slower translation speed compared to interpreted programs. d. They are more prone to runtime errors. NiMa Pathirange, BIT WhatsApp 0094-76-4310710 Page 1 of 3 Java SIBA Syllabus PATS Info Lesson 01: MCQ - Programming Terminology 9. Which type of translator is known for its ability to support late binding (delaying decisions about program implementation until runtime)? a. Compiler b. Interpreter c. Assembler d. Linker 10. What file extension is commonly used for executable programs? a..obj b..exe c..src d..txt 11. Which of the following languages is often used to write source code? a. Machine language b. Assembly language c. Binary language d. Python 12. Why can't a computer directly understand source code? a. Source code is written in a foreign language. b. Source code uses complex mathematical equations. c. Source code needs to be converted into a format the computer's processor can recognize. d. Source code is encrypted. 13. What is the process of converting source code into object code called? a. Execution b. Interpretation c. Compilation d. Debugging 14. Which of the following best describes byte code? a. A low-level language that is specific to a particular type of computer. b. An intermediate representation of source code that can be executed by a virtual machine. c. The human-readable form of a computer program. d. A type of error that occurs during program execution. 15. Which of the following is NOT an advantage of using a high-level programming language? a. Easier to learn and write code. b. Code is more portable across different computer systems. c. Programs execute extremely quickly. d. Code is generally easier to read and understand. NiMa Pathirange, BIT WhatsApp 0094-76-4310710 Page 2 of 3 Java SIBA Syllabus PATS Info Lesson 01: MCQ - Programming Terminology Answers: 1. b) Code that can be directly understood and executed by a computer. 2. b) To translate high-level language code into machine code all at once. 3. b) Better error messages (diagnostics) during the development process. 4. a) To convert source code into machine code. 5. d) Editor 6. c) Object code 7. c) Machine code 8. c) They often have a slower translation speed compared to interpreted programs. 9. b) Interpreter 10. b).exe 11. d) Python 12. c) Source code needs to be converted into a format the computer's processor can recognize. 13. c) Compilation 14. b) An intermediate representation of source code that can be executed by a virtual machine. 15. c) Programs execute extremely quickly. NiMa Pathirange, BIT WhatsApp 0094-76-4310710 Page 3 of 3