Exam Questions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

state why the computer needs to translate the code before it is executed

A

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.

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

describe the two differences between how a compiler and a interpreter translate the code

A

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

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

is this a high level language or a low level language

uses english like keywords such as print and while

A

high level language

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

is this a high level language or a low level language

must be translated before the code can be executed

A

high level language

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

is this a high level language or a low level language

code written is portable between different processors

A

high level

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

is this a high level language or a low level language

requires the programmer to understand the processors register and structure

A

low level language

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

define the term abstraction

A

removing detail focusing on certain parts of a problem

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

explain how authentication can be used as part of the defensive consideration for this computer system

A

ensures only certain users can access the system. using password as a authentication technique

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

what is a boolean variable ?

A

The boolean data type is either True or False. In Python, boolean variables are defined by the True and False keywords.

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

describe the two benefits to a programmer of using sub programs ?

A

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

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

what is an algorithm

A

An algorithm is a specific procedure for solving a well-defined computational problem

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