Free Programming Basics MCQs with Answers
183 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.
Programming basics covers algorithms, flowcharts, pseudocode, variables, constants, data types, operators, input and output, conditional statements and loops. It also introduces functions, arrays, strings, debugging and common programming errors, with attention to the difference between syntax errors, runtime errors and logical errors in a program.
Last updated
183 questions · page 1 of 10
- 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: Interpreter- 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: Mnemonics- 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 Level- 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 Codes- 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: Mnemonics- 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: Concurrency- 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: Debugging- 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 languages- 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: 3rd- 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- A. Software
- B. Process
- C. Procedure
- D. Compiler
Explanation: A computer program is a set of instructions that directs the computer to perform tasks, and such instructions collectively form software. A compiler translates a program but is not the program itself.
Correct answer: Software- A. Job Queue
- B. PCB queue
- C. Device Queue
- D. Ready Queue
Explanation: Operating systems commonly maintain job, ready and device queues for processes. A PCB is the process control block describing a process, not normally a standard process queue in this classification.
Correct answer: PCB queue- A. Process
- B. Thread
- C. program
- D. None of these
Explanation: A thread is the basic unit of CPU utilization and scheduling within a process. A process is a larger resource-owning program instance that may contain one or more threads.
Correct answer: Thread- A. Lotus
- B. Pascal
- C. MS-Excel
- D. Netscape
Explanation: Pascal is a programming language designed for structured programming. Lotus, MS-Excel, and Netscape are software applications rather than programming languages.
Correct answer: Pascal- A. Software
- B. Program
- C. Code
- D. All Of These
Explanation: A compiler is a software program that translates source code into machine code or another lower-level form. “Code” describes what the compiler processes or contains, not the compiler itself, so “program” is the most precise option.
Correct answer: Program- A. Php
- B. javaScript
- C. Python
- D. None
Explanation: Angular is a web-application framework in the JavaScript ecosystem, although modern Angular applications are written primarily in TypeScript. JavaScript is therefore the intended choice among these options.
Correct answer: javaScript- A. 7
- B. 1.5
- C. 2
- D. 12
Explanation: Evaluate the parentheses first: (7−3)×(1+6)÷4 = 4×7÷4 = 7. Multiplication and division are then performed from left to right.
Correct answer: 7- A. FORTH
- B. LOGO
- C. APL
- D. ALGOL
- E. None of these
Explanation: FORTH became notably popular on microcomputers because it was compact, fast, and suitable for systems with limited resources. LOGO was mainly associated with educational programming, while APL and ALGOL were less typical choices for microcomputer users.
Correct answer: FORTH- A. Lower efficiency
- B. Machine dependence
- C. Machine level coding
- D. None of the above
Explanation: High-level languages are easier for humans to write but generally have lower efficiency than machine-level code because they require translation and additional processing. Machine dependence and machine-level coding are associated with low-level languages.
Correct answer: Lower efficiency- A. PL/1
- B. FORTRAN
- C. BASIC
- D. PASCAL
Explanation: Pascal was specifically designed to encourage structured programming through procedures, functions and clear control structures. The other listed languages are not as strongly associated with structured-programming education.
Correct answer: PASCALProgramming Basics MCQs: common questions
Are these Programming Basics MCQs free?
Yes. All Programming Basics MCQs from Computer Science and IT are free on TestUstad, with unlimited attempts and no account needed. Nothing on this page is a sample or a trial.
How many Programming Basics MCQs are on this page?
There are 183 Programming Basics MCQs in the Computer Science and IT bank, shown 20 to a page with the correct answer and an explanation on each.
Does every Programming Basics MCQ have an explanation?
Yes. Each Programming Basics question shows the correct option and a written explanation of why it is correct, so a wrong answer teaches you something rather than just being marked wrong.
Can I take a timed Programming Basics test?
Yes. The practice button on this page starts a free Programming Basics test drawn from the Computer Science and IT bank. It marks each answer instantly, gives you a score at the end, and can be retaken as many times as you like.