Levels Of Programming Flashcards

1
Q

How can levels of programming be distinguished?

A

Based on their level of abstraction from the computer’s hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is machine language and to what generation does it belong?

A

A first generation language consisting of binary code that the computer’s CPU directly understands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List some characteristics of machine language.

A
  • Difficult to read and write for humans
  • Machine dependent
  • Provides maximum control over hardware.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is assembly language and to what generation does it belong?

A

A second generation language that introduces symbolic representations (mnemonics) for machine instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List some characteristics of assembly language.

A
  • Is still machine independent
  • Has good control over the hardware
  • Easier to understand and write compared to machine language.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe low level language and to what generation does it belong.

A

Belongs to the third generation, providing some control structures like loops and conditional statements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List some characteristics of low level languages.

A
  • Operate close to the hardware
  • More human readable than assembly
  • Some level of hardware control is still possible.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are high level languages and to what generation do they belong?

A

Third and fourth generation languages designed to be more human friendly and abstract away many hardware details.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List some examples of high level programming languages.

A
  • Java
  • Python
  • C++
  • JavaScript
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are very high level languages and to what generation do they belong?

A

Fourth and fifth generation languages that focus on specific problem domains and may use declarative programming styles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

List some examples of very high level programming languages.

A
  • SQL
  • Prolog
  • Lisp
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the classification of programming languages based on generations?

A
  • First generation (binary code)
  • Second generation (mnemonics)
  • Third generation (Procedural or OOP)
  • Fourth generation (declarative)
  • Fifth generation (logic and constraint programming)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the classification of programming languages based on paradigms?

A
  • Imperative programming
  • Declarative programming
  • Event-driven programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe imperative programming and its sub classifications.

A

Focuses on how to achieve a result by specifying the steps the computer must take.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List the sub classifications of imperative programming.

A
  • Procedural programming
  • Object-Oriented Programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe declarative programming and its sub classifications.

A

Focuses on the desired result rather than how to achieve it.

17
Q

List the sub classifications of declarative programming.

A
  • Logic programming
  • Functional programming
  • Dataflow programming
18
Q

Describe event-driven programming.

A

Program execution is driven by events such as user actions or sensor inputs.

19
Q

Describe the levels of abstraction in programming.

A
  • Low-level programs are closer to the hardware
  • High level programs are more abstract.
20
Q

Mention the classification by purposes in programming.

A
  • General-Purpose languages
  • Domain-specific languages
21
Q

Mention the classification by execution in programming.

A
  • Compiled languages
  • Interpreted languages
  • Hybrid languages
22
Q

List the characteristics of programming languages.

A
  • Syntax
  • Semantics
  • Data types
  • Control structures
  • Abstraction Mechanisms
  • Portability
  • Performance
  • Readability
23
Q

Why is it important to understand programming language classifications?

A

To choose the right programming language for a specific task or project.