Which of the following statements will declare a two-dimensional array called scores to be of the int data type and contain 3 rows and 4 columns, while also initializing all elements to 0?

A. int scores [4][3] = 0;
B. int scores [3][4] = 0;
C. int scores[3][4] = {0};
D. int scores[0] = {4, 3};


Answer: C

Computer Science & Information Technology

You might also like to view...

now includes keyword ________ which can be used to declare variables, functions and constructors that are evaluated at compile time and result in a constant.

a. decltype b. constexpr c. emplace d. const

Computer Science & Information Technology

Match the following terms to their meanings:

I. Project II. Properties III. Modules IV. Procedures V. Code window A. Named sequences of statements that perform a series of actions for a defined task B. Attributes for a selected object in the Project Explorer C. A collection of modules and objects needed to run an application D. A workspace text editor E. Containers to organize programming code

Computer Science & Information Technology

Jennifer, the technician, has just installed a new monitor. However, when Jennifer goes to set the resolution, the maximum resolution given for the monitor cannot be set. What is the most likely issue?

A) The correct driver for the monitor has not been installed. B) The computer has a VGA port instead of a DVI port. C) The computer has not been restarted. D) The video adapter does not have enough RAM.

Computer Science & Information Technology

Which of the following is not a category of disaster?

A. Fire B. Flood C. Successful malicious attack D. Pretexting

Computer Science & Information Technology