Classification Of Programming Languages & Translators Flashcards

(20 cards)

1
Q

What is a processor instruction set?

A

Each processor has a set of instructions that it can understand built into when it is made, in binary

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

What are the different generations of programming languages?

A

-1St generation- No translator, machine language and is in binary
-2nd generation-Assembler, in assembly language
3rd generation-Interpreter and compiler in high level language e.g python, JavaScript
4th generational translators but normally interpreter,in declarative language e.g Coldfusion

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

What are characteristics of 1st generation programming language?

A

-Binary code
-Machine level
-Difficult for humans to understand
-Fast and efficient
-Processor specific

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

What are characteristics of 2nd generation programming language?

A

-Mnemonics
-Processor specific
-Low level
-Hardware specific

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

What are characteristic of 3rd generation programming language?

A

-Machine independent
-human readable
-simplify complex tasks
-Portable
-Imperative-programmer tells a computer how to solve a problem

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

What are characteristics of 4th generation programming languages?

A

-Specific purpose
-Easier to use
-GUI focused
-High productivity
-Written in small set of commands
-Not written with specific processor

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

What is the definition of an Imperative Language?

A

Instructions are excexuted in a programmer defined order. They describe how to solve a problem

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

What are advantages of programming using imperative high level languages compared to low level

A

-Makes it easier to understand
-Machine independent
-Simplify complex tasks

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

What are disadvantages of programming using imperative high level languages compared with low level languages?

A

-Difficult to understand
-Slower excecution speed

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

What are characteristics of a interpreter?

A

-Code translated line by line
-Stops when encounters problem with instruction to be corrected
-Enduser needs source code to run entire program

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

What are characteristics of a compiler?

A

-Whole code translated at once
-End user only needs excecutable code to run program

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

What are advantages of an interpreter?

A

-Lists error line by line
-Less memory
-Ease of use and create program
-Portable
-Compiled programs run faster

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

What are advantages of a compiler?

A

-Lists all errors found until fixed
-Better debugging
-Faster running excecutable programs

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

What is bytecode?

A

Byte code is an intermediate language that is excecutable by a runtime program like virtual machines.E.g Java uses Java Virtual machine

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

What are declarative languages?

A

Languages that specifies what the problem to be solved it but not how to solve the problem. Lass if languages including functional and logic programming languages and used facts and roles.

17
Q

What are declarative languages used in?

A

-Expert systems
-AI
-Natural language processing
-Querying a database
-Solving logic problems

18
Q

What are the two types of software?

A

-Application software
-System Software

19
Q

What are the different types of Application software?

A

-Bespoke software
-Special purpose
-General purpose

20
Q

What are the different types of system software?

A

-Operating system
-Library programs
-Translator
-Utility software