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

Moderate
  • A. Interpreter
  • B. CPU
  • C. Compiler
  • D. Simulator

Explanation: An interpreter translates and executes a program one statement or instruction at a time.

Correct answer: Interpreter
Moderate
  • 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.

Correct answer: Mnemonics
Moderate
  • 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.

Correct answer: High Level
Hard
  • 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…

Correct answer: Beginners All Purpose Symbolic Instruction Codes
Moderate
  • 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.

Correct answer: Mnemonics
Hard
  • 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.

Correct answer: Concurrency
Moderate
  • A. Compiling
  • B. Executing
  • C. Bug
  • D. Debugging

Explanation: Debugging is the process of locating and correcting errors, or bugs, in a program.

Correct answer: Debugging
Moderate
  • 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.

Correct answer: High level languages
Hard
  • 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…

Correct answer: 3rd
Hard
  • 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…

Correct answer: Simple English
Moderate
  • 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.

Correct answer: Software
Very hard
  • A. Job Queue
  • B. PCB queue
  • C. Device Queue
  • D. Ready Queue

Explanation: Operating systems commonly maintain job, ready and device queues for processes.

Correct answer: PCB queue
Hard
  • 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.

Correct answer: Thread
Moderate
  • 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…

Correct answer: Pascal
Very hard
  • 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.

Correct answer: Program
Hard
  • 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…

Correct answer: javaScript
Hard
  • A. 7
  • B. 1.5
  • C. 2
  • D. 12Science

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
Very hard
  • 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.

Correct answer: FORTH
Moderate
  • 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…

Correct answer: Lower efficiency
Moderate
  • 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.

Correct answer: PASCAL

Programming 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.