Exam Questions Flashcards
state why the computer needs to translate the code before it is executed
An interpreter translates code into machine code, instruction by instruction - the CPU executes each instruction before the interpreter moves on to translate the next instruction. Interpreted code will show an error as soon as it hits a problem, so it is easier to debug than compiled code.
describe the two differences between how a compiler and a interpreter translate the code
compiler translates code in one go whereas an interpreter translates it one code at a time
compiler reports errors at the end an interpreter stops when it finds an error
is this a high level language or a low level language
uses english like keywords such as print and while
high level language
is this a high level language or a low level language
must be translated before the code can be executed
high level language
is this a high level language or a low level language
code written is portable between different processors
high level
is this a high level language or a low level language
requires the programmer to understand the processors register and structure
low level language
define the term abstraction
removing detail focusing on certain parts of a problem
explain how authentication can be used as part of the defensive consideration for this computer system
ensures only certain users can access the system. using password as a authentication technique
what is a boolean variable ?
The boolean data type is either True or False. In Python, boolean variables are defined by the True and False keywords.
describe the two benefits to a programmer of using sub programs ?
a benefit is it allows you to keep it tidy and neat so it is easier to read for others
another benefit is that when its stored in a function you can call it multiple times
what is an algorithm
An algorithm is a specific procedure for solving a well-defined computational problem