NEW
Font size
WorksheetsYear 12 Programming
Total questions: 15
Worksheet time: 8mins
Which data type consists of a series of character data types?
floating point
linked list
integer
string
What is the result of the operation 10 % 3?
0.30
0
1
3.33
What is the result of the operation 8 <= 3
8
3
True
False
Peter accesses a data structure in pseudocode in the following way:
CustomerDetails.name = "John"
Which data structure has he used
Queue
Record
Stack
Array
Samanatha is using a data structure that stores a collection of related information. The information contained within the collection have different data types. This data structure is most likely:
a record
an array
a dictionary
a hash table
Christine performs the following action using a data structure:
fullPlaylist.enqueue("My Sunshine.mp3")
What data structure is fullPlaylist?
What data structure is
a linked list
a queue
a stack
a record
A data structure that consists of (key, value) pairs where each key is unique is referred to as a/an
array
linked list
floating point
associative array
A hash table in a software system uses a perfect hash function. This means that the hash function:
works on all whole numbers
does not error on any input
creates a hash table with only one element in each slot
creates a hash table with an even number of elements in each slot
Rohit is writing a sorting algorithm and needs to use a data structure that can store an ordered set of elements. Each element must be connected to the next element in the list as well as to the previous element, if there is one. Which data type or structure should Rohit choose?
an associate array
a linked list
a class
a field
Eva is writing a code to handle users, and wants to use inheritance to create a special type of user that has different access to normal users. The most appropriate data structure Eva should use is
field
class
object
record
The data dictionary above has been created for a financial application for banks around Australia.
string
integer
boolean
floating point
What result will pseudocode returnResult produce given the above input?
fullStack: { “carrot”, “date”, “eggplant”, “fig” }
fullStack: { “apple”, “banana”, “carrot”, “fig” }
fullStack: { “fig”, “banana”, “carrot”, “date” }
fullStack: { “carrot”, “date”, “eggplant”, “fig” }
Internal documentation should be meaningful and provide important information about code because:
it will help the compiler read the code faster when compiling the software
it reduces the amount of effort a programmer needs to put into creating code
it makes it easier to understand code in the future
it makes the code more efficient and effective
Which naming convention has been used in the following pseudocode?
Hungarian
Camel Case
Snake Cake
Pascal
The variable named MAXIMUM_OVERDRIVE follows what naming convention?
Hungarian
Speeding Train
Screaming
Screaming Snake Case
