Examlex

Solved

If (Amount > 1000)

question 55

Multiple Choice

if (amount > 1000)
    result = 1;
Else
   if (amount > 500)
      result = 2;
   else
      if (amount > 100)
          result = 3;
      else
          result = 4;
Using the above code segment, w hat is stored in result when amount is equal to 14?


Definitions:

Ego

In Sigmund Freud’s theory, the structure that begins to develop in response to the fact that instinctual demands of the id are not always immediately met. The ego develops to curb the desires of id so that the individual does not suffer any unpleasant consequences.

Reality Principle

A psychoanalytic concept involving the ability of the mind to assess the external world and act upon it accordingly, often in contrast to the pleasure principle.

Right and Wrong

Fundamental concepts relating to ethics and morality, guiding behavior as acceptable or unacceptable.

Related Questions