Programming Languages and IDEs Flashcards

1
Q

What is a high level programming language?

A
  • Language similar to spoken English
  • Written as source code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a low level programming language?

A
  • Language similar to the computer’s instruction set
  • Written in machine code or assembly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of using a high level programming language?

A
  • Easier to write in, understand and debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the advantages of using a low level programming language?

A
  • Quicker to execute
  • Can program anything with it (source code is limited to the commands available)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the disadvantages of using a high level language?

A
  • Slower to execute
  • Not everything can be programmed as source code due to the limited commands available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the disadvantages of using a low level language?

A
  • Difficult to write in, understand and debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is assembly?

A
  • Low level language
  • Uses mnemonics
  • Each mnemonic corresponds with a machine code instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 types of translator?

A
  • Compiler
  • Interpreter
  • Assembler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a translator?

A

A program that either:
- Converts source code into machine code
- Converts assembly code into machine code

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

What is a compiler?

A

A translator that converts into machine code in one go

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

What is an interpreter?

A

A translator that translates lines one by one as the program is running

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

What is an assembler?

A

A translator that converts assembly into machine code

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

What are the advantages of compilers?

A
  • The program runs quickly because it has already been translated
  • They optimise code
  • Compiled programs can be supplied as executable files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the advantages of interpreters?

A
  • Instructions are executed as soon as they are translated
  • This means when errors occur they can be easily spotted since the program stops running
  • This also means less memory is required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the disadvantages of compilers?

A
  • Takes up lots of memory because program is translated at once
  • The program needs to be recompiled whenever an edit is made to the code
  • Program will not run if it contains syntax errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the disadvantages of interpreters?

A
  • Programs run slower since the processor has to wait for each line to be translated before it is run
  • Program has to be translated every time it is run
  • They don’t optimise code
17
Q

What does IDE stand for?

A

Integrated Development Environment

18
Q

What is an IDE?

A

A program that allows a user to code and provide assistance with tools such as an RTE and an editor

19
Q

Name 4 common tools in an IDE

A
  • Editors
  • Error diagnostics
  • Run-time environment
  • Translator
20
Q

What are editors?

A

Software that allows programmers to write and edit code

21
Q

What tools do editors often come with? Why do these help?

A
  • Automatic line numbering
  • Syntax highlighting
  • Auto-indenting

Increases the readability of code

22
Q

What does RTE stand for?

A

Run-time environment

23
Q

What is an RTE?

A

Software that allows a program to run on a computer even if It is not designed to run on it

24
Q

What is the purpose of error diagnostics?

A

To help programmers to locate and fix bugs

25
Q

What error diagnostic tools are there that help to fix bugs?

A
  • Breakpoints
  • Variable tracing
  • Identifying syntax errors
26
Q

What do breakpoints do?

A

Allow a program to be paused or stopped at predetermined points

27
Q

What does variable tracing do?

A

Allow the programmer see the changing values of variables as the program runs

28
Q

What is folding?

A

When areas of code are collapsed or expanded