Programming (Intro) Flashcards
Define data
Data is a collection of facts such as values, measurements, readings or descriptions
Define character
a single number, letter or special character
Define field
a number of characters. E.g. a number of persons (120)
Define record
Records group related fields together E.g. a student record contains the student’s name and surname and the course
Define file
A collection of related records such as an employees file that contains records of all the employees employed by a specific company.
Define table
A structure made up of rows and columns
Define database
consists of a number of related files or tables
Define data warehouse
largest structure used to collect and store data for processing, analysis and reporting. May consist of several databases.
Define variable
refer to a position or location in the memory of the computer where a value can be stored.
Give the seven structures in the data hierarchy
- character; 2. field; 3. record; 4. file; 5; table; 6. database; 7. data warehouse
What is camel casing?
When you name a variable that contains more than one word e.g. Name of employee - empName
what are the names of numeric variables?
Integers and Real Numbers
What is an integer?
contains a whole number that is positive, negative or zero.
What is a real number
A positive or negative number that contains a decimal
Name the non-numeric variables
Character; String; Boolean value
Explain a string variable
consists of two or more characters and must be enclosed in quotes
A Boolean value
can only be a true (non-zero value) or false value (0)
What is the difference between a variable and a constant?
All the rules for variables apply to constants, however, constants have a fixed value throughout the program whereas variables vary
What is a constant?
a data type for which the value will not change - direct opposite of a variable
Explain “operator”
an operator is a symbol used within an expression or equation that tells the computer how to process the data
Explain “operands”
the values used in equations
Define algorithm
a set of instructions in a specific sequence to solve a problem. Must be unambiguous and precise
Explain input
data that must be processed to produce meaningful output
Explain output (information)
processed data