Programming Key Terms 2 Flashcards
Variable
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.
Constant
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.
Comment
The process of adding notes to the code to help others to understand it and explain the programmers thinking.
Operators
The symbols with which you can specify the type of calculation you want to perform. Used in calculations such as +*/-
Arithmetic Operators
+, -, /, %, //, * or ^
Assignment Operator
=
Relational Operators
==, !=, >, =, <=
Logical Operators
AND, OR and NOT
Assignment
Process of assigning a value to a variable or contant using the = sign. E.g name = ‘Fred’
Data Types
Format of data in a variable or constant, such as text, number, true or false
Integer Data Type
A numerical dat type for whole numbers e.g. 123, -56
Real / Float Data type
This is used to hold numbers with decimal points, for example 3.14, 1234.0, -5.2
Boolean Data type
True or False
Character data type
A text data type for single charaters, numbers or symbols. e.g ‘a’, ‘!’, ‘2’
String data type
A text data type for a sequence of characters, numbers or symbols. e.g ‘apple’, ‘l33t!’, ‘01648963258’