Examlex

Solved

What Would Be the Value of Bonus After the Following

question 15

Multiple Choice

What would be the value of bonus after the following statements are executed?
Int bonus, sales = 85000;
Char dept = 'S';
If (sales > 100000)
If (dept == 'R')
Bonus = 2000;
Else
Bonus = 1500;
Else if (sales > 75000)
If (dept == 'R')
Bonus = 1250;
Else
Bonus = 1000;
Else
Bonus = 0;


Definitions:

Compress

To reduce the size of a file or data set by using algorithms to eliminate redundancy without losing the core information.

Image Resolution

The detail an image holds, typically measured in pixels per inch (PPI), affecting its clarity and quality.

Compress

To reduce the size of a file or data set without significantly affecting its original content or quality, often to save storage space or speed up transmission.

Document Properties

Metadata associated with a document, including author, title, subject, and creation or modification dates, among others.

Related Questions