2.4 and 2.5 Flashcards

1
Q

What are the electronic circuits in a computer constructed from?

A

logic gates

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

What are the features of a high levels programming language?

A

Has syntax and a structure similar to English and has to be compiled/interpreted into machine code before it can be run

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

What is assembly language?

A

A low level language used to control specific hardware components

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

What are the two main types of translator?

A

a compiler and an interpreter

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

What are the features of a compiler?

A
  • Translates the whole program in one go to produce object code
  • A compiled program executes faster, as it is already in machine code
  • It produces an executable file so the original code doesn’t need to be compiled again
  • There is no need for the compiler to be present when the object code is run
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the features of an interpreter?

A

-It translates and executes each line at a time
- It takes more time to execute, as each instruction is translated before it is executed
- The original code will be interpreted/translated every time it is run
- The interpreter must be installed to run the program

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

What does IDE stand for?

A

Integrated development environment

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

What is an IDE?

A

Software used to enter and edit source code. It can also compile programs to machine code and have debugging features. (eg. Thonny)

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

Name some features of debugging?

A

Breakpoints, a watch window, stepping

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

What does a breakpoint do?

A

It can be set to pause a program at a certain point, enabling the programmer to check the values of variables at certain points in the code to find errors

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

What is a watch window used for?

A

To display the values of specific variables as they change with each line of code

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

What is stepping?

A

It enables the programmer to ‘step through’ the program line by line as they monitor the changes in values

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

Name some tools in an IDE

A

Error diagnostics, run time environment, translator, editor

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

What does a run time environment do?

A

Enables a program to be run- it checks for run time errors means other testing can be carried out

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

What does an editor do?

A

it enables programmers to write and edit their code

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