Programming
471 questions. Open a question to solve it and check the official answer.
Programming basics · 10 marks · official answer ready
5 A multi-user computer system records user login information in a text file, LoginFile.txt. Each time a user successfully logs into the system, the following information is recor…
Constructs · 10 marks · official answer ready
(a) Write program code to implement the new function ValidatePassword. Visual Basic and Pascal: You should include the declaration statements for variables. Python: You should sho…
Constructs · 5 marks · official answer ready
(i) The function will be tested. Give a valid string to check that the function returns TRUE under the correct conditions. String1: ...............................................…
Programming basics · 1 mark · official answer ready
(i) @Temp2 .........................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(ii) IntPointer .................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iii) IntPointer^ ...............................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iv) IntPointer^ = Temp2 + 6 .....................................................................................[1] 4
Constructs · 4 marks · official answer ready
(iii) A procedure is written to insert a new record into the file. Complete the algorithm for this procedure. PROCEDURE InsertRecord(CustomerID : INTEGER) RecordKey CustomerID MOD…
Programming basics · 1 mark · official answer ready
(i) IPointer .....................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(ii) IPointer^ ...................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iii) @MyInt1 ......................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iv) IPointer^ = MyInt2 ...............................................................................................[1] 4
Constructs · 3 marks · official answer ready
(i) Complete the following pseudocode algorithm for the routine. 01 ForEver .......................................................................................................…
Constructs · 2 marks · official answer ready
(ii) Explain what happens at step 4. ........................................................................................................................................... ..…
Programming basics · 1 mark · official answer ready
(i) @Temp2 .........................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(ii) IntPointer .................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iii) IntPointer^ ...............................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iv) IntPointer^ = Temp2 + 6 .....................................................................................[1] 4
Constructs · 4 marks · official answer ready
(iii) A procedure is written to insert a new record into the file. Complete the algorithm for this procedure. PROCEDURE InsertRecord(CustomerID : INTEGER) RecordKey CustomerID MOD…
Constructs · 9 marks · official answer ready
(i) The procedure, InsertRecord, takes as a parameter the customer record to be inserted into the hash table. The procedure makes use of the function Hash. Collisions will be mana…
