1/26
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Variable
a location in memory in which you can temporarily store text or numbers
The name of a variable is called:
'identifier' or 'variable identifier'
Assigning a value in Python:
=
Pseudocode
a detailed yet readable description of what a computer program or algorithm should do
Flowchart: round-edged rectangle
start and end
Flowchart: rectangle
calculation or assignment
Flowchart: parallelogram
input or output
Flowchart: rhombus
decision
Three basic programming structures:
- sequence
- selection
- iteration
INTEGER
whole number
REAL or FLOAT
numbers that have a decimal part
BOOLEAN
a single value of either TRUE or FALSE
CHARACTER
a single alphabetic or numeric character
STRING
a sequence of characters
sequence
statements are executed in the order they are written in
selection
the next statement to be executed depends on whether the condition being tested is true or false (e.g. IF)
iteration
repetition of code
iterative statements [3]:
- FOR...ENDFOR
- WHILE...ENDWHILE
- REPEAT...UNTIL
Pseudocode assignment
←
Pseudocode output
OUTPUT("[text]")
Pseudocode input
[var] ← USERINPUT
Pseudocode for loop
FOR [var] ← [no.] TO [no.]
...
ENDFOR
Pseudocode while loop
WHILE [condition]
...
ENDWHILE
Pseudocode if statement
IF [condition] THEN
...
ELSE IF [condition] THEN
...
ELSE
...
ENDIF
Boolean operator
comparative symbols like < and >
Boolean expression
a comparative statement such as '15 > [var]'
Pseudocode repeat until statement
REPEAT
...
UNTIL [condition]