intro to problem solving - pseudocode Flashcards

1
Q

components of problem solving

A

input
process
output

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

define algorithm

A

a finite step-by-step of unambiguous rules ( instruction ) to solve a problem

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

algorithm uses what language

A

human native language

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

algorithm can be implemented using

A

pseudocode
flowchart

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

define pseudocode

A

really structured English that has been formalised and abbreviated to look like the high-level computer language

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

structure of a pseudocode
( step 1 - 6 )

A
  1. start
  2. declare variables
  3. prompt and get
  4. calculate
  5. display
  6. end
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

keywords for input

A

prompt and get
read

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

prompt and get

A

indicate that input will be receive from keyboard

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

read

A

indicate that input will be retrieve from record in file

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

keywords for output

A

display, output or put
print
write

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

display, output or put

A

used when we want the output to be displayed on computer screen

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

print

A

enables output to be sent to a printer

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

write

A

enables output to be written to a file

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

arithmetic symbols in pseudocode

A

+ - addition
- - subtraction
* - multiplication
/ - division
() - parentheses

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

define desk checking

A

process of tracing through the pseudocode with some test data

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