subject
Advanced Placement (AP), 07.04.2021 04:40 chem64

Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code segment is intended to display "JAVA". System. out. print(twoD[2][1]);

System. out. print(twoD[3][2]);

System. out. print(twoD[1][1]);

Which of the following code segments properly declares and initializes twoD so that the code segment works as intended?

A) String[][] twoD = {{"V", "AV", "J"}, {"JA", "VA", "A"},

{"JA", "J", "JAV"}, {"AV", "V", "A"}};

B) String[][] twoD = {{"VA", "J", "A", "V"}, {"J", "A", "V", "A"},

{"AV", "A", "JA", "V"}};

C) String[][] twoD = {{"VA", "J", "V", "JA"}, {"J", "JA", "A", "VA"},

{"J", "VA", "A", "V"}};

D) String[][] twoD = {{"A", "VA", "J", "V"}, {"VA", "A", "JA", "V"},

{"VA", "J", "A", "V"}};

E) String[][] twoD = {{"A", "V"}, {"VA", "J"}, {"J", "A"}, {"A", "AV"}};

ansver
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 14:00
How can firms use marginal analysis to determine the price of a product? a) profit maximization can occur when the marginal cost exceeds the marginal revenue. b) the total cost of production can determine the individual unit price of a product. c) marginal analysis can be used to determine at what price profit maximization occurs. d) firms can calculate the marginal cost of a product and set the price lower than the cost.
Answers: 2
question
Advanced Placement (AP), 24.06.2019 16:00
Julieโ€™s psychologist her get over her fear of spiders. which goal of psychology has the psychologist met? a.describeb.predictc.controld.explain  select the best answer from the choices providedabcd
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:30
You are a carpet installer and need to lay carpet for a room that measures 11 feet by 18 feet.how much carpet do you need to complete the job?
Answers: 1
question
Advanced Placement (AP), 26.06.2019 04:00
Analyze the misfitโ€™s statement: โ€œshe would have been a good it had been somebody there to shoot her everyday of her life.โ€
Answers: 1
You know the right answer?
Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code seg...
Questions
question
Biology, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
question
World Languages, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
question
Social Studies, 21.10.2020 01:01
question
History, 21.10.2020 01:01
question
Mathematics, 21.10.2020 01:01
Questions on the website: 13722363