Quiz Topic 4

Question 1: What is the correct way to declare and initialize a one-dimensional array named numbers in C++ with 5 elements??

Question 2: What is the correct way to access the element at the second row and third column of a 2D array named matrix in C++??

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

Figure A1

Question 4: What is the index of the last element in an array declared as int numbers[8];?

Question 5: Which of the following correctly declares a pointer to an integer?

Question 6: What will be the output of the following program based on Figure A2?

Figure A1

Question 7: What will be the output of the following program based on Figure A3?

Figure A1

Question 8: In C++, which keyword is used to declare a structure?

Question 9: Declare structure INFO that can accept details of 3 students.

Question 10: Choose the correct answer to assign values to structure member based on Figure A4?

Figure A1