Programming Flashcards

1
Q

Define:

INT

(Data Type)

A

Integer
Whole numbers only

(e.g. 0, 6, 10293, -999)

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

Define:

REAL

(Data Type)

A

Real / Float
Numbers that have a decimal point

(0e.g. 0.15, -5.87, 100.0)

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

Define:

BOOL

(Data Type)

A

Boolean
True or False value

(e.g. True, False)

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

Define:

CHAR

(Data Type)

A

Character
A single letter, number or symbol

(e.g. “A”, “k”, “5”, “-“, “$”)

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

Define:

STRING

(Data Type)

A

String
Used to represent text, it is a collection of characters

(e.g. “Hello World!”)

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

Define:

ADDITION

(Arithmetic Operator)

A

+
Adds two values together

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

Define:

SUBTRACTION

(Arithmetic Operator)

A

-
Subtracts one value from another

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

Define:

MULTIPLICATION

(Arithmetic Operator)

A

*
Multiplies one value by another

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

Define:

DIVISION

(Arithmetic Operator)

A

/
Divides one value by another
Gives an exact value

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

Define:

DIV
INTEGER DIVISION

(Arithmetic Operator)

A

//
Divides one value by another
Gives a whole number
Disregards remainder

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

Define:

MOD
MODULUS

(Arithmetic Operator)

A

%
Divides on value by another
Gives the remainder

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

Define:

==

(Comparison Operator)

A

Is equal to

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

Define:

!=

(Comparison Operator)

A

Is not equal to

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

Define:

<

(Comparison Operator)

A

Is less than

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

Define:

>

(Comparison Operator)

A

Is greater than

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

Define:

<=

(Comparison Operator)

A

Is less than or equal to

17
Q

Define:

=>

(Comparison Operator)

A

Is greater than or equal to

18
Q

Define:

Variable

A

A memory location that stores a data value under a specified name
Value can be changed or reassigned

19
Q

Define:

Constant

A

A memory location that stores a data value under a specified name
Value is assigned during design and can’t be changed

20
Q

Define:

Selection

A

Checks whether a condition is True or False, and carries out different actions depending on the result