Programming languages and Integrated Development Environments Flashcards

1
Q

What’s an example of a high and low level language?

A

High - python
Low - Assembly

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

What is the purpose of low level languages?

A

When a program needs to be executed quickly or when programmers need a code that directly interacts with the hardware

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

What is low level languages instructions to machine code?

A

Don’t resemble natural human language
One instruction translates to one machine code

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

What is the purpose of high level language?

A

Leads to less mistakes and more powerful and complex commands

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

What is high level languages instructions to machine code?

A

Commands like english
One instruction translates to many instructions

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

What type of processor can high level languages run on?

A

Can be run on different types of processors

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

What type of processor can low level languages run on?

A

Only one specific type of processor

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

What is the data structure for a high level language?

A

Doesn’t directly work with memory

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

What is the data structure for a low level language?

A

Works with memory directly

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

What is the ease for coding in high level language?

A

Easy to write and understand

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

What is the ease for coding in low level language?

A

Difficult to write and understand

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

What is the memory efficiency of high level languages?

A

Less memory efficient

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

What is the memory efficiency of low level languages?

A

More memory efficient

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

What is the speed of execution for a high level language?

A

Slower as it can’t be directly accessed by the CPU

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

What is the speed of execution for a low level language?

A

Faster

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

Why are language translators needed?

A

It’s a program that translates source code into machine code

15
Q

What is source code?

A

Code written by the programmer

16
Q

What is machine code?

A

Code that’s executed by the computer

17
Q

What is the execution method of an interpreter?

A

Translates one line of code at a time into machine code and then executes it

18
Q

What is the execution method of an compiler?

A

Translates all the source code into machine code in one go
Produces an executable file that will be run on other machines

19
Q

Compare the execution speed of a compiler and a interpreter:

A

Compiler takes a long time to analyse source code but overall execution is faster
Interpreter has to translate each line of code so the overall execution time is slower

20
Q

Compare the complexity of a compiler and a interpreter:

A

Compilers are large complex programs
Interpreters are smaller, simpler programs

21
Q

Compare the error reporting of a compiler and a interpreter:

A

Compiler generates an error report after scanning the whole program
Interpreter develops an error report as soon as one is detected which stops the program

22
Q

Compare the memory efficiency of a compiler and a interpreter:

A

Interpreters are more memory efficient as no object code is generated

23
Q

When is a compiler and interpreter used?

A

A compiler is used once the program has been written and tested
A interpreter is used during the development of a program

24
Q

What is an IDE?

A

An Integrated Development Environment - provide programmers with tools to help create programs

25
Q

What is an editor?

A

Is software that allows programmer to enter and edit source code

26
Q

Features of editor:

A

Automatic formatting
Automatic line numbers
Automatic line colouring
Statement completion

27
Q

What is an error diagnostic?

A

Displays information about an error. Like what line it’s on, what type of error

28
Q

What are some of the facilities of IDE’s

A

Editor
Error diagnostics
Run-time environment
Translators

29
Q

What is a run-time environment?

A

Allows the program to be run and allows user to test program

30
Q

What are examples of translators?

A

Compiler and interpreter

31
Q

How do translators help the programmer?

A

Interpreters allows the programmer during the development of code
Compilers allow the program to run without being compiled again