subject

Consider the following code segment: int[][]nums = {{1, 2, 3},
{100,200,300},
{4, 6, 5},
{7,8,6}};
int sum = 0;
for(int row = 0; row < nums. length/2; row++)
{
for(int col = 0; col < nums[row].length/2; col++)
{
sum += nums[row][col];
}
}
System. out. println(sum);
What will be displayed as a result of executing this code segment?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
Consider the following code segment: int[][]nums = {{1, 2, 3},
{100,200,300},
{4, 6,...
Questions
question
History, 30.09.2021 20:50
Questions on the website: 13722367