OOD LUCK Assume all variable are properly declared and all programs are complete
ID: 3870878 • Letter: O
Question
Explanation / Answer
Here is your answers:
Answers 1:
Output of question 1 will be:
45+43%5*(23*3%3)=48
3%5+ 4/5+7/9=3
Reason: Here in question it is System.out.println("45+43%5*(23*3%3)="+(45+43%5*(23*3%2))); and "45+43%5*(23*3%3)=" is in double quote and System.out.println print as it is which is inside in double quotes and after + sign it will perform arithmatic operation and print result like here it is 48.
Answer 2: Output of question 2 will be FALSE and its output will be like:
!(x<=y-2)&&(y>=z)||(z-2!=20)=false
Reason: Because both condition is wrong. In first Condition "" !(x<=y-2)&&(y>=z) "" y>=z is false and In second condition (z-2!=20) Is false so output will be false.
I hope this solves your problem
Comment if you have any problem in above answer
And please give it a thumbs up if it solved your problem :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.