Author Question: What is the value of num after the following statement is performed? num = 2 Math.pow( 2, 3 ); ... (Read 15 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?

In the ancient and medieval periods, dysentery killed about ? of all babies before they reach 12 months of age. The disease was transferred through contaminated drinking water, because there was no way to adequately dispose of sewage, which contaminated the water.

Did you know?

In 2006, a generic antinausea drug named ondansetron was approved. It is used to stop nausea and vomiting associated with surgery, chemotherapy, and radiation therapy.

Did you know?

The FDA recognizes 118 routes of administration.

Did you know?

Asthma is the most common chronic childhood disease in the world. Most children who develop asthma have symptoms before they are 5 years old.

Did you know?

About 600,000 particles of skin are shed every hour by each human. If you live to age 70 years, you have shed 105 pounds of dead skin.

For a complete list of videos, visit our video library