Types of programming languages Flashcards

1
Q

Types of programming languages

What is ‘machine code’?

A

A binary instruction that can run within a CPU

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

Types of programming languages
What is this?
• A binary instruction that can run within a CPU

A

machine code

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

Types of programming languages

What is ‘assembly language’?

A

• A set of mnemonic instructions, each with a machine code (binary) equivalent

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

Types of programming languages

What is this?
• A set of mnemonic instructions, each with a machine code (binary) equivalent

A

assembly language

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

Types of programming languages

Assembly language is known as a ‘low level language’. What does that mean?

A

• It is almost the same as machine code. There is a direct link between an instruction in assembly and the machine code it represents

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

Types of programming languages

What is this describing?

• It is almost the same as machine code. There is a direct link between an instruction in assembly and the machine code it represents

A

Assembly language

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

Types of programming languages

What is an ‘instruction set’?

A

• The complete set of commands available is the instruction set of the CPU

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

Types of programming languages
What does this describe?

• The complete set of commands available is the instruction set of the CPU

A

Instruction Set

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

Types of programming languages

Give one advantage for using assembly language?

A

• Programs run very fast compared to programs written in high level language, because there is less code overall

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

Types of programming languages
What is this?

• Programs run very fast compared to programs written in high level language, because there is less code overall

A

one advantage for using assembly language

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

Types of programming languages

Give two features of a high level language

A
  • It has a set of keywords such as PRINT or IF

* It has a set of grammar rules (syntax) which define how to combine the keywords correctly

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

Types of programming languages

What is this?
• It has a set of keywords such as PRINT or IF
• It has a set of grammar rules (syntax) which define how to combine the keywords correctly

A

two features of a high level language

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

Types of programming languages

Give three examples of a high level language which could be used to write source code

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

Types of programming languages

What are these?

A

three examples of a high level language which could be used to write source code

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

Types of programming languages

High level languages are machine independent. What does this mean?

A

• They can be ported to different computers and still run

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

Types of programming languages
What does this describe?
• They can be ported to different computers and still run

A

machine independent language

17
Q

Types of programming languages

What is a translator?

A

• A piece of software that converts programming code into machine code

18
Q

Types of programming languages
What is this?
• A piece of software that converts programming code into machine code

A

a translator

19
Q

Types of programming languages

List the three different types of translators

A
  • Assembler
  • Complier
  • Interpreter
20
Q
Types of programming languages
What are these?
•	Assembler
•	Complier
•	Interpreter
A

the three different types of translators

21
Q

Types of programming languages

What is the purpose of an ‘assembler’?

A

• It converts assembly language instructions into machine code

22
Q

Types of programming languages
What is this?
• It converts assembly language instructions into machine code

A

the purpose of an ‘assembler’

23
Q

Types of programming languages

What is the purpose of a ‘compiler’?

A

• It converts high level source code into machine code

24
Q

Types of programming languages
What is this?
• It converts high level source code into machine code

A

the purpose of a ‘compiler’

25
Types of programming languages What file type will be created after using a compiler?
• .exe (executable) file
26
Types of programming languages What is this? • .exe (executable) file
the file type will be created after using a compiler
27
Types of programming languages | Give one benefit of using an executable file format
• It doesn’t require the complier or source code to be present to be run
28
Types of programming languages | What is the purpose of an ‘interpreter’?
• It converts a single line of high level source into machine code and then immediately runs it
29
Types of programming languages What is this? • It converts a single line of high level source into machine code and then immediately runs it
the purpose of an ‘interpreter’?
30
Types of programming languages Complete these sentences: Compilers and Compiled Code - ????????? compile all of the source code in one go - Compilers create an ?????????? file - Programs created with compilers can be run without the compiler or ?????? ???? being present - Compiled code tends to run faster than ??????????? code.
Compilers and Compiled Code - Compilers compile all of the source code in one go - Compilers create an executable file - Programs created with compilers can be run without the compiler or source code being present - Compiled code tends to run faster than interpreted code.
31
Types of programming languages Complete these sentences: Interpreters and Interpreted code - Interpreters compile the ????? ???? line by line - Interpreters don’t create an ????????? file - Interpreters are ????????for the code to be run - Interpreter code tends to run very ??????
Interpreters and Interpreted code - Interpreters compile the source code line by line - Interpreters don’t create an executable file - Interpreters are required for the code to be run - Interpreter code tends to run very slowly