0% found this document useful (0 votes)
0 views

Types of computer programming language

A programming language is a set of instructions that enables interaction with computers, necessary for tasks like web design and data analysis. Computers operate using bits, represented as 1s and 0s, which must be translated into machine language for execution. There are three types of programming languages: machine language, assembly language, and high-level language, with high-level languages being the most user-friendly for programmers.

Uploaded by

gajendarbanna123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Types of computer programming language

A programming language is a set of instructions that enables interaction with computers, necessary for tasks like web design and data analysis. Computers operate using bits, represented as 1s and 0s, which must be translated into machine language for execution. There are three types of programming languages: machine language, assembly language, and high-level language, with high-level languages being the most user-friendly for programmers.

Uploaded by

gajendarbanna123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Notes

What is a Programming Language?


A programming language is a set of instructions that can be used to interact with and control a computer.
These languages are used to design websites, create apps, develop operating systems, control spacecraft,
and analyze data. Programming languages are necessary because computers can't understand Engish.
Programming languages bridge this gap by helping programmers translate their commands into something
that the computer can understand and execute.

How do computers think?


Computers are made of many tiny switches that can be either on or off. When a switch is on, it is represented
by a 1. When it is off, it is represented by a 0. These 1s and 0s are called bits. Bits are the fundamental
language of nearly all computers and every program must be translated into bits before it can be executed
by the computer.
When 8 bits are grouped together, this is called a byte. A byte can represent a letter, for example, 01100001
represents 'a'. A byte can also represent a control character. For example, 00000011 signals the end of a
piece of text.
When representing a number using bits, it can be converted from its normal base 10 representation to binary.
This is called binary representation.

Types of Programming Languages

There are three types of programming languages: machine language, assembly language, and high-
level language.
Machine language is easier for the computer to understand but harder for the programmer to
understand. This is because machine language is simply the language of machines—bits.
Sometimes, programmers will develop programs directly with machine code, but because this is
difficult to understand and tedious to type, it is more common to program using assembly or a
high-level language.
Assembly language is slightly easier to understand. The bits of machine language are replaced
by numbers and English commands. Before assembly code is run by the computer, it is assembled
by an assembler. This converts the code back into the 1s and 0s of machine language that the
computer can understand.
High-Level languages use many more English commands and are significantly more readable
than assembly or machine language. Many high-level languages have built-in commands that help
the programmer write loops, create variables of different data types, and manipulate strings. It is
worth noting that all of these are possible in assembly or machine language, but high-level
languages make them much easier for the programmer to read, write, and debug. Some newer high-
level languages are scripting languages. This means that they are not compiled, or translated into
machine language, until just before the code is executed at runtime. Python, Javascript, PHP, Ruby,
and Bash are all scripting languages.

You might also like