Computing 9691 · 11

11.1 Programming basics

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

Reset
2013 October-November · Paper 22 · Q1(b)

Programming basics · 6 marks · official answer ready

(b) Each module is programmed by Jemma. For Examiner's Use Describe three program coding techniques she should use to help Freddie who will maintain the code. Technique 1 Techniqu…

2013 October-November · Paper 22 · Q1(c)(i)

Programming basics · 2 marks · official answer ready

(i) Jemma is using the variable Percentage in one module and a different variable For called Percentage in another module. Examiner's Use Explain the feature of a high-level progr…

2013 October-November · Paper 23 · Q2(b)

Programming basics · 6 marks · official answer ready

(b) Part of Ashvin’s program will involve comparing equipment names, such as “cable” and For “capacitor”. Examiner's Use The flowchart outputs the two words in alphabetical order.…

2013 October-November · Paper 23 · Q3(b)

Programming basics · 5 marks · official answer ready

(b) A report will show all the items that have been entered on a particular day. For Examiner's Use It will show each equipment ID and where the equipment is kept. Equipment for t…

2013 May-June · Paper 13 · Q3(b)(ii)

Programming basics · 3 marks · official answer ready

(ii) Describe the input devices you would expect to see in the control room. Justify For your choice of devices. Examiner's Use Input devices Justification [3]

2013 May-June · Paper 21 · Q2(a)

Programming basics · 17 marks · official answer ready

(a) Write a logic expression to be used as the validation rule for the acceptance of data in the IsMarked field. [2]

2013 May-June · Paper 21 · Q2(c)

Programming basics · 4 marks

2 [2] One way of storing her data will be to use a file of records. Each record will contain at least the following data: Data Identifier Description of input data subject Subject…

2013 May-June · Paper 21 · Q2(c)(i)

Programming basics · 16 marks · official answer ready

(i) Meena uses three items of data to test this logic. In the table below enter ‘normal’ For or ‘borderline’ in the empty cells. Examiner's Use HandInDate Type of Data 30142015 in…

2013 May-June · Paper 21 · Q2(d)

Programming basics · 17 marks · official answer ready

(d) Write a logic expression which tests this condition. [2] 7

2013 May-June · Paper 21 · Q2(e)

Programming basics · 19 marks · official answer ready

(e) DateReturned will have to be later than HandInDate, the same or earlier than the For current date, and a mark has been entered. Examiner's Use Write pseudocode that will test …

2013 May-June · Paper 21 · Q2(f)(i)

Programming basics · 19 marks · official answer ready

(i) Complete the trace table using the data in the table above. Count Mark Mark < 40 Output [4] 9

2013 May-June · Paper 21 · Q2(f)(ii)

Programming basics · 16 marks · official answer ready

(ii) What useful information does this pseudocode output? For Examiner's Use [1]

2013 May-June · Paper 21 · Q2(f)(iii)

Programming basics · 17 marks · official answer ready

(iii) Meena has written the above pseudocode with features that make it easy to understand. State two such features. Feature 1 Feature 2 [2]

2013 May-June · Paper 21 · Q2(f)(iv)

Programming basics · 16 marks · official answer ready

(iv) State one other feature that could be introduced to this pseudocode to make it easier to understand. [1]

2013 May-June · Paper 21 · Q2(f)(v)

Programming basics · 16 marks · official answer ready

(v) Write pseudocode to demonstrate your answer to (iv). [1] 10

2013 May-June · Paper 21 · Q2(f)(vii)

Programming basics · 17 marks · official answer ready

(vii) Could this pseudocode be written using a FOR-ENDFOR structure? Justify your answer. [2] 11

2013 May-June · Paper 22 · Q2(a)

Programming basics · 17 marks · official answer ready

(a) Write a logic expression to be used as the validation rule for the acceptance of data in the IsMarked field. [2]

2013 May-June · Paper 22 · Q2(c)

Programming basics · 4 marks

2 [2] One way of storing her data will be to use a file of records. Each record will contain at least the following data: Data Identifier Description of input data subject Subject…

2013 May-June · Paper 22 · Q2(c)(i)

Programming basics · 16 marks · official answer ready

(i) Meena uses three items of data to test this logic. In the table below enter ‘normal’ For or ‘borderline’ in the empty cells. Examiner's Use HandInDate Type of Data 30142015 in…

2013 May-June · Paper 22 · Q2(d)

Programming basics · 17 marks · official answer ready

(d) Write a logic expression which tests this condition. [2] 7