Author Question: What is the value of num after the following statement is performed? num = 2 Math.pow( 2, 3 ); ... (Read 7 times)

fagboi

  • Hero Member
  • *****
  • Posts: 535
What is the value of num after the following statement is performed? num = 2  Math.pow( 2, 3 );
 
  a) 16
  b) 18
  c) 64
  d) 8

Question 2

Which of the following is true?
 
  a) for and while structures both increment their counters before the body statement is performed.
  b) for and while structures both increment their counters after the body statement is performed.
  c) for loops increment before the body statement is performed and while loops increment after the
  body statement is performed
  d) for loops increment after the body statement is performed and while loops increment in either condition or body



tanna.moeller

  • Sr. Member
  • ****
  • Posts: 328
Answer to Question 1

Ans: (a)

Answer to Question 2

Ans: (d)



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

More than 30% of American adults, and about 12% of children utilize health care approaches that were developed outside of conventional medicine.

Did you know?

Sperm cells are so tiny that 400 to 500 million (400,000,000–500,000,000) of them fit onto 1 tsp.

Did you know?

Human stomach acid is strong enough to dissolve small pieces of metal such as razor blades or staples.

Did you know?

Certain chemicals, after ingestion, can be converted by the body into cyanide. Most of these chemicals have been removed from the market, but some old nail polish remover, solvents, and plastics manufacturing solutions can contain these substances.

Did you know?

Russia has the highest death rate from cardiovascular disease followed by the Ukraine, Romania, Hungary, and Poland.

For a complete list of videos, visit our video library