Lesson 1: Data Hierarchy, Variables And Constants Flashcards
(32 cards)
What is the smallest unit in a computer?
Bits
Full name ‘Binary Digits’; represents 1’s and 0’s.
What is a character in terms of data hierarchy?
The smallest unit of data, made up of bits.
What is a field in data hierarchy?
A number of characters or a name, also known as a data item.
What is a record?
A group of related fields, stored sequentially.
Define a file in data hierarchy.
A collection of related records, organised and stored in a specific way.
What is the structure of a table?
Consists of rows and columns.
What is a database?
A group of related files or tables, organised based on processing methods.
What is a data warehouse?
The largest structure for collecting and storing data for processing, analysis, and reporting.
What is unprocessed data considered?
Meaningless.
What is processed data called?
Information.
What is output in the context of data?
Processed data.
What are variables used for?
To store data that can change.
What must every variable have?
A descriptive name.
What is a key rule for naming variables?
The name must be unique.
What are the types of variables?
- String
- Integer
- Real number
- Boolean
- Character
What does the value of a variable do during program execution?
It can change.
What are constants?
Similar to variables, but have a fixed value that cannot change.
When are constants used?
When a value will never vary during program execution.
Give examples of constants.
- 24 hours in a day
- The value of Pi (3.14159)
- A specific message
How do variables and constants function in expressions?
They are used in expressions and assignment statements.
What does an assignment statement do?
Gives a value to a variable.
What are the three cases for assignment?
- Initialise, set
- Assign a value as a result of processing
- Save, store
What is a data model?
A communication tool that facilitates interaction between developers and end-users
What are the basic building blocks of data models?
Entities, attributes, relationships, and constraints