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:

Motivation

The process that initiates, guides, and maintains goal-oriented behaviors.

Frustrations

Feelings of dissatisfaction or annoyance arising from obstacles hindering the achievement of a goal or desire.

Planning Fallacy

The tendency to underestimate the time, costs, and risks of future actions, while overestimating the benefits, leading to overly optimistic project timelines and outcomes.

Hierarchy Of Goals

A system of organizing objectives that range from high-level, long-term goals to lower-level, short-term actions, enabling structured pursuit of ambitions.

Related Questions