Past year Dec 2023 multiple choice question

Question 1: Identify a statement that tells the compiler to merge the codes contained in an iostream file with current source code file.

Question 2: Identify a VALID identifier.

Question 3: Based on the statement given in Figure A3, select the CORRECT answer.

Figure A3

Question 4: Name the type of variable that can be used from any part of a program, including within functions.

Question 5: Identify the CORRECT syntax to declare a constant.

Question 6: Select a syntax that allows a user to input the value of CGPA.

Question 7: Determine the output if the source code in Figure A7 is executed.

Figure A7

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

Figure A8

Question 9: Identify the syntax for 'for' statement in C++ programming.

Question 10: Select a control structure that will fulfill the situation in Figure 10.

Figure A10

Question 11: Based on the coding segment shown in Figure A11, identify the CORRECT statement.

Figure A11

Question 12: Based on coding segment shown in Figure A12, determine the fifth output.

Figure A12

Question 13: Choose the output for the code segment shown in Figure A13 if gender = M.

Figure A13

Question 14: Determine a suitable statement for Y symbol in Figure A14 that will produce output as 0 2 6 8.

Figure A14

Question 15: Select the CORRECT declaration of an array.

Question 16: Identify the maximum index for the array declared in Figure A16.

Figure A16

Question 17 and 18 are based on Figure A17.

Figure A17

Question 17: Identify the structure variable in the source code.

Question 18: Select the CORRECT syntax for X in Figure A17.

Question 19: Select the CORRECT statement that initializes a pointer.

Question 20: Choose the CORRECT answer to fill in the label I in Figure A20.

Figure A20

Question 21: Determine what will happen in the coding segment shown in Figure A21.

Figure A21

Question 22: Based on coding segment shown in Figure A22, determine the output.

Figure A22

Question 23: Name the function that calls itself.

Question 24: Select the CORRECT function prototype that receives int data type as parameter and return value as int.

Question 25: Choose the CORRECT function prototype.

Question 26: Select the CORRECT function definition that does not have any syntax error(s).

Question 27: Based on the program shown in Figure A27, indicate the CORRECT answer to fill in the blanks.

Figure A27

Question 28: Identify an INVALID statement about function.

Question 29: Choose the CORRECT output display if the program shown in Figure A29 is executed successfully.

Figure A29

Question 30: Based on program shown in Figure A30, determine the CORRECT output to be displayed.

Figure A30