Intro to Java Day 16 Homework
Email *
Which of the following correctly declares a N by M 2D integer array? *
1 point
What is 47 (base 8) * 13 (base 8) in base 8? *
1 point
What is the output of this code if there exists an array arr that contains {5, 4, 3, 2, 1}?

for (int x : arr) {
    System.out.print(x/2 + " ");
}
*
1 point
Supposed a problem gives you a N x M grid and tells you to do things with it. Which of the following correctly stores the given grid in an array? *
1 point
Programming question

Write a program that takes in 2 integers, N and M, and a N x M (rows x columns) array separated by spaces. Then print the average of each row.

Sample input:
3 5
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1

Sample output:
1
1
1
*
1 point
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy