Suppose variable gender contains MALE and age equals 60, how is the expression (gender == FEMALE) && (age >= 65) evaluated?

a. The condition (gender == FEMALE) is evaluated first and the evaluation stops immediately.
b. The condition (age >= 65) is evaluated first and the evaluation stops immediately.
c. Both conditions are evaluated, from left to right.
d. Both conditions are evaluated, from right to left.

a. The condition (gender == FEMALE) is evaluated first and the evaluation stops immediately.

Computer Science & Information Technology

You might also like to view...

What is not true about an RTF formatted file?

A) It retains most of the text and paragraph formatting. B) It can be read by almost all word processors. C) Because the file size can be excessively large, you should only use it when no other format will work. D) It is a universal document format.

Computer Science & Information Technology

Consider the following statements: struct supplierType {string name;int supplierID; };struct applianceType {supplierType supplier;string modelNo;double cost; }; applianceType applianceList[25];Which of the following statements correctly initializes the cost of each appliance to 0?

A. applianceList.cost = 0; B. applianceList.cost[25] = 0; C. for (int j = 1; j < 25; j++) applianceList.cost[j] = 0; D. for (int j = 0; j < 25; j++) applianceList.cost[j] = 0;

Computer Science & Information Technology