What output is produced by the following code fragment?

```
int num = 87, max = 25;
if (num >= max*2)
System.out.println("apple");
System.out.println("orange");
System.out.println("pear");

```

The second println statement is improperly indented, so the output produced is:
apple
orange
pear

Computer Science & Information Technology

You might also like to view...

Which of the following statements about PowerPoint templates is NOT true?

A) A template adds a custom layout to the master slide set. B) A template is saved as a .potx file. C) A template is a predefined layout for a group of slides. D) A template is used to standardize the design of slides in a presentation.

Computer Science & Information Technology

Describe the purpose of an IRQ line.

What will be an ideal response?

Computer Science & Information Technology