Programming Key Terms 2 Flashcards

1
Q

Variable

A

Part of a program that can be assigned a specific value. It consists of a name called the identifier and a value is assigned to it. The value can change during program execution.

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

Constant

A

Part of a program that can be assigned a specific value. It consists of a name called the identifier and a value is assigned to it. The value cannot change during program execution.

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

Comment

A

The process of adding notes to the code to help others to understand it and explain the programmers thinking.

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

Operators

A

The symbols with which you can specify the type of calculation you want to perform. Used in calculations such as +*/-

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

Arithmetic Operators

A

+, -, /, %, //, * or ^

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

Assignment Operator

A

=

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

Relational Operators

A

==, !=, >, =, <=

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

Logical Operators

A

AND, OR and NOT

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

Assignment

A

Process of assigning a value to a variable or contant using the = sign. E.g name = ‘Fred’

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

Data Types

A

Format of data in a variable or constant, such as text, number, true or false

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

Integer Data Type

A

A numerical dat type for whole numbers e.g. 123, -56

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

Real / Float Data type

A

This is used to hold numbers with decimal points, for example 3.14, 1234.0, -5.2

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

Boolean Data type

A

True or False

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

Character data type

A

A text data type for single charaters, numbers or symbols. e.g ‘a’, ‘!’, ‘2’

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

String data type

A

A text data type for a sequence of characters, numbers or symbols. e.g ‘apple’, ‘l33t!’, ‘01648963258’

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

Casting

A

The process of changing a data type from one to another

17
Q

Input statement

A

Var = INPUT(“please input a value”)

18
Q

Output statement

A

OUTPUT(“the value you entered was”, var)