Lesson 1: Data Hierarchy, Variables And Constants Flashcards

(32 cards)

1
Q

What is the smallest unit in a computer?

A

Bits

Full name ‘Binary Digits’; represents 1’s and 0’s.

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

What is a character in terms of data hierarchy?

A

The smallest unit of data, made up of bits.

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

What is a field in data hierarchy?

A

A number of characters or a name, also known as a data item.

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

What is a record?

A

A group of related fields, stored sequentially.

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

Define a file in data hierarchy.

A

A collection of related records, organised and stored in a specific way.

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

What is the structure of a table?

A

Consists of rows and columns.

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

What is a database?

A

A group of related files or tables, organised based on processing methods.

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

What is a data warehouse?

A

The largest structure for collecting and storing data for processing, analysis, and reporting.

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

What is unprocessed data considered?

A

Meaningless.

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

What is processed data called?

A

Information.

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

What is output in the context of data?

A

Processed data.

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

What are variables used for?

A

To store data that can change.

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

What must every variable have?

A

A descriptive name.

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

What is a key rule for naming variables?

A

The name must be unique.

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

What are the types of variables?

A
  • String
  • Integer
  • Real number
  • Boolean
  • Character
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the value of a variable do during program execution?

A

It can change.

17
Q

What are constants?

A

Similar to variables, but have a fixed value that cannot change.

18
Q

When are constants used?

A

When a value will never vary during program execution.

19
Q

Give examples of constants.

A
  • 24 hours in a day
  • The value of Pi (3.14159)
  • A specific message
20
Q

How do variables and constants function in expressions?

A

They are used in expressions and assignment statements.

21
Q

What does an assignment statement do?

A

Gives a value to a variable.

22
Q

What are the three cases for assignment?

A
  • Initialise, set
  • Assign a value as a result of processing
  • Save, store
23
Q

What is a data model?

A

A communication tool that facilitates interaction between developers and end-users

24
Q

What are the basic building blocks of data models?

A

Entities, attributes, relationships, and constraints

25
Define an entity.
An object or thing that an organisation wants to collect and store
26
Give an example of an entity.
Books in a library
27
Can an entity be abstract? True or False?
True
28
What are attributes in the context of data models?
Characteristics or descriptions of an entity
29
List three examples of attributes for the entity 'book'.
* ISBN number * Book title * Number of pages
30
What is the relationship between an entity and its attributes?
Attributes describe the features of an entity
31
Fill in the blank: The information captured about a person when obtaining library membership is referred to as _______.
[attributes]
32
What does the information about a person in the library system represent?
Attributes of the entity (the person)