If r is an instance of the above Person class and oddNum has been declared as a variable of type boolean, which of the following correctly sets oddNum to true if Person object r has an odd number of children and to false otherwise?

oddNum = ( ( r.numChildren() % 2 ) != 0 );

if ( ( r.numChildren() % 2 ) == 0 )

oddNum = false;

else

oddNum = true;

oddNum = false;

for ( int k = 0 ; k < r.numChildren() ; k++ )

oddNum = !oddNum;

I only

II only

III only

I and II only

I, II, and III