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

When Gabriel Fahrenheit invented the first mercury thermometer, he called "zero degrees" the lowest temperature he was able to attain with a mixture of ice and salt. For the upper point of his scale, he used 96°, which he measured as normal human body temperature (we know it to be 98.6° today because of more accurate thermometers).

Did you know?

It is believed that humans initially contracted crabs from gorillas about 3 million years ago from either sleeping in gorilla nests or eating the apes.

Did you know?

Cutaneous mucormycosis is a rare fungal infection that has been fatal in at least 29% of cases, and in as many as 83% of cases, depending on the patient's health prior to infection. It has occurred often after natural disasters such as tornados, and early treatment is essential.

Did you know?

The lipid bilayer is made of phospholipids. They are arranged in a double layer because one of their ends is attracted to water while the other is repelled by water.

Did you know?

Cocaine was isolated in 1860 and first used as a local anesthetic in 1884. Its first clinical use was by Sigmund Freud to wean a patient from morphine addiction. The fictional character Sherlock Holmes was supposed to be addicted to cocaine by injection.

For a complete list of videos, visit our video library