11.1 Programming basics
104 questions in this subtopic. Open a question to solve it and check the official answer.
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…
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…
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.…
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…
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]
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]
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…
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…
Programming basics · 17 marks · official answer ready
(d) Write a logic expression which tests this condition. [2] 7
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 …
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
Programming basics · 16 marks · official answer ready
(ii) What useful information does this pseudocode output? For Examiner's Use [1]
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]
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]
Programming basics · 16 marks · official answer ready
(v) Write pseudocode to demonstrate your answer to (iv). [1] 10
Programming basics · 17 marks · official answer ready
(vii) Could this pseudocode be written using a FOR-ENDFOR structure? Justify your answer. [2] 11
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]
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…
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…
Programming basics · 17 marks · official answer ready
(d) Write a logic expression which tests this condition. [2] 7
