Consider the following code selections. Assume count is initialized to 7 and num is initialized to 0. i) ii) do { while ( count < 6 ) num = count; num = count; } while ( count < 6 )
What will the value of num be for i) and ii) respectively after the loops have been executed?
a) 0, 0
b) 0, 7
c) 7, 0
d) 7, 7
Ans: (c)
You might also like to view...
Which of the following is included in the cost of a plant asset?
A) amounts paid to make the asset ready for its intended use B) regular repair and maintenance costs C) replacement of damaged parts of the asset D) wages of workers who work use the asset in normal operations
Since there are no tax consequences arising from trades in a 401(k) plan, it makes sense
A) to trade often in an attempt to time the markets. B) to ignore this feature and stick to a sound investment approach. C) not to participate in the plan since you can't write off tax losses. D) to trade aggressively if you are young and have a long investment horizon, but to be more conservative if you are nearing retirement.