Free Programming Basics MCQs with Answers
53 Programming Basics MCQs from Computer Science and IT, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.
53 questions · page 1 of 6
1. A computer program that translates one program instructions at a time into machine language is called a/an___________?
- A. Interpreter
- B. CPU
- C. Compiler
- D. Simulator
Explanation: An interpreter translates and executes a program one statement or instruction at a time. A compiler translates the complete source program before execution, so it is not the intended choice.
Correct answer: Interpreter2. In assembly languages symbols are used instead of binary code, these symbols are called?
- A. Mnemonics
- B. ALGOL
- C. Procedures
- D. None of these
Explanation: Assembly language uses mnemonics such as ADD, MOV, and SUB as readable substitutes for machine instructions represented in binary. ALGOL is a programming language, not the name for these symbols.
Correct answer: Mnemonics3. In which language is source program written?
- A. English
- B. Symbolic
- C. High Level
- D. None of these
Explanation: A source program is generally written by a programmer in a high-level programming language before being translated into machine code. Symbolic language is a lower-level representation, such as assembly language.
Correct answer: High Level4. BASIC stands for ________?
- A. Basic All Purpose Symbolic Instruction Codes
- B. Beginners All Purpose Symbolic Instruction Codes
- C. Beginners All Purpose Symbolic Intelligent Codes
- D. Beginners Anti Purpose Symbolic Instruction Codes
Explanation: BASIC expands to Beginners' All-purpose Symbolic Instruction Code. It was designed as an accessible high-level programming language for beginners.
Correct answer: Beginners All Purpose Symbolic Instruction Codes5. The symbols used in an assembly language are _________?
- A. Code
- B. Assembler
- C. Mnemonics
- D. All of the above
Explanation: Assembly language uses mnemonics such as MOV, ADD, and SUB as symbolic forms of machine instructions. An assembler translates these mnemonics into machine code, so it is not the name of the symbols themselves.
Correct answer: Mnemonics6. Multithreading is also called as:__________?
- A. Concurrency
- B. Simultaneity
- C. Crosscurrent
- D. Recurrent
Explanation: Multithreading allows multiple threads to make progress within a program, which is a form of concurrency. Simultaneity strictly means occurring at exactly the same time, so it is not the usual term here.
Correct answer: Concurrency7. The process to remove errors in a program is called_________?
- A. Compiling
- B. Executing
- C. Bug
- D. Debugging
Explanation: Debugging is the process of locating and correcting errors, or bugs, in a program. Compiling translates source code, whereas executing runs the program.
Correct answer: Debugging8. ___________ languages are close to humans?
- A. Low level languages
- B. Assembly languages
- C. High level languages
- D. None of these
Explanation: High-level languages use commands and structures that are relatively close to human language and easier to write. Low-level and assembly languages are closer to machine instructions.
Correct answer: High level languages9. Procedural language is ___________ generation language.
- A. 1st
- B. 2nd
- C. 3rd
- D. 4th
Explanation: Procedural languages such as C, FORTRAN and Pascal are generally classified as third-generation languages because they use higher-level instructions closer to human problem-solving than machine or assembly language.
Correct answer: 3rd10. Pseudo code is similar to ___________?
- A. Machine language
- B. Simple English
- C. Scientific language
- D. All of these
Explanation: Pseudocode describes program logic using simple, structured English-like statements without following the strict syntax of a programming language. It is therefore easier for humans to read than machine or scientific language.
Correct answer: Simple English