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

Patients who have undergone chemotherapy for the treatment of cancer often complain of a lack of mental focus; memory loss; and a general diminution in abilities such as multitasking, attention span, and general mental agility.

Did you know?

The Food and Drug Administration has approved Risperdal, an adult antipsychotic drug, for the symptomatic treatment of irritability in children and adolescents with autism. The approval is the first for the use of a drug to treat behaviors associated with autism in children. These behaviors are included under the general heading of irritability and include aggression, deliberate self-injury, and temper tantrums.

Did you know?

Vaccines prevent between 2.5 and 4 million deaths every year.

Did you know?

Nitroglycerin is used to alleviate various heart-related conditions, and it is also the chief component of dynamite (but mixed in a solid clay base to stabilize it).

Did you know?

Increased intake of vitamin D has been shown to reduce fractures up to 25% in older people.

For a complete list of videos, visit our video library