Translators and facilities of languages Flashcards

1
Q

advantages of a high level language: (2)

A

-easier for programmers to understand
-contain words from natural language

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

characteristics of machine code: (2)

A

-the computer’s own language
-binary/ mnemonics

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

what are the two types of low level languages?

A

machine code and assembly language

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

what is the purpose of a translator?

A

converts source code into machine code/ assembly language for the computer to process it and execute the instructions.

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

2 types of translator?

A

compilers and interpretors

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

what does a compiler do?

A

takes the source code as a whole and translates it into object code all in one go

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

what does a translator do?

A

translates source code into object code one instruction at a time

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

advantage of a compiler? (2)

A

-can be supplied as an executable file
-compiled programs run quickly, since they have already been translated.

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

disadvantage of a compiler? (2)

A

-do not usually spot errors
-This makes it harder to see where the errors lie.

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

advantage of an interpreter? (2)

A

Errors can be quickly spotted - program stops running and the user is notified at which part of the program the interpretation has failed.
This makes interpreters extremely useful when developing programs.

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

disadvantage of an interpreter? (2)

A

-Interpreted programs run more slowly as the processor has to wait for each instruction to be translated before it can be executed.
-the program has to be translated every time it is run.

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

what do IDEs help programmers to produce?

A

error-free, maintainable code.

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

what do editors allow programmers to do?
what do they improve about code?

A

write and edit code
its readability

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

features of an editor?

A

automatic line numbering
colour coding
auto-correct
auto-suggestion
auto-indent

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

what do debugging tools help a programmer in?

A

locating and fixing errors

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

features of debugging tools?

A

error tapping- identifying the line with the syntax errors

17
Q

what does a run time environment do?

A

allows a program to run on a computer, even if it is not designed to run on it.