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

41. A set of rules for telling the computer what operations to perform is called a______________?

  • A. procedural language
  • B. structures
  • C. natural language
  • D. programming language

Explanation: A programming language is a formal set of rules and symbols used to specify operations for a computer. A procedural language is only one type of programming language, not the general term.

Correct answer: programming language

42. When a logic bomb is activated by a time-related event, it is known as a____________?

  • A. Time-related bomb sequence.
  • B. Virus.
  • C. Time bomb.
  • D. Trojan horse.Computer Online Quiz

Explanation: A logic bomb triggered by a specified date or time is called a time bomb. A logic bomb can also be triggered by another condition, so the time-based trigger is what defines this subtype.

Correct answer: Time bomb.

43. When creating a computer program, the____________designs the structure of the program?

  • A. End user
  • B. System Analyst
  • C. Programmer
  • D. All of the above

Explanation: A systems analyst plans requirements and designs the overall structure of a program or system. The programmer implements that design, and the end user normally operates the finished system rather than designing it.

Correct answer: System Analyst

44. COBOL is an acronym for________________?

  • A. Common Business Oriented Language
  • B. Computer Business Oriented Language
  • C. Common Business Operated Language
  • D. Common Business Organized Language

Explanation: COBOL expands to Common Business Oriented Language, reflecting its original use in business data processing and commercial applications.

Correct answer: Common Business Oriented Language

45. Which one of the following is NOT a computer language?

  • A. MS-Excel
  • B. BASIC
  • C. COBOL
  • D. C++

Explanation: BASIC, COBOL, and C++ are programming languages. MS Excel is spreadsheet application software, not a computer language.

Correct answer: MS-Excel

46. Father of "C' programming language?

  • A. Dennis Ritchie
  • B. Prof John Keenly
  • C. Thomas Kurtz
  • D. Bill Gates

Explanation: Dennis Ritchie developed the C programming language at Bell Labs, making him widely known as its father. The other names listed are associated with different areas or are not the creator of C.

Correct answer: Dennis Ritchie

47. ____________translates and executes program at run time line by line?

  • A. Compiler
  • B. Interpreter
  • C. Linker
  • D. Loader

Explanation: An interpreter translates and executes source code one statement at a time while the program runs. A compiler generally translates the program before execution and produces object or executable code.

Correct answer: Interpreter

48. A fault in a computer program which prevents it from working correctly is known as___________?

  • A. Boot
  • B. Bug
  • C. Biff
  • D. Strap

Explanation: A bug is a fault or defect in a program that causes incorrect or unexpected behaviour. Boot refers to starting a computer, not to a programming error.

Correct answer: Bug

49. A computer program that converts an entire program into machine language is called a/an

  • A. Interpreter
  • B. Simulator
  • C. Compiler
  • D. Commander

Explanation: A compiler translates an entire source program into machine code or another lower-level form before execution. An interpreter translates and executes instructions one at a time.

Correct answer: Compiler

50. An error in software or hardware is called a bug. What is the alternative computer jargon for it?

  • A. Leech
  • B. Squid
  • C. Slug
  • D. Glitch

Explanation: Glitch is common computer jargon for a minor fault or unexpected malfunction in software or hardware. Leech, squid and slug are not standard synonyms for a computer bug.

Correct answer: Glitch