Evaluate Code Segments that Iterate Over Two-dimensional Array
Need Help? Check out these resources!
Evaluating Expressions
|
Grab a Piece of Paper! |
Evaluate each expression. Verify your answer by running the code in the Java Playground. |
Practice 1: Two-Dimensional Array Assigning Values
- Trace the provide code segment and predict the output.
- Verify your prediction is correct by running the code in the Java Playground.
Practice 2: Summing Part of Two-Dimensional Array
- Trace the provide code segment and predict the output.
- Verify your prediction is correct by running the code in the Java Playground.
- Modify the code to sum all values in the second row. Run your code to check if it is correct.
Practice 3: School Attendance
- Trace the provide code segment and predict the output.
- Verify your prediction is correct by running the code in the Java Playground.
Practice 4: Fruit Ripeness
- Trace the provide code segment and predict the output.
- Verify your prediction is correct by running the code in the Java Playground.
Practice 5: Find Minimum
- Trace the provide code segment and predict the output.
- Verify your prediction is correct by running the code in the Java Playground.
- Modify the code segment to find the maximum values instead. Run your code to verify it is correct.