Past year Dec 2022 multiple choice question

Question 1: Identify THREE (3) types of error in programming.

Question 2: Identify the CORRECT answer to represent the statement shown in Figure A2.

Figure A2

Question 3: Identify the acceptable ways to define variables.

Question 4: Identify the suitable symbol that is used for initialisation in Programming.

Question 5: Choose the CORRECT C++ syntax to declare a variable named "Äddress" of string type.

Question 6: Choose the suitable answer for a variable based on statement shown in Figure A6.

Figure A6

Question 7: Trace the output in Figure A7 below.

Figure A7

Question 8: Determine the output for the following code in Figure A8.

Figure A8

Question 9: Identify the answer that is NOT related to looping control structure.

Question 10: Identify the number of repetitions that will occur for the following looping control structure in Figure A10.

Figure A10

Question 11: Choose the CORRECT C++ statement to print "Welcome to C++ code" 12 times.

Question 12: Given the following code in Figure A12, identify the value of "y" after the following switch statement is executed.

Figure A12

Question 13: Based on Figure A13 below, choose the output for value x, y and z.

Figure A13

Question 14: Determine the output, based on the code given in Figure A14 below.

Figure A14

Question 15: Select the CORRECT answer to explain arrays.

Question 16: Identify elements in the following array in Figure A16 below.

Figure A16

Question 17: Choose the CORRECT structure declaration based on the statement in Figure A17 below.

Figure A17

Question 18: Determine the output for Figure A18 below.

Figure A18

Question 19: Determine the output for Figure A19 below.

Figure A19

Question 20: Based on code segment in Figure A20, choose the statement to display the value of "Age".

Figure A20

Question 21: Determine the output for Figure A21 below.

Figure A21

Question 22: Determine the CORRECT declaration for structure variable if member of structure for "Age" with initial value 19 and 34.5 for "CGPA" based on structure declaration in Figure A22.

Figure A22

Question 23: Choose the CORRECT statement that is related to function.

Question 24: Choose the INCORRECT statement that is related to function declaration.

Question 25 and 26 are based on the coding below.

Figure A25

Question 25: Choose the Function Prototype in the program above.

Question 26: Choose the Function Call in the program above.

Question 27: Select the CORRECT type of the function based on the statement below.

Figure A27

Question 28: Choose the CORRECT function header for function "Sum" which is not returned any values and receive two float type parameters.

Question 29: Determine the output based on the Figure A29 below.

Figure A29

Question 30: Determine the output based on the Figure A30 below.

Figure A30