U13 data representation Flashcards

1
Q

user defined data type

A
  • derived from one or more existing datatypes
  • used to extend the built-in datatypes
  • programmer’s requirement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

why are user defined data types necessary

A
  • no suitable datatype is provided by the language used
  • if a programmer needs a specific datatype
  • that meets program requirements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

non-composite datatype

A
  • single datatype that does not refer to another datatype
  • e.g: enumerated, pointer, real, string, char, boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

composite datatype

A
  • datatype that refers to other datatypes
  • data type is constructed from other datatypes
  • e.g: record, list, set, array, class, queue, linked list, dictionary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

record

A

collection of related items which may be of different datatypes

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

list

A

indexed collection that can contain different datatypes

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

set

A

supports mathematical operation

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

class

A

gives properties and methods for an object

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

array

A

collection of items of the same datatype

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

enumerated datatype

A
  • non-composite
  • defined by a given list of all possible values
  • in an order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

pointer datatype

A
  • non-composite
  • used to reference a memory location
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

dereferencing

A

getting the value in an address

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

record datatype

A
  • composite datatype
  • a collection of multiple datatypes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

declaring a range

A
  • 0-89
  • DECLARE number : 0..89
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

file organization

A

refers to the way data is stored in a file

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

serial file organization

A
  • data is stored in chronological order
  • easy to append data to the end of the file
  • allows the data to be read in order of when they were taken
  • no KEY FIELDS need to be added
16
Q

when is serial used

A
  • when chronological order matters
  • appending records
  • small file, so easy to search
  • when re-organizing as re-sorting is not required
17
Q

sequential file organization

A
  • a method of file organization in which files are stored with ordered records
  • records are stored in the order of the key fields
  • new records are inserted into their correct position
18
Q

when is sequential used

A
  • when there are unique fields, so it can be used for indexing
  • when it needs to be sorted in an order
  • batch processing (processing of transaction in a group)
19
Q

random file organization

A
  • record location is calculated
  • using a hashing algorithm on a key field
  • speed of data access is increased
  • can be used as lookup file
  • if a record cannot be stored
  • then subsequent location is searched (closed hash)
  • or an overflow area is searched (open hash - chaining)
20
Q

hashing algorithm

A

a mathematical function to find a hash key to access data

21
Q

bucketing (closed hashing)

A

a method to deal with hashing collisions in which another empty space is found

22
Q

chaining (open hashing)

A

a method to deal with hashing collisions in which linked lists are used to find the location in ROM

23
Q

rehashing (closed hashing)

A

a method to deal with hashing collisions in which another algorithm is used

24
Q

how is sequential access used

A
  • earliest reading/data is accessed first
  • each successive reading is read
  • until final reading is accessed
25
Q

floating point representation

A

representation of real numbers

26
Q

mantissa

A

the significant digits of floating point number

27
Q

exponent

A

the power of base 2 (that the mantissa is raised to)

28
Q

normalization

A

a technique that is used to make your data more accurate

29
Q

random file

A
  • can be read/write at the same time
  • contains a collection of data
  • normally as records of a fixed length
  • can be thought of as having a file pointer that can be moved to any location or address of the file
  • record at that location can then be read or written