Flashcards
16: Data Representation
Cards in this deck (12)
- 1What are the data types? 7Built-in data types
User-defined data types
Non-composite data types
Enumerated data types
Compostie user-defined data types
Pointer data types
Set data types - 2User-defined Data typeWhere the programmer includes the definition in the program
(user defines in program, if language allows) - 3Non-composite data typeA data type defined without reference to another data type
(ie integer or real simple-built in data types) - 4Enumerated data typeA non-composite user-defined data type for which the definition identifies all possible values.
(example of user-defined non-composite data type. When defined every possible value identified - values look like strings but aren't - not in quotes - values are ordinal (implied order of values)) - 5Built-in data types notes 2programming language defines range of possible values that can be assigned to a variable when its type has been chosen.
Language defines operations available for manipulating values assigned to the variable - 6What is a composite user-defined data type? What are the 2 types?Definition with reference to at least 1 other type. 2 examples:
1. Record data type: user-defined
2. Class: data type used for object-orientated programming - can create own user-defined classes, number of built in classes - 7Pointer VariableOne for which the value is the address in memory of a different variable. Value is reference to a memory location.
- 8SetA collection of data items that lacks any structure; contains no duplications and has a number of defined operations that can be performed on it.
- 9Important properties of sets 4Contains a collection of data values
No duplicate values
No organisation of data values in set
Operations: checking if value exists in set, adding new value, removing, adding set to another set, intersection. - 10Binary FileA file designed for storing data to be used by a computer program
- 11RecordA collection of fields containing data values.
(user-defined) - 12—
Information
- Description
- A Level AL Computer Science Flashcards on 16: Data Representation, created by HRYN red on 31/12/2022.
- Created by
- HRYN red
- Views
- 0
- Rating