Skip to main content

Define programming language

Short answer

A programming language is a formal language with fixed symbols, keywords, and syntax rules used to write instructions for a computer. It has syntax and semantics, and programs are converted to machine code by a compiler, interpreter, or assembler.

What is a programming language?

A programming language is a formal language, made of a fixed set of symbols, keywords and syntax rules, that is used to write instructions (programs) for a computer to perform a task.

  • It acts as the medium between the programmer and the computer.
  • Every language has syntax (rules of writing) and semantics (meaning of statements).
  • Programs written in it are converted to machine language by a compiler, interpreter or assembler.
  • Examples: C, C++, Java, Python, FORTRAN.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Programming chapter 1 questions →