Pseudocode And Flowchart Flashcards

1
Q

Condition

A

A state in a program that will be met or not met.

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

Selection

A

A statement that represents choice in an algorithm.

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

Iteration

A

Where a section of code is run repeatedly.

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

Count-controlled loop

A

Iteration that is performed a stated number of times. It is FOR LOOP

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

Condition-controlled loop

A

Iteration that continues until or while a condition is met. WHILE and REPEAT

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

The form of FOR LOOP

A

FOR….TO…NEXT

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

WHILE LOOP format

A

WHILE…DO….ENDWHILE

Possible that the code will not run. Condition is checked at the start.

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

REPEAT format

A

REPAT….UNTIL
Loop is ran at least once.
Condition is checked at the end

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

Advantages of flowchart

A
  • the sequence of steps can easily be seen
  • paths can be easily followed
  • the logic can be understood easily when represented visually
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Disadvantages of flowchart

A
  • takes a lot of time
  • changes mean redrawing
  • large flowchart hard to follow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Format of if

A

IF…THEN….ELSE…ENDIF

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

Format of CASE

A

CASE….OF….OTHERWISE….ENDCASE

Use when you have number of options.

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

Input of data

A

student = USERINPUT

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

Output

A

PRINT (“”)

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

Read line

A

name=READLINE(filename, record number)

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

Writing to file

A

WRITELINE(filename,record number, value)

17
Q

Deleting from file

A

WRITELINE(filename,record number,””)

18
Q

Procedures

A

PROCEDURE…ENDPROCEDURE

19
Q

Calling procedures

A

CALL name of procedure

20
Q

Functions

A

FUNCTION(values to be passed)
….
RETURN (values to be passed out)
ENDFUNCTION

21
Q

Calling function

A

CALL name of function(values to be passed in)