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 SELECTExplanation / 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
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.