subject

Consider the following code segment, which is intended to create and initialize the 2D array words where the length of each word corresponds to the product of the indices of the row and the column it resides in. String[][] words = /*missing code */;
Which of the following initializer lists could replace /*missing code*/ so that the code segment works as intended?

A
{{"", "a", "as"}, {"", "b", "be"}, {"", "d", "don"}}

B
{{"a", "as", "ask"}, {"b", "be", "bet"}, {"d", "do", "don"}}

C
{{"", "", ""}, {"", "b", "be"}, {"", "do", "dont"}}

D
{{"a", "a", "a"}, {"", "b", "be"}, {"d", "do", "dont"}}

E
{{"", "", ""}, {"", "b", "be"}, {"", "d", "do"}}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
You know the right answer?
Consider the following code segment, which is intended to create and initialize the 2D array words w...
Questions
question
English, 17.12.2020 08:00
question
Mathematics, 17.12.2020 08:00