Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java1 1. Assertions. You will identify various assertions as being either always

ID: 3916769 • Letter: J

Question

Java1

1. Assertions. You will identify various assertions as being either always true, never true or sometimes true/sometimes false at various points in program execution. The comments in the method below indicate the points of interest. public static void mystery (int x, int y) l int z = 0; // Point A while (x >= y) { // Point B x=x-y; // Point c // Point D // Point E System.out.println (z + ""+x); Fill in the table below with the words ALWAYS, NEVER or SOMETIMES Point A Point B Point C Point D Point E SELECT SELECT SELECT SELECT SELECT SELECT SELECT SELECT SELECT SELECT Z- 0 SELECT SELECT SELECT SELECT SELECT

Explanation / Answer

X<Y

X==Y

Z==0

Point A

SOMETIMES

SOMETIMES

ALWAYS

Point B

NEVER

SOMETIMES

ALWAYS

Point C

SOMETIMES

SOMETIMES

ALWAYS

Point D

SOMETIMES

SOMETIMES

NEVER

Point E

ALWAYS

NEVER

NEVER

X<Y

X==Y

Z==0

Point A

SOMETIMES

SOMETIMES

ALWAYS

Point B

NEVER

SOMETIMES

ALWAYS

Point C

SOMETIMES

SOMETIMES

ALWAYS

Point D

SOMETIMES

SOMETIMES

NEVER

Point E

ALWAYS

NEVER

NEVER

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote