Identify 5 data types
CHAR
STRING
INTEGER
BOOLEAN
REAL
An array can store values of both the same and different data types. True or False?
False
What are the three modes for using files in pseudocode
Read, Write and APPEND
Identify three different abstract data types
Queues
Stacks
Linked lists
Describe the difference between a 1D and 2D array.
Describe the difference between appending and writing to a file
Appending- Keeps existing content and adds new data at the end of the file
Writing- Overwrites the entire file, deleting any existing content
Describe the difference between a linear queue and a circular queue
What does the term composite data type mean?
A composite data type is a data type that groups multiple values of different or the same types into a single unit
Describe why you need a nested for loop to iterate through a 2D array
Describe why files are better than arrays when storing data.
+ Easier to insert and delete items anywhere in a linked list by just changing pointers
- Uses more memory as every now contains two items the data and the pointer to the next node.
Declare a record for an employee with the following fields: employee ID, name, age, job title and salary
TYPE Employee
DECLARE EmployeeID : INTEGER
DECLARE Name : STRING
DECLARE Age : INTEGER
DECLARE JobTitle : STRING
DECLARE Salary : REAL
ENDTYPE
Describe the difference between a linear search and a bubble sort
WHILE NOT EOF
Describe how a linked list can be implemented using arrays and variables
2 1D arrays
1 for the data
1 for the pointers
The indexes are related in each array i.e. the index 1 in the first array contains the data and the same index contains the pointer to the next node.
A variable to store the starting node