An instructor has a classroom with 5 rows of seats and 8 seats in each row. She wants to use an array to represent hold the students’ names as they are seated in the classroom. Which of the following is a possible correct declaration?
a) int rows = 5;
int seats_per_row = 8;
string plan [rows - 1] [seats_per_row - 1];
b) const int rows = 5;
const int seats_per_row = 8;
string plan [rows, seats_per_row];
c) int rows = 5;
int seats_per_row = 8;
string plan [rows] [seats_per_row];
d) const int rows = 5;
const int seats_per_row = 8;
string plan [rows] [seats_per_row];
d) const int rows = 5;
const int seats_per_row = 8;
string plan [rows] [seats_per_row];
You might also like to view...
Which of the following statements is false?
a. Each class can be used only once to build many objects. b. Reuse helps you build more reliable and effective systems, because existing classes and components often have undergone extensive testing, debugging and performance tuning. c. Just as the notion of interchangeable parts was crucial to the Industrial Revolution, reusable classes are crucial to the software revolution that has been spurred by object technology. d. Avoid reinventing the wheel—use existing high-quality pieces wherever possible. This software reuse is a key benefit of object-oriented programming.
A(n) ________ is an image of the computer screen
Fill in the blank(s) with the appropriate word(s).
Case OL 1-2Selena has made it her goal to become more familiar with the Ribbon at the top of the Contact Window. The Ribbon is organized into four tabs which she is now exploring.Selena wants to insert an illustration into the Notes section of the Contact window. She will choose the ____ tab.
A. Format Text B. Insert C. Contact D. Developer
With the chart selected, click the ____________________ button to format a chart with an attractive style.
Fill in the blank(s) with the appropriate word(s).