Data types and structures
223 questions. Open a question to solve it and check the official answer.
Files · 2 marks · official answer ready
(ii) The image files that are displayed on the touchscreen have been corrupted. Identify two examples of utility software that could be used to recover the images. 1 .............…
Data types and records · 4 marks · official answer ready
(b) Some example data from the STAFF table is shown. StaffID StaffFirstName StaffLastName Department RemoteWorker 1 Ralph Jura E Yes 2 Luca Emcee A Yes 3 Darwin Acula F No Write a…
Data types and records · 4 marks · official answer ready
(a) The program contains these variables: Variable Data type MyChar CHAR MyString STRING MyInt INTEGER MyDOB DATE Complete the table by filling in the gaps using functions and/or …
Data types and records · 4 marks · official answer ready
(i) Write pseudocode to declare the record structure for type RentalRecord ........................................................................................................…
Arrays · 2 marks · official answer ready
(ii) A 1D array Rental containing 500 elements is used to store the data for all rental records. Write pseudocode to declare the Rental array. ....................................…
Data types and records · 5 marks · official answer ready
(b) A structure chart is used to document a different part of the program. This part of the program contains six modules: Pseudocode module header PROCEDURE Setup() PROCEDURE Rest…
Data types and records · 7 marks · official answer ready
(a) Write efficient pseudocode for the module OKToBorrow() ........................................................................................................................…
Data types and records · 3 marks · official answer ready
(b) Complete the table by giving the appropriate data type. Variable Example data value Data type Result 5.42 MonthLetter "JFMAMJJASOND" Birthday 15/11/2009 [3]
Files · 6 marks
(a) The algorithm to create the new file is expressed in steps. Complete the following numbered steps: Step 1 : open the file ..................................... in ............…
Data types and records · 2 marks · official answer ready
(ii) A function header in pseudocode is defined as: FUNCTION Pass2(Count : INTEGER) RETURNS BOOLEAN Complete the table by describing the terms used in the function header. The fir…
Data types and records · 7 marks · official answer ready
(b) A function CheckNumber() will take an integer value and return the Boolean value TRUE if the check digit is correct, otherwise return FALSE Write pseudocode for the function C…
Data types and records · 4 marks · official answer ready
(b) A structure chart is used to document a different part of the program, made up of five modules. Program notes: • module Setup calls either module Restart, or module Confirm • …
Data types and records · 8 marks · official answer ready
(a) Write efficient pseudocode for the module LoanStatus() Assume that each combination of StudentID and BookID can occur only once. ..............................................…
Data types and records · 7 marks · official answer ready
(b) A second module is defined: Module Description • called with a parameter of type STRING representing a tutor ID (as a reminder, the first three characters of a StudentID repre…
Data types and records · 1 mark · official answer ready
(ii) There is a problem that will need to be overcome before the data items can be written to a text file. As a reminder, the data items are: Data item Data type Comment the uniqu…
Data types and records · 1 mark
(i) Write the pseudocode statement to set up a variable for one record of the composite data type, ClubMember. ....................................................................…
Data types and records · 2 marks · official answer ready
(ii) Write the pseudocode statements to assign the following values to the variable set up in part (a)(i): • 984632 to Code • TRUE to FeesPaid ....................................…
Data types and records · 2 marks · official answer ready
(i) Write the pseudocode statement for the type declaration of Activity to hold the names of the available activities: Badminton, Football, Golf, Snooker, Swimming, Tennis. ......…
Data types and records · 1 mark · official answer ready
(ii) Write the new pseudocode statement required to update the declaration of Choice in the definition of ClubMember. .............................................................…
Data types and records · 1 mark
(ii) Write the pseudocode to output the data item removed from the stack with an appropriate message. .............................................................................…
