Computer Program

Dulya Kemali Perera
1 min readSep 3, 2020

What is a Computer Program?

Set of instructions given to the computer is known as Computer program. Programmers use different programming languages to write computer programs.

Programming languages can be divided into:

  1. Low-level programming languages(Machine language & Assembly Language)
  2. High-level programming languages

Low-level programming language

  • Consiste of 1 s and 0 s
  • Machine dependent
  • A computer can directly understand its machine language
  • Tedious and error-prone for programmers


Machine Language:- 11000100110001001111000

Assembly language

  • English like abbreviations called mnemonics formed the basis
  • Clearer to humans but incomprehensible to computers
  • Need to translate to machine language using translator programs called assemblers


load salary

store total

High-level programming language

  • Instructions look almost like English and mathematical notations
  • Easy for humans to understand
  • Translator programs convert high-level programming languages into machine language


C, C++, python and java are some of the high-level programmings.

Program Code Translation

Source Code 🠆 Translator 🠚 Object Code(machine language Code)

The translator could be:

  • Assemblers(Convert assembly language programs to machine language)
  • Compilers(Convert high-level language programs to machine language)
  • Interpreters(Execute high-level language programs line by line)