CompTIA Tech+ (FC0-U71)Software Development ConceptsMedium

A developer is creating a program that needs to display a greeting message. The program should use a variable named `userName` to store the user's name and another variable named `greetingMessage` to store the full message 'Hello, [userName]!'. Which programming language category is typically associated with high-level, human-readable syntax and often used for web development, scripting, and rapid application development?

  1. ALow-level Language
  2. BMachine Language
  3. CHigh-level Language
  4. DAssembly Language
Show answer & explanation

Correct answer: C. High-level Language

High-level languages are characterized by human-readable syntax, abstraction from hardware details, and often include features like automatic memory management. They are commonly used for a wide range of applications, including web development, scripting, and rapid application development, fitting the description of the developer's task.

Why the other options are wrong

  • A. Low-level languages (like Assembly or Machine) are difficult for humans to read and write, and are hardware-specific.
  • B. Machine language is the lowest-level language, consisting of binary instructions, not human-readable.
  • D. Assembly language is a low-level language, closer to machine code and not 'human-readable' in the general sense.

High-level Programming Language

A high-level programming language is characterized by a strong abstraction from the computer's hardware, using a syntax closer to human language, and is designed for ease of use and portability.

  • Human-readable syntax (e.g., Python, Java, JavaScript).
  • Abstracts away hardware details (e.g., memory management).
  • Often used for general-purpose programming, web development, and applications.

Memory trick: Language levels are like layers of talking to a computer.

More Software Development Concepts questions