Computing 9691 · 11

11.1 Programming basics

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

Reset
2016 May-June · Paper 11 · Q1

Programming basics · 4 marks · official answer ready

1 A programmer is developing an expert system. The expert system will diagnose problems in car engines. Describe four stages in the development of the expert system. 1 ...........…

2016 May-June · Paper 11 · Q7(a)

Programming basics · 4 marks · official answer ready

7 (a) Complete the truth table for the following logic circuit. A B X C INPUT Workspace OUTPUT A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 11

2016 May-June · Paper 12 · Q5(a)

Programming basics · 4 marks · official answer ready

5 (a) Complete the truth table for the following logic circuit. A B X C INPUT Workspace OUTPUT A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 11

2016 May-June · Paper 13 · Q4(a)

Programming basics · 4 marks · official answer ready

4 (a) Complete the truth table for the following logic circuit. A X B C INPUT Workspace OUTPUT A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4]

2016 May-June · Paper 21 · Q1(e)

Programming basics · 3 marks · official answer ready

(e) The pseudocode Zara wrote in part (c) has some features that make it easier to read and understand. State three such features. 1 ..............................................…

2016 May-June · Paper 23 · Q1

Programming basics · 8 marks · official answer ready

1 Zara wants to write a temperature conversion program. The program is to output a table to show Fahrenheit temperatures and their Celsius equivalents. She writes the program spec…

2016 May-June · Paper 23 · Q2(a)

Programming basics · 8 marks · official answer ready

(a) Write program code to implement the flowchart opposite as the procedure VendingMachine. Programming Language ..................................................................…

2016 May-June · Paper 23 · Q10(a)(i)

Programming basics · 7 marks

(i) PROCEDURE InputScoresAndCalcAverage(BYREF Average : ........................ ) DECLARE ............................................ , .........................................…

2016 May-June · Paper 33 · Q5(a)(i)

Programming basics · 2 marks · official answer ready

(i) Complete the identifier table: Variable Data type Description MyList ARRAY[1 : 7] OF INTEGER The given list of numbers SearchItem INTEGER The number input [2]

2015 October-November · Paper 11 · Q6(b)

Programming basics · 4 marks · official answer ready

(b) Complete the truth table for the safety system. Input Working space Output X T P V 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 10

2015 October-November · Paper 12 · Q7(b)

Programming basics · 4 marks · official answer ready

(b) Complete the truth table. Input Workspace Output A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4]

2015 October-November · Paper 13 · Q6(b)

Programming basics · 4 marks · official answer ready

(b) Complete the truth table for the safety system. Input Working space Output X T P V 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 10

2015 October-November · Paper 32 · Q5(c)(i)

Programming basics · 2 marks · official answer ready

5 A busy main road connects Town A and Town B. A large new housing development is being built near the main road. A new road from the housing development will connect to the main …

2015 October-November · Paper 32 · Q5(c)(ii)

Programming basics · 1 mark · official answer ready

5 A busy main road connects Town A and Town B. A large new housing development is being built near the main road. A new road from the housing development will connect to the main …

2015 May-June · Paper 11 · Q6(b)(i)

Programming basics · 4 marks

(i) Give the denary value if the byte contains: 7 6 5 4 3 2 1 0 0 1 1 1 1 0 0 0 ...................................................................................................…

2015 May-June · Paper 11 · Q6(b)(ii)

Programming basics · 4 marks · official answer ready

(ii) Show what binary value must be stored in the byte to represent the denary value 43. 7 6 5 4 3 2 1 0 [1]

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

Programming basics · 5 marks · official answer ready

(i) The data are sent using half-duplex, serial transmission. Explain these terms: Half-duplex ....................................................................................…

2015 May-June · Paper 11 · Q6(d)(i)

Programming basics · 4 marks · official answer ready

(i) Identify the byte that contains the incorrect bit. ............................................................................................................................…

2015 May-June · Paper 11 · Q6(d)(ii)

Programming basics · 4 marks

(ii) Identify the bit position that contains the incorrect bit. ...................................................................................................................…

2015 May-June · Paper 12 · Q8(a)(ii)

Programming basics · 1 mark · official answer ready

(ii) Study the output in your answer to part (a)(i). State what could replace this whole logic circuit. ...........................................................................…