Pseudocode Flashcards

1
Q

What do you start in the pseudocode?

A

BEGIN

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

What could you put when you INPUT something?

A

INPUT “Please enter the number of students in the class”

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

What could you put for an IF statement?

A

IF number_of_students > 5 THEN

recorded_students = 0

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

What can you put for a WHILE loop?

A

WHILE recorded_students < number_of_students
INPUT “Please enter the next students name”
STORE students_name to list_student_name
INPUT “Please enter the students test result”

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

What can you put for IF ELIF, ELSE?

A

IF test_result >=70
PRINT “Distinction has been achieved by” student_name
STORE “Distinction” to list_grade
ELIF test_result >= 51
STORE “Merit” to list_grade
ELSEIF test_result >=41
STORE “Pass” to list_grade

ELSE
STORE “Fail” to list_grade

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

What can you put for STORE?

A

STORE test_result to list_test_result

Recorded_students +=1

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

What can you also put for SORT?

A

SORT variable or list_test_result

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

What can you put for DISPLAY?

A

DISPLAY sorted list_test_result, list_grade, list_students_name

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

What can you put for WRITE?

A

WRITE results to results.txt

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

What can you lastly put for INPUT?

A

INPUT “Please enter the number of students in the class”

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