Which of the following is the appropriate for header for varying the control variable over the following sequence of values: 3, 6, 9, 12?

a) for ( int i = 3; i <= 12; i++ )
b) for ( int i = 12; i > 0; i -= 3 )
c) for ( int i = 3; i <= 12; i -= 3 )
d) for ( int i = 3; i <= 12; i += 3 )
e) None of the above.


d) for ( int i = 3; i <= 12; i += 3 )

Computer Science & Information Technology

You might also like to view...

Which type of class represents real-world items?

A) entity B) interface C) abstract D) control

Computer Science & Information Technology

A PivotChart has live updates as you change the PivotTable

Indicate whether the statement is true or false

Computer Science & Information Technology

What command in CentOS 7 can be used in a script to enable multiple executions of a set of instructions while a certain condition exists?

A. for in B. if C. while D. chmod

Computer Science & Information Technology

The Wii Remote, as well as many smartphones, uses a(n) _________ which allows the de- vice to respond to motion.

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

Computer Science & Information Technology