What is programming language how computer program is related with a programming language?

Definitions by TechTerms.com

The definition of Programming Language on this page is an original TechTerms.com definition. If you would like to reference this page or cite this definition, you can use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about the Programming Language definition or would like to suggest a new technical term, please contact us.

Want to learn more tech terms? Subscribe to the daily or weekly newsletter and get featured terms and quizzes delivered to your inbox.

What is programming language how computer program is related with a programming language?

Programming basics[1]

A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms.[2]

Essential features of a programming language[edit]

Fixed vocabulary[edit]

Instructions for operations do not change. For example, the command print will always print. We do not use instructions like "display" or "show" or "put on screen", we always use the same vocabulary. Each programming language has it's own vocabulary, but this vocabulary must be consistent throughout the language.

Unambiguous meaning[edit]

Instructions must be clear. Instructions should not be foggy or fuzzy (ambiguous). For example, if I want to return the absolute value of a number, I would use the instructions below:

# the built-in function for absolute value is abs(). 

abs(-212)

Consistent grammar & syntax[edit]

Throughout the programming language, the way we declare and use language features must be the same. Again, instructions must be very clear. For example, a conditional statement must always be formatted the same way. In python the use of whitespace is always the same.

if x > 0:
    print('X is greater than zero')
else:
    print(' X is equal or greater than zero')

The basics of programming languages[edit]

In order to really understand this material, we must understand the ALU - the "brain" of the computer.

An example[edit]

Below is an example of a program language designed to communicate instructions to a machine. The piano is "fed" instructions which enable it to play a simple song. The song is an example of a program. Can you imagine how difficult it might be to "write" these instructions?!?

Explain the need for higher level languages.[edit]

If you have watched the example above, you might immediately realize it would be crazy to write a complex piano piece by punching holes in a piece of paper. This is why we use high-level languages.

We need high level languages because programs are highly complex. Even a simple conditional statement would take many hours to write in assembly. Debugging our code would be almost impossible and understanding the code would be almost impossible. ]

Standards[edit]

  • State the fundamental operations of a computer.
  • Distinguish between fundamental and compound operations of a computer.
  • Explain the essential features of a computer language.
  • Explain the need for higher level languages.
  • Outline the need for a translation process from a higher level language to machine executable code.

References[edit]

  1. http://www.flaticon.com/
  2. https://en.wikipedia.org/wiki/Programming_language

A programming language is a computer language programmers use to develop software programs, scripts, or other sets of instructions for computers to execute. Although many languages share similarities, each has its own syntax.
A programming language is a computer language that is used by programmers (developers) to communicate with computers. It is a set of instructions written in any specific language ( C, C++, Java, Python) to perform a specific task.