Briefly describe the structure of a for loop.

What will be an ideal response?


You begin a for statement with the keyword for followed by a set of parentheses. Within the parentheses are three sections separated by exactly two semicolons. The three sections are usually used for:
* Initializing the loop control variable
* Testing the loop control variable
* Updating the loop control variable
As with an if or a while statement, you can use a single statement as the body of a for loop, or you can use a block of statements enclosed in curly braces.

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a) The Windows Phone 8 SDK includes Visual Studio Express 2012 for Windows Phone. b) The Windows Phone 8 SDK includes the Windows Phone 8 Emulator, which allows you to test your smartphone apps on your computer. c) On the Windows Phone 8 Emulator you can test app features that use the compass. d) On the Windows Phone 8 Emulator you cannot test app features that use the gyroscope or the vibration controller.

Computer Science & Information Technology

________ is a cell-based packet-switching technology in which the cells are of a fixed length rather than typical packet-based systems that use variable length packets.

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

Computer Science & Information Technology

____ is not a relational operator.

A. == B. > C. != D. ||

Computer Science & Information Technology

Select PivotTable styles ________.

A. from the PivotTable wizard B. from options in the Mini Toolbar C. from thumbnails in a style gallery D. from the Font group

Computer Science & Information Technology