Computer Science 9608 · 11

Programming

471 questions. Open a question to solve it and check the official answer.

Reset
2017 May-June · Paper 23 · Q5

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…

2017 May-June · Paper 23 · Q6(a)

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…

2017 May-June · Paper 23 · Q6(b)(i)

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: ...............................................…

2017 May-June · Paper 31 · Q1(c)(i)

Programming basics · 1 mark · official answer ready

(i) @Temp2 .........................................................................................................................[1]

2017 May-June · Paper 31 · Q1(c)(ii)

Programming basics · 1 mark · official answer ready

(ii) IntPointer .................................................................................................................[1]

2017 May-June · Paper 31 · Q1(c)(iii)

Programming basics · 1 mark · official answer ready

(iii) IntPointer^ ...............................................................................................................[1]

2017 May-June · Paper 31 · Q1(c)(iv)

Programming basics · 1 mark · official answer ready

(iv) IntPointer^ = Temp2 + 6 .....................................................................................[1] 4

2017 May-June · Paper 31 · Q4(b)(iii)

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…

2017 May-June · Paper 32 · Q1(c)(i)

Programming basics · 1 mark · official answer ready

(i) IPointer .....................................................................................................................[1]

2017 May-June · Paper 32 · Q1(c)(ii)

Programming basics · 1 mark · official answer ready

(ii) IPointer^ ...................................................................................................................[1]

2017 May-June · Paper 32 · Q1(c)(iii)

Programming basics · 1 mark · official answer ready

(iii) @MyInt1 ......................................................................................................................[1]

2017 May-June · Paper 32 · Q1(c)(iv)

Programming basics · 1 mark · official answer ready

(iv) IPointer^ = MyInt2 ...............................................................................................[1] 4

2017 May-June · Paper 32 · Q6(b)(i)

Constructs · 3 marks · official answer ready

(i) Complete the following pseudocode algorithm for the routine. 01 ForEver .......................................................................................................…

2017 May-June · Paper 32 · Q6(c)(ii)

Constructs · 2 marks · official answer ready

(ii) Explain what happens at step 4. ........................................................................................................................................... ..…

2017 May-June · Paper 33 · Q1(c)(i)

Programming basics · 1 mark · official answer ready

(i) @Temp2 .........................................................................................................................[1]

2017 May-June · Paper 33 · Q1(c)(ii)

Programming basics · 1 mark · official answer ready

(ii) IntPointer .................................................................................................................[1]

2017 May-June · Paper 33 · Q1(c)(iii)

Programming basics · 1 mark · official answer ready

(iii) IntPointer^ ...............................................................................................................[1]

2017 May-June · Paper 33 · Q1(c)(iv)

Programming basics · 1 mark · official answer ready

(iv) IntPointer^ = Temp2 + 6 .....................................................................................[1] 4

2017 May-June · Paper 33 · Q4(b)(iii)

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…

2017 May-June · Paper 41 · Q2(b)(i)

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…