Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

Programming

languages
Banovi Ivan i Debelec
Emma

What is a programming
language?

Aprogramming languageis
aformalcomputer
languageorconstructed language
designed to communicateinstructions to
amachine, particularly acomputer.

Programming languages can be used to


createprogramsto control the behavior
of a machine or to expressalgorithms.

In mathematics and computer science,


an algorithm is a self-contained stepby-step set of operations to be
performed.

Algorithms perform calculation, data


processing, and/or automated
reasoning tasks.

Levels of programming
languages

Binary machine code


-programming language that any computer can actually
understand and execute

Low level
-corresponds closely to machine code, so that a single
low-level language instruction translates to a single
machine-language instruction

High level
-faster development of large programs

First generation (1GL)

Operation code such as addition or subtraction.

Operands . That identify the data to be


processed.

Machine language is machine dependent as it is


the only language the computer can understand.

Very efficient code but very difficult to write.

Second generation (2GL)

Assembly languages

Symbolic operation codes replaced binary


operation codes.

Assembly language programs needed to be


assembled for execution by the computer.
Each assembly language instruction is translated
into one machine language instruction.

Very efficient code and easier to write.

Third generation (3GL)

3GLs are much more machine independent


and more programmer-friendly.

A third generation language improves over


a second generation language by having
the computer take care of non-essential
details.

Most 3GLs supportstructured


programming.

Fortran,ALGOL, andCOBOL are early


examples of this sort of language.

Most popular general-purpose languages


today, such asC,C++,
Java,BASICandPascal, are also thirdgeneration languages.

Fourth generation (4GL)

A higher level language (4GL) requires fewer


instructions to accomplish a task than a third
generation language.

The concept of 4GL was developed from the


1970s through the 1990s, overlapping most of
the development of 3GL.

Examples:
-PowerBuilder
-Perl
-PHP
-Python
-Ruby

Fifth generation (5GL)

Programming languagesbased on solving using


constraints given to the program, rather than using
analgorithmwritten by a programmer.

5GL are designed to make the computer solve a given


problem without the programmer.

Used mainly inartificial intelligenceresearch

Examples:
-Prolog
-OPS5
-Mercury

Part 2 esoteric programming


languages

Arnold C

Print 1 to 10

OOK!
Hello,

World!

Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook!
Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook?
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook!
Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook. Ook? Ook.
Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook?
Ook. Ook? Ook. Ook. Ook! Ook.

Chef

the code should not


only generate valid
output but the
output must be
easy to prepare
and delicious
recipes appeal to
cooks with different
budgets
the recipes have to
be metric

Shakespeare

Everything is acted out as a play


Insults as negative values, compliments
as positives
Input and output- Listen to your heart,
Speak your mind
Variables declared in the Dramatis
Personae

reMorse

Dot
Dash
Dotty
dasher

><+.,[]
Smallest possible
compiler (200b)

Malbolge

Dantes Inferno
Designed to be
impossible to code
in
First program
appeared 2 years
after release

JavaScript

One of the most


popular
programming
languages
Bugs. Bugs. Bugs,
bugs, bugs.

You might also like