Data types and structures
283 questions. Open a question to solve it and check the official answer.
Data types and records · 6 marks · official answer ready
(b) A function, IsEmailValid, is to be written to test for a valid email address format. An email address has a valid format if it obeys the following three rules: 1. It contains …
Data types and records · 6 marks · official answer ready
(i) Procedural high-level languages usually support different data types. Give an appropriate data type for each data value in the following table: Data value Data type FALSE 03/0…
Data types and records · 2 marks
(a) Describe the purpose of the algorithm. ........................................................................................................................................…
Data types and records · 8 marks · official answer ready
3 A 1D array, Product, of type STRING is used to store information about a range of products in a shop. There are 100 elements in the array. Each element stores one data item. The…
Data types and records · 9 marks · official answer ready
5 A sports club maintains a record of the email address of each of its members. The details are stored in a text file, EmailDetails.txt. The format of each line of the text file i…
Data types and records · 6 marks · official answer ready
(i) Procedural high-level languages usually support different data types. Give an appropriate data type for each data value in the following table. Data value Data type 27 "27" "2…
Data types and records · 8 marks · official answer ready
3 (a) A multi-user computer system stores information about users. It uses a 1D array, UserNameArray, of type STRING. There are 100 elements in the array. The format of the string…
Data types and records · 6 marks · official answer ready
(b) A function, IsEmailValid, is to be written to test for a valid email address format. An email address has a valid format if it obeys the following three rules: 1. It contains …
Files · 1 mark · official answer ready
(iii) The computer has recently been slow to load large files. The user has deleted a large number of small files to try to solve the problem. A friend has advised that there is a…
Data types and records · 3 marks · official answer ready
(b) The following diagram shows part of a structure chart. Checkout B A C Card Account payment payment Examples of the data items that correspond to the arrows are given in this t…
Data types and records · 2 marks · official answer ready
(iii) A program consisting of several modules may be tested using a process known as stub testing. Explain this process. ..........................................................…
Data types and records · 0 marks · official answer ready
3 READFILE (MyFile, String2)
Data types and records · 5 marks · official answer ready
(b) The function is to be tested. Give a valid string that could be used to check that the function returns TRUE under the correct conditions. String1: ...........................…
Data types and records · 3 marks · official answer ready
(b) The following diagram shows part of a structure chart. Checkout B A C Card Account payment payment Examples of the data items that correspond to the arrows are given in this t…
Data types and records · 2 marks · official answer ready
(iii) A program consisting of several modules may be tested using a process known as stub testing. Explain this process. ..........................................................…
Data types and records · 1 mark · official answer ready
(i) Write a pseudocode statement to declare a variable, Book, of type LibraryBookRecord. ..........................................................................................…
Data types and records · 1 mark · official answer ready
(ii) Write a pseudocode statement that assigns ‘Dune’ to the Title of Book. .......................................................................................................…
Data types and records · 1 mark · official answer ready
(i) Write a pseudocode statement to declare a variable, NewFriend, of type MyContactDetail. .......................................................................................…
Data types and records · 1 mark · official answer ready
(ii) Write a pseudocode statement that assigns 129 to the HouseNumber of NewFriend. ...............................................................................................…
Files · 3 marks · official answer ready
(i) File A organisation ............................................................................................................. Justification ...............................…
