Which of the following sets of statements creates a multidimensional array with 3 rows, where the first row contains 1 value, the second row contains 4 items and the final row contains 2 items?
a.
int[][] items;
items = new int[3][?];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
b.
int[][] items;
items = new int[3][];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
c.
int[][] items;
items = new int[?][?];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
d.
int[][] items;
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
B
You might also like to view...
Which of the following are not names of a C++ library function:
a) abs b) sqrt c) random d) floor e) labs
Case-Based Critical Thinking QuestionsCase 8-3Cali Polaris Jet Skis has a Web site for amateur jet skiers. The Web site displays on a computer monitor and a mobile device. However, on the mobile device the fullscreen view is small and difficult to read. Cali would like to design a style sheet appropriate for the smaller screens found on most mobile devices. You have been hired for this task. To begin, you will use a(n) ____ to develop and test Web site designs and create custom mobile Web apps without owning the hardware device.
A. SDK B. Software Development Kit C. emulator D. both a. and b.
COGNITIVE ASSESSMENT In a spreadsheet program, how is data organized?
A. in a notebook containing thousands of pages B. in columns and cells collectively called a notebook C. in rows and columns collectively called a worksheet D. in rows and columns collectively called a spreadsheet
A color scheme in Word is a document theme that identifies 24 complementary colors for text, background, accents, and links in a document.
Answer the following statement true (T) or false (F)