Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
9 views
in Java by (45k points)

Could someone tell me what are the 4 types of Programming Language?

3 Answers

–2 votes
by (99k points)

The 4 types of Programming Language that are classified are: 

  • Procedural Programming Language
  • Functional Programming Language
  • Scripting Programming Language
  • Logic Programming Language
  • Object-Oriented Programming Language

Wish to learn a top trending Programming Language, check out Intellipaat’s online Programming courses to get trained and certified in a sought-after language. Also, watch the following video on Programming Languages for Freshers to get better fundamental knowledge. 

0 votes
by (37.3k points)

The four main types of programming languages are:

1. Imperative Languages:

This language basically works on the sequence of operations that are performed by the computer. It focuses on how to get the exact result that is expected by the user.

Examples are C, C++, Java

2. Functional Languages
Lisp, Miranda, Gopher, Haskell. Bits of JavaScript
A functional language defines every program as 1 function.

3. Procedural Languages
These are the most well-known, like C, Pascal, C++, Basic, and Java.
All of these have multiple statements that are executed in order.
A subset of these are object-oriented, which means they work with classes and objects.

4. Declarative Languages
SQL is the most obvious example. Or Prolog.
In these, you define the output you wish to receive, and an internal 'engine' figures out how this can be achieved best. These languages are less general purpose, but very powerful in their field.

In any of these languages, you can use dynamic or static typing, and it can be either interpreted or compiled.


 

0 votes
by (3.1k points)

Programs can be classified into categories of abstraction level and programming paradigms. High-level languages are the ones that are designed more for human readability and easy writing, abstracting from the complexity of machine code. Such examples include Python, Java, and Ruby; they tend towards being readable and easy to write, hence gaining huge popularity among developers.

There are four types of programming languages:

  • Low-Level Languages: These languages offer little or no abstraction from a computer's Instruction Set Architecture, making them the closest to machine code. They are highly efficient in memory usage but are difficult to read and write. Examples include Assembly language and machine code.
  • Procedural Languages: These are based on procedures or routines, which is a series of steps to carry out some task. They focus on the control flow through the program. Examples include C, Pascal, and Fortran.
  • Object Oriented Languages: These languages are based on the object concept. They encapsulate the data and use methods for manipulating that data. They allow organizing code into reusable structures, thus maintaining the code and scaling it up. Examples include Java, C++, and Python.
  • Functional Languages: Here, computation is regarded as the evaluation of mathematical functions and does not alter-state and mutable data. In such languages, function application is emphasized, and in many cases, support is given to first-class and higher-order functions. Haskell, Lisp, and Scala are examples.

Each of the above programming language styles has its advantages and is suitable for different tasks and applications.

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...