2.5 Programming Languages and IDEs Flashcards

1
Q

What is machine code?

A

Binary

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

What is assembly code?

A

Low level language, harder to understand.

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

What is source code?

A

Python and other languages like C sharp

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

How does assembly code convert into binary?

A

Uses translator assembler to convert into binary

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

How does source code convert into binary?

A

Uses translator either interpreter or compiler to convert into binary

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

What is the difference between interpreter and compiler?

A

a compiler translates an entire program into machine code before execution, creating an executable file, while an interpreter translates and executes code line by line during runtime

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

Is python interpreter or compiler?

A

Interpreter

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

What will happen with a syntax error on both compiler and interpreter ( different for both)?

A

Interpreter - Will not run with syntax error
Compiler - produces code then tells you at the end

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

Advantages and disadvantages of compiler?

A

AD - Faster, no RAM is wasted, kept secret
DISAD - wont run with syntax errors, designed for a specific processor, code needs to be recompiled

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

Advantages and disadvantages of interpreter?

A

AD - Easy to write, beginners can learn because it stops when an error occurs
DISAD - Slower to execute, Code is not optimised, source code must be available

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

What does IDE stand for and what does it do?

A

Piece of software that provides all the tools required to develop computer programs

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

What are the features of IDEs?
Why is it beneficial?

A

Automatic highlighting of syntax errors, easy for the programmer to know where they went wrong

Comment out sections of code, other developers can understand

Coloured keywords in source code - helps to show if you mis-spelt something

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