Past year June 2023 multiple choice question

Question 1: Identify the symbol that end the C++ statement.

Question 2: Identify the CORRECT error for the statement in Figure A2.

Figure A2

Question 3: Select the CORRECT answer based on the statement in Figure A3.

Figure A3

Question 4: Identify type of variable that can be used in the main function and also outside of the functions.

Question 5: Identify the CORRECT variable declaration.

Question 6: Select the command that display "Enter 2 number" at the output screen.

Question 7: Determine the value of x based on the code segment in Figure A7.

Figure A7

Question 8: Determine the output from the expression shown in Figure A8.

Figure A8

Question 9: Identify which of the following that DOES NOT belong to looping control structure.

Question 10: Select the CORRECT command which is under selection control structure.
I. if.. else
II. nested if
III. switch.. case
IV. do.. while

Question 11: Identify the CORRECT Syntax for the C++ command 'for'.

Question 12: Identify the types of control structure involved in Figure A12

Figure A12

Question 13: Determine the CORRECT condition in Figure A13 to produce output 2, 4, 6, 8, 10.

Figure A13

Question 14: Predict the output for the code segment in Figure A14 if Grade = 'b'.

Figure A14

Question 15: Identify the CORRECT syntax to declare two-dimensional array.

Question 16: Select the structure variable from structure declaration in Figure A16.

Figure A16

Question 17: Select the value of array[3] from the declaration of array in Figure A17.

Figure A17

Question 18: Determine the declaration of two-dimensional array which can store data 2, 4, 6, 8, 10, 12, 14 and 16 in two rows.

Question 19: Determine the output based on coding segment in Figure A19.

Figure A19

Question 20: Based on the segment code in Figure A20, determine the CORRECT statement to display the value for the 'quantity' variable.

Figure A20

Question 21: Question 21 and 22 are based on the coding segment in Figure A21.

Figure A21

Question 21: Determine the value for X and Y to allowed filling of data in all row and column.

Question 22: Calculate the total number of looping to receive all the input in the array.

Question 23: Select the CORRECT symbol to terminate the function declaration.

Question 24: Choose the syntax for function definition.

Question 25: Identify the CORRECT return statement based on Figure A25.

Figure A25

Question 26: Identify the function header that receives integer data type as parameter and return value in floating point.

Question 27: Select the CORRECT declaration of prototype for the 'Maximum' function which does not return any value and receive two floating point type of parameters.

Question 28: Identify the function prototype for function definition in Figure A28.

Figure A28

Question 29: Based on the code segment in Figure A29, determine the CORRECT parameter at position B.

Figure A8

Question 30: Determine the CORRECT output based on the code segment in Figure A30.

Figure A30