Mod 1 Flashcards

1
Q

Complete set of known commands

A

Instruction List (IL)

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

Program written in a high level programming language

A

Source Code

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

A language must be correct in 4 senses:

A

Alphabetically - must be written in a recognizable script
Lexically - must use the dictionary
Syntactically - must follow rules
Semantically - must make sense

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

What is a Compilation

A

The Complier (or Translator) transforms the source program once (and after each amendment) by getting the machine code file. After, the program can be distributed worldwide (users d/n need complier to run it)

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

What is a Interpretation

A

Interpreter is a program that transforms the source program each time it is ran. The interpreter is needed to execute the source code.

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

2 ways of transforming a program from a high level programming language to machine language?

A

A compilation and interpretation

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

Advantages(3) and Disadvantages(3) of Compilation

A

Pros
1 translated code is usually faster
2 the end user may use the code without the compiler
3 the translated code is stored using machine language meaning it will stay secret
Cons
1 the compilation is a time consuming process
2 you may not be able to run the code after amendment
3 you have to have as many compilers as hardware platforms

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

Advantages (2) and Disadvantages (2) of Interpretation

A
Pros
- you can run the code whenever
- code is stored in the programming language (you don't compile your code for each architecture)
Cons
- slower to execute code
- interpreter required to run the code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Python is…

A

Interpreted, objected-oriented and high level programming language with dynamic semantics, used for general purpose programming

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

IDLE acronym and parts:

A

Integrated Development and Learning Environment
editor - support you in writing code
console - launch and stop code
debugger - launch code step by step and allowing user to inspect it at each moment of execution

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