11.1 Programming basics
104 questions in this subtopic. Open a question to solve it and check the official answer.
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 ...........…
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
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
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]
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 ..............................................…
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…
Programming basics · 8 marks · official answer ready
(a) Write program code to implement the flowchart opposite as the procedure VendingMachine. Programming Language ..................................................................…
Programming basics · 7 marks
(i) PROCEDURE InputScoresAndCalcAverage(BYREF Average : ........................ ) DECLARE ............................................ , .........................................…
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]
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
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]
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
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 …
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 …
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 ...................................................................................................…
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]
Programming basics · 5 marks · official answer ready
(i) The data are sent using half-duplex, serial transmission. Explain these terms: Half-duplex ....................................................................................…
Programming basics · 4 marks · official answer ready
(i) Identify the byte that contains the incorrect bit. ............................................................................................................................…
Programming basics · 4 marks
(ii) Identify the bit position that contains the incorrect bit. ...................................................................................................................…
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. ...........................................................................…
