Psuedocode Flashcards
What is a Pseudo-code?
A Pseudo-code is a half-code, half-English language used for algorithms in computer science.
What is a variable?
A variable is used to store data and can change from time to time.
What is the ‘If’ symbol and how do you use it?
An ‘If’ symbol indicates if an event happened, then something else in the algorithm will happen. You use it if you want to conclude something into detail.
What is the ‘Else’ symbol and how do you use it?
The ‘Else’ symbol defines something else in the algorithm. You use it when you want another thing to happen in the algorithm.
What is a Boolean?
A boolean is a result that can only have one or two possible values
What do the ‘AND, OR, NOT’ commands do?
The ‘AND’ command adds something to the algorithm, the ‘OR’ command gives another option in the algorithm, and the ‘NOT’ command doesn’t give a specific command to the algorithm.
What do arithmetic operators do in a line of code?
The ‘+’ symbol adds something.
The ‘-‘ subtracts something.
The ‘*’ multiplies something.
The ‘/’ symbol divides something.