Author Question: What is the value of num after the following statement is performed? num = 2 Math.pow( 2, 3 ); ... (Read 8 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 blood is deoxygenated and flowing back to the heart through the veins, it is dark reddish-blue in color. Blood in the arteries that is oxygenated and flowing out to the body is bright red. Whereas arterial blood comes out in spurts, venous blood flows.

Did you know?

There are approximately 3 million unintended pregnancies in the United States each year.

Did you know?

Most women experience menopause in their 50s. However, in 1994, an Italian woman gave birth to a baby boy when she was 61 years old.

Did you know?

If you use artificial sweeteners, such as cyclamates, your eyes may be more sensitive to light. Other factors that will make your eyes more sensitive to light include use of antibiotics, oral contraceptives, hypertension medications, diuretics, and antidiabetic medications.

Did you know?

Pink eye is a term that refers to conjunctivitis, which is inflammation of the thin, clear membrane (conjunctiva) over the white part of the eye (sclera). It may be triggered by a virus, bacteria, or foreign body in the eye. Antibiotic eye drops alleviate bacterial conjunctivitis, and antihistamine allergy pills or eye drops help control allergic conjunctivitis symptoms.

For a complete list of videos, visit our video library