What are the three steps that must be done using the loop control variable?

What will be an ideal response?


Initialize, test, update.

Computer Science & Information Technology

You might also like to view...

C++11]: Given a built-in array of ints named values, which of the following statements would sort the array?

a. sort(values.begin(), values.end()); b. sort(values.array_begin(), values.array_end()); c. sort(begin(values), end(values)); d. sort(array_begin(values), array_end(values));

Computer Science & Information Technology

If Circle is a structure type, the statement Circle *pcirc;

A) defines a structure variable called *pcirc. B) defines a structure pointer called pcirc. C) is illegal in C++. D) initializes a Circle pointer. E) None of the above

Computer Science & Information Technology

A situation in which every object of a class A has a pointer to an object of a class B, and the objects of the class B may outlive objects of class A, is called

A) a has-A relation. B) aggregation. C) composition. D) an is=A relation. E) None of the above

Computer Science & Information Technology

Happy-go-lucky Harry decides to open his computer case to see what he can see. After a few moments of pondering, he notices three cables connect to the motherboard. He pulls at one and disconnects it from the motherboard. Delighted at his success at removing something, he pulls out all but one cable. He is interrupted by a phone call and when he returns, he realizes that he has forgotten which

direction the cables face to be correctly reinserted into the board. What is the simplest thing you can do to solve Harry's problem? A) Take away Harry's computer and tell him that he has been naughty. B) Tell Harry to insert the cable in one direction and turn the computer on. If the function of the device works, then move to the next cable and repeat the test. C) Tell Harry that all cables on the motherboard are placed with pin 1 on the right. D) Tell Harry to look how the cables are keyed to only be inserted one way.

Computer Science & Information Technology