Question: Question 1 1 pts Consider the following code which uses the int variable num: if (num = 5) { System.out.println(Three); } else { System.out.println(Two); if

 Question 1 1 pts Consider the following code which uses the

int variable num: if (num = 5) { System.out.println("Three"); } else {

System.out.println("Two"); if (num = 5) { System.out.println("Three"); 3 else if (num >=

0) { System.out.println("Two"); 3 else { System.out.println("One"); 3 lonly Ill only I

and II only land Ill only O I, II and III Question

2 What is output by the following code? int x = 9;

Question 1 1 pts Consider the following code which uses the int variable num: if (num = 5) { System.out.println("Three"); } else { System.out.println("Two"); if (num = 5) { System.out.println("Three"); 3 else if (num >= 0) { System.out.println("Two"); 3 else { System.out.println("One"); 3 lonly Ill only I and II only land Ill only O I, II and III Question 2 What is output by the following code? int x = 9; if (x / 2 = low) { if (rain = low) 1 System.out.println("Rainfall amount is normal."); } else if (rain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!