2.1.2 Flashcards

1
Q

what makes a successful algorithm?

A

-correctness (successfully solves the problem)
-efficiency (solves the problem in the least possible time)

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

algorithm

A

a set of instructions used to solve a given problem

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

inputs

A

what is needed by the program to meet the requirements

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

process

A

what is going to happen to the inputs

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

output

A

what is displayed to the user

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

integer

A

whole number

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

float

A

decimal

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

string

A

text

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

boolean

A

true or false

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

what are the different types of errors?

A

-syntax errors
-logical errors

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

syntax errors

A

when the code does not comply with the grammatical rules of a programming language

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

logical errors

A

error in the way a program works, the program can run but doesn’t know what its expected to do

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

trace table

A

used to show how the values of a variable change during the execution of a program

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