Computer Science 9608 · 11

11.1 Programming basics

169 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2015 May-June · Paper 22 · Q5(d)

Programming basics · 4 marks · official answer ready

(d) The company decides to offer a discount on selected dates. A program is written to indicate the dates on which a discount is offered. The program creates a text file, DISCOUNT…

2015 May-June · Paper 23 · Q2(b)(i)

Programming basics · 3 marks · official answer ready

(i) The following four tests have been designed. Complete the test data table showing the expected results with comments. Input value Output Comment Amount FiftyDollar TwentyDolla…

2015 May-June · Paper 23 · Q2(b)(ii)

Programming basics · 5 marks · official answer ready

(ii) Complete the pseudocode. INPUT .................................................................................................................................. IF Amount > …

2015 May-June · Paper 23 · Q4(c)

Programming basics · 10 marks · official answer ready

(c) The complete data file is created with the structure shown. A new program is to be written to search the file. 00001▼007 00002▼001 The program will: 00003▼002 00004▼003 • inpu…

2015 May-June · Paper 32 · Q1(b)

Programming basics · 6 marks · official answer ready

(b) Write the Backus-Naur Form (BNF) for the syntax diagrams shown on the opposite page. ::= ......................................................................................…

2015 May-June · Paper 32 · Q1(c)

Programming basics · 2 marks · official answer ready

(c) Rewrite the BNF rule for a variable so that it can be any number of letters. ::= ..............................................................................................…

2015 May-June · Paper 33 · Q1

Programming basics · 0 marks

1 The following syntax diagrams, for a particular programming language, show the syntax of: • an assignment statement • a variable • a number • a letter • a digit • an operator As…

2015 May-June · Paper 33 · Q1(b)

Programming basics · 6 marks · official answer ready

1 The following syntax diagrams, for a particular programming language, show the syntax of: • an assignment statement • a variable • a number • a letter • a digit • an operator As…

2015 May-June · Paper 33 · Q6(c)(i)

Programming basics · 3 marks · official answer ready

(i) Describe what is meant by feedback in the above system. .......................................................................................................................…