2.4 and 2.5 Flashcards
What are the electronic circuits in a computer constructed from?
logic gates
What are the features of a high levels programming language?
Has syntax and a structure similar to English and has to be compiled/interpreted into machine code before it can be run
What is assembly language?
A low level language used to control specific hardware components
What are the two main types of translator?
a compiler and an interpreter
What are the features of a compiler?
- 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
What are the features of an interpreter?
-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
What does IDE stand for?
Integrated development environment
What is an IDE?
Software used to enter and edit source code. It can also compile programs to machine code and have debugging features. (eg. Thonny)
Name some features of debugging?
Breakpoints, a watch window, stepping
What does a breakpoint do?
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
What is a watch window used for?
To display the values of specific variables as they change with each line of code
What is stepping?
It enables the programmer to ‘step through’ the program line by line as they monitor the changes in values
Name some tools in an IDE
Error diagnostics, run time environment, translator, editor
What does a run time environment do?
Enables a program to be run- it checks for run time errors means other testing can be carried out
What does an editor do?
it enables programmers to write and edit their code