Back to 课程
Computer Science GCES AQA
0% Complete
0/0 Steps
-
Representing Algorithms Aqa4 主题
-
Efficiency Of Algorithms Aqa1 主题
-
Searching Algorithms Aqa3 主题
-
Sorting Algorithms Aqa3 主题
-
Data Types Aqa1 主题
-
Programming Concepts Aqa5 主题
-
Arithmetic Relational And Boolean Operations Aqa1 主题
-
Data Structures Aqa3 主题
-
String Manipulation Aqa1 主题
-
Random Number Generation Aqa1 主题
-
Structured Programming Aqa2 主题
-
Robust And Secure Programming Aqa4 主题
-
Number Bases Aqa2 主题
-
Converting Between Number Bases Aqa3 主题
-
Units Of Information Aqa9 主题
-
Hardware And Software Aqa4 主题
-
Boolean Logic Aqa3 主题
-
Programming Languages And Translators Aqa2 主题
-
Cpu Architecture Performance And Embedded Systems Aqa4 主题
-
Memory Aqa2 主题
-
Secondary Storage Aqa3 主题
-
Fundamentals Of Computer Networks Aqa8 主题
-
Fundamentals Of Cyber Security Aqa1 主题
-
Methods Of Preventing Cyber Security Threats Aqa1 主题
-
Relational Databases Aqa2 主题
-
Ethical Legal And Environmental Impacts Aqa2 主题
课 8,
主题 3
In Progress
Records Aqa
课 Progress
0% Complete
Exam code:8525
Records
What is a record?
-
A record is a way to group together different types of data about one item
-
It is a custom structure , it stores multiple related fields all in one place
-
Unlike an array (which only stores one type of data), a record can store different types (like strings, numbers, and decimals) in the same structure
Examiner Tips and Tricks
-
Records in programming are a type of data structure used to group related data in your code
-
These are not the same as records in a database, which refer to a complete set of fields on a single entity in a table (row)
Example: A car record
RECORD Car make : String model : String reg : String price : Real noOfDoors : Integer
ENDRECORD
-
This record structure groups together all the information about one car
-
Each field has a name and a data type
DECLARE myCar : Car myCar.make ← "Toyota"
myCar.model ← "Yaris"
myCar.reg ← "AB12 XYZ"
myCar.price ← 5995.99
myCar.noOfDoors ← 5
-
myCaris one instance of theCarrecord -
You can access each field using dot notation (e.g.
myCar.make)
Responses