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 4 of 6

31. Compilers and interpreters are themselves:______________?

  • A. High-level language
  • B. Codes
  • C. Programs
  • D. Mnemonics

Explanation: A compiler or interpreter is software made up of instructions, so it is itself a program. It translates or executes code written in a programming language rather than being a language, code notation, or mnemonic.

Correct answer: Programs

32. API stands for

  • A. Algorithmic Protocol Interface
  • B. Adapter Protocol Interface
  • C. Application Programming Interface
  • D. Accellerated Programming Interface

Explanation: API means Application Programming Interface, a defined set of rules and operations through which one software component can communicate with another.

Correct answer: Application Programming Interface

33. Who was the World first Computer Programmer?

  • A. Niklaus Wirth
  • B. Ada Lovelace
  • C. Bill Gates
  • D. Dennis Ritchie

Explanation: Ada Lovelace is widely recognized as the first computer programmer because she wrote an algorithm for Charles Babbage's Analytical Engine. The other names belong to later developments in programming and computing.

Correct answer: Ada Lovelace

34. Compiler can check___________?

  • A. Syntax Error
  • B. Logical Error
  • C. Both Logical and Syntax Error
  • D. None of these

Explanation: A compiler detects syntax errors because it checks whether program statements follow the language rules. Logical errors may produce validly compiled programs but incorrect results, so they usually require testing and debugging.

Correct answer: Syntax Error

35. Process of loading and fixing or bypassing errors in computer program code is called___________?

  • A. Debugging
  • B. Defusing
  • C. Defragmenting
  • D. Defrosting

Explanation: Debugging is the process of finding and correcting errors, or bugs, in program code. Defragmenting instead reorganizes data on a storage device.

Correct answer: Debugging

36. What do you call the translator which takes assembly language program as input & produce machine language code as output?

  • A. Compiler
  • B. Interpreter
  • C. Debugger
  • D. Assembler

Explanation: An assembler translates assembly-language mnemonics and operands into machine-language instructions. A compiler generally translates a high-level language, while an interpreter executes translated statements incrementally.

Correct answer: Assembler

37. Which statement is valid about computer program?

  • A. High level languages must be converted into machine language to execute
  • B. High level language programs are more efficient and faster to execute
  • C. It is more difficult to identify errors in high level language program than in low level programs
  • D. All of above

Explanation: A high-level program must be translated into machine code, either before execution by a compiler or during execution by an interpreter. High-level code is generally easier, not harder, to understand and debug, and it is not necessarily faster than low-level code.

Correct answer: High level languages must be converted into machine language to execute

38. A(n)____________language reflects the way people think mathematically.

  • A. cross-platform programming
  • B. 3GL business programming
  • C. event driven programming
  • D. functional

Explanation: Functional languages express computation through mathematical-style functions and the evaluation of expressions. The other options describe portability, business programming, or a programming approach based on events.

Correct answer: functional

39. A(n)_____________program is one that is ready to run and does not need to be altered in any way.

  • A. Interpreter
  • B. High level
  • C. Compiler
  • D. Executable

Explanation: An executable program has been translated into a form the operating system and processor can run directly. An interpreter or compiler is a translation tool, while “high level” describes a language rather than a ready-to-run program.

Correct answer: Executable

40. A detailed written description of the programming cycle and the program, along with the test results and a printout of the program is called___________?

  • A. documentation
  • B. output
  • C. reporting
  • D. spec sheets

Explanation: Documentation records the programming process, program details, test results, and related printouts so the system can be understood and maintained. Output refers only to the results produced by a program.

Correct answer: documentation