Programming Fundamentals Flashcards

1
Q

What is iteration?

A

When a section if code is repeated

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

What is selection?

A

When a choice is given in the program that leaves multiple outcomes

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

What is a sequence?

A

The order in which programming instructions are executed

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

What is this operator == and what type is it?

A

Equal to
Comparison operator

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

What is this operator != and what type is it?

A

Not equal to
Comparison operator

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

What is this operator < and what type is it?

A

Less than
Comparison operator

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

What is this operator <= and what type is it?

A

Less than or equal to
Comparison operator

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

What is this operator >= and what type is it?

A

Greater than or equal to
Comparison operator

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

What is this operator > and what type is it?

A

Greater than
Comparison operator

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

What is this operator + and what type is it?

A

Addition
Arithmetic

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

What is this operator - and what type is it?

A

Subtraction
Arithmetic

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

What is this operator / and what type is it?

A

Division
Arithmetic

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

What is this operator * and what type is it?

A

Multiplication
Arithmetic

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

What is this operator MOD and what type is it?

A

Modulo division (remainder from division)
Arithmetic

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

What is this operator DIV and what type is it?

A

Integer division (how many times can a number go into another)
Arithmetic

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

What is this operator ^/ ** and what type is it?

A

Exponentiation (to the power off)
Arithmetic

15
Q

What does the boolean operator AND mean?

A

Both values are true to return a true value

16
Q

What does the boolean operator OR mean?

A

One of the values is true to return

17
Q

What does the boolean operator NOT mean?

A

The opposite of the value

18
Q

What is a variable?

A

A stored value that can be changed throughout the program whilst it’s running

19
Q

What’s a string?

A

A sequence of characters

20
Q

What’s an integer?

A

A whole value

21
Q

What’s a real/float?

A

A decimal number

22
Q

What’s a boolean?

A

An answer that only has two possible values

23
Q

What’s casting?

A

Changing a data type from one to another

24
Q

What is an array?

A

A static data structure that holds a fixed number of data elements

25
Q

What’s a procedure?

A

Sub program that won’t return a value

26
Q

What’s a function?

A

Similar to procedures but will return a value

27
Q

What’s a parameter?

A

Special variables used to pass values into the sub program

28
Q

What’s an arguement?

A

The actual values that the parameters take when the sub program is called