Solved

Consider the Code Segment Below

Question 26

Multiple Choice

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;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions