Answer to Question #265009 in Java | JSP | JSF for Penda

Question #265009

Study the following portion of a Jjava program and answer the questions that follows.



while(i < 4){



j = 0;



While(j < 5){



System.out.println(“Please enter the value to be stored”);



Marks[i][j] = scan.nextInt();



j++;



}



i++;



}



i)



What do we call this block of code in programming?



[5]



ii)



What is the function of this block of code?



[5]



iii)



Using a table, write out the output of these statements.



[

1
Expert's answer
2021-11-12T17:34:14-0500
  1. The block of code is called Nested while loop
  2. Stores elements of an array

Output

Please enter the value to be stored

4

Please enter the value to be stored

3

Please enter the value to be stored

5

Please enter the value to be stored

7

Please enter the value to be stored

4

Please enter the value to be stored

9

Please enter the value to be stored

8


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS