Psuedocode Flashcards

1
Q

What is a Pseudo-code?

A

A Pseudo-code is a half-code, half-English language used for algorithms in computer science.

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

What is a variable?

A

A variable is used to store data and can change from time to time.

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

What is the ‘If’ symbol and how do you use it?

A

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.

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

What is the ‘Else’ symbol and how do you use it?

A

The ‘Else’ symbol defines something else in the algorithm. You use it when you want another thing to happen in the algorithm.

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

What is a Boolean?

A

A boolean is a result that can only have one or two possible values

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

What do the ‘AND, OR, NOT’ commands do?

A

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.

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

What do arithmetic operators do in a line of code?

A

The ‘+’ symbol adds something.

The ‘-‘ subtracts something.

The ‘*’ multiplies something.

The ‘/’ symbol divides something.

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