Which line in the following code is the loop control variable update?

1. int x, total = 0;
2. cin >> x;
3. while (x != 10)
4. {
5. total = total + x;
6. cout << x * 2;
7. cin >> x;
8. }

a) 1
b) 2
c) 5
d) 7


d) 7

Computer Science & Information Technology

You might also like to view...

When the address of the actual argument is passed to the formal parameter, this is called __________________________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The __________ is a small holding section in memory.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Classes can be created from other classes by using _______________

a) encapsulation b) polymorphism c) inheritance d) attributes e) machine code

Computer Science & Information Technology

The debugger command ______________ allows you to “peek into the computer” and look at the value of a variable.

a) value b) variable c) print d) peek

Computer Science & Information Technology