2.5 - Programming Languages and Integrated Development Environments Flashcards

1
Q

What is a low level language used for?

A

Embedded systems and device drivers where directly instructing the hardware is needed.

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

Key features of low level languages?

A

Written in assembly language or machine code; one instruction of it usually represents 1 instruction of machine code.

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

Why might programmers use a low-level language over a high-level language?

A

Don’t always need translator; you control what the CPU does and how it uses memory so programs will be more memory efficient and faster.

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

Why might programmers use high-level languages over a low-level language?

A

Easier to learn, understand, modify; data can easily be store in lots of different structures without knowing about the internal structure of the CPU.

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

Why are translators important?

A

Computers only understand machine code, so high-level languages must be translated to machine code, before computers can execute the instructions/

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

What are the two types of translators?

A

Interpreters and Compilers

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

What are the differences between a translator and an interpreter?

A

Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.

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

What are the differences between a translator and an interpreter?

A

Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.

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

What are the differences between a translator and an interpreter?

A

Compiler translates all of the source code at the same time and creates one executable file; interpreters does it one instruction at a time and doesn’t create an executable file.

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

What is the advantage of using an interpreter over a compiler?

A

Customers can see the source code so can adapt it and see how it works.

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

What are the advantages of using a compiler over an interpreter?

A

Executes faster (already in machine code, with interpreters each instruction has to be translated before execution); no need for compiler to be present when object code is run, interpreter must be installed to run program.

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

What are the key features provided by an IDE?

A

Line Numbers, Breakpoints, Code Folding, Variable Watching, Syntax Highlighting, Error Diagnostics, Run-time Environment,

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