1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Paha777 [63]
3 years ago
8

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
Computers and Technology
1 answer:
cricket20 [7]3 years ago
4 0

Answer:

I, II, and III

Explanation:

The three are almost saying the same thing. the loop is one am a bit concerned about. but since the oddnum is set to false, the loop will work.

The one and two are pretty clear. to test for odd number, the easiest is to divide by two to see if there will be a remainder. That is what both first and second statement is trying to do.

You might be interested in
The part of the computer that provides access to the internet is the?
OLga [1]
Google chrome or the inner webs
8 0
4 years ago
after teaching a group of students about measuring systems and drug calculations, the instructor determines that the teaching wa
dusya [7]
  • After teaching a group of students about drug measurement and calculation systems, the instructor determines that teaching is successful when students can identify which metric system is the most widely used system.

  • The metric system is a measurement system for something that is done in a study and calculation. An example of a metric system is the meter used to measure length, grams to measure weight, milliliters to measure volume.

  • In this case, we can take an example from the application of the metric system in the world of health. A nurse uses the metric system to calculate doses and uses the liter as the base unit for measuring fluids.

Learn more about Metric System here brainly.com/question/1764307

#SPJ1

7 0
1 year ago
Which Excel function or tool will you use to display the cells that are referred to by a formula in the selected cell
Alenkasestr [34]

Answer:

Trace Precedent

Explanation:

Trace Precedent is a Microsoft Excel tool that is mostly used in auditing work to evaluate the connection or linkage between the cells in a spreadsheet. It is used to display the cells that are referred to by a formula in the selected cell. This is to locate the basis of an error in knowing how the formulas are adapted.

This can be done by clicking on the Formulas tab, then click on Formulas Auditing, then click on Trace Precedents.

Hence, in this case, the correct answer is TRACE PRECEDENTS.

7 0
3 years ago
Giving brainliest to the Person finishes this song lyric.
muminat

Answer:

the man on the silver mountain

Explanation:

because it can

5 0
2 years ago
Read 2 more answers
What are the answers for edhesive quiz 2? I can’t add more than 1 photo...
KatRina [158]

Answer:

i have no idea srry

Explanation:

hi

7 0
3 years ago
Other questions:
  • A ________ is a set of programs that manipulate the data within a database.
    12·1 answer
  • What is a block cipher algorithm that operates on 64-bit blocks and can have a key length from 32 to 448 bits?
    8·1 answer
  • Which of the following describes an acceptable print resolution?
    7·1 answer
  • What ipconfig command line option can be used to delete cached dns information from memory?​?
    9·1 answer
  • A professor is working with five teams in his marketing research class. He decides to experiment with path-goal theory in helpin
    11·1 answer
  • The program used to create the file where you want to insert the object is called the ____.
    12·1 answer
  • Which party controlled the White House and politics in the late 1800s, except for Grover
    6·2 answers
  • Haley is helping to choose members for a customer satisfaction team. Which
    6·1 answer
  • What is abbreviation of the computer​
    15·2 answers
  • Convert pounds to ounces.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!