11.1 Programming basics
169 questions in this subtopic. Open a question to solve it and check the official answer.
Programming basics · 5 marks
7 …………… [3] (a) A Boolean expression produces the following truth table. INPUT OUTPUT A B C X 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0 (iv) Write the simpli…
Programming basics · 7 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Programming basics · 5 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Programming basics · 5 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Programming basics · 3 marks · official answer ready
(i) Name three components of a speaker. 1 ........................................................................................................................................ …
Programming basics · 2 marks · official answer ready
(iii) An experienced programmer is presented with program code in an unfamiliar high-level language. State two features of the code that the programmer should be able to recognise…
Programming basics · 11 marks
10 22 2 11 (c) The procedure is developed and run using the call TestRandom(200). No system errors are produced. To ensure that the procedure works correctly, you need to check th…
Programming basics · 6 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown. has been done for you. ::= .................................................................................…
Programming basics · 6 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown. has been done for you. ::= .................................................................................…
Programming basics · 3 marks · official answer ready
6 (a) The operating system (OS) contains code for performing various management tasks. The appropriate code is run when the user performs various actions. Draw a line to link each…
Programming basics · 3 marks · official answer ready
6 (a) The operating system (OS) contains code for performing various management tasks. The appropriate code is run when the user performs various actions. Draw a line to link each…
Programming basics · 10 marks · official answer ready
5 A multi-user computer system records user login information in a text file, LoginFile.txt. Each time a user successfully logs into the system, the following information is recor…
Programming basics · 10 marks · official answer ready
5 A multi-user computer system records user login information in a text file, LoginFile.txt. Each time a user successfully logs into the system, the following information is recor…
Programming basics · 1 mark · official answer ready
(i) @Temp2 .........................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(ii) IntPointer .................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iii) IntPointer^ ...............................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iv) IntPointer^ = Temp2 + 6 .....................................................................................[1] 4
Programming basics · 1 mark · official answer ready
(i) IPointer .....................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(ii) IPointer^ ...................................................................................................................[1]
Programming basics · 1 mark · official answer ready
(iii) @MyInt1 ......................................................................................................................[1]
