Consider the code segment below.

```
if (gender == 1)
{
if (age >= 65)
++seniorFemales;
```

This segment is equivalent to which of the following?
a. if (gender == 1 || age >= 65)
++seniorFemales;
b. if (gender == 1 && age >= 65)
++seniorFemales;
c. if (gender == 1 AND age >= 65)
++seniorFemales;
d. if (gender == 1 OR age >= 65)
++seniorFemales;

b. if (gender == 1 && age >= 65)
++seniorFemales;

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. If you use the keyword virtual in a function declaration, you must also use it in the function definition. 2. Destructors are not inherited into the derived class. 3. The assignment operator is inherited from the base class. 4. The copy constructor from the base class is not inherited into the derived class. 5. All member functions in a base class should be listed as virtual functions.

Computer Science & Information Technology

Which of the following methods is not in the Math class?

a. ceil b. abs c. parseInt d. log

Computer Science & Information Technology