Which of the following is declared correctly and will not result in an error assuming x = 2 and y = 30?

a) for ( var j = 10; j <= 80; j-- )
b) for ( var j = x, j <= y, j += 5 )
c) for ( var j = x; j <= 80 * y; j += 5 / x )
d) for ( var j = x; j <= 80 * y; j -= 5 )

Ans: (c)

Business

You might also like to view...

Which one of the following is not a cost element in manufacturing a product?

a. Manufacturing overhead b. Direct materials c. Office salaries d. Direct labor

Business

"Listen up, ladies. You're on my turf now. I own you. I will tell you when to get up, when to eat, and when to be tired. You will do what I say, how I say to do it, and when I say to do it. Do you understand me?" said the drill instructor to the new Marine recruits. According to the Ohio State studies, this drill instructor is engaging in:

A) initiating structure behavior. B) consideration behavior. C) offensive behavior. D) harassing behavior. E) typical leader behavior.

Business