Define Control Structures.
What will be an ideal response?
1. Define the three control structures that are sufficient to write any program.
2. Show the syntax of the C++ selection statements: if, if-else, and switch.
3. Define the syntax of the C++ repetition statements: while, for, and do-while.
4. Present relational, equality, and logical operators and demonstrate their use in conditions.
5. Discuss the construction of nested and multiple-alternative if statements.
6. Demonstrate how to hand-trace a program that contains a decision.
7. Show how compound statements can be nested within selection statements.
8. Present the implementation of a multiple-alternative decision as a switch statement.
You might also like to view...
Match the following Microsoft Office 2013 features with the tabs where they can be found:
I. access Backstage view II. tab that automatically displays when a file is opened III. create a footer in Word IV. change the zoom level V. change margins in Word A. File tab B. View tab C. Page Layout tab D. Insert tab E. Home tab
Ruby lists the contents of a folder using the Dir class's files method.
Answer the following statement true (T) or false (F)
A table row can be deleted by
A. selecting the row and pressing the Delete key on the keyboard B. clicking the cursor in the row and pressing the BACKSPACE key C. selecting the row and choosing Delete Rows in the Rows & Columns group D. selecting the row and choosing Eraser on the Table Tools Design tab
____ involves using one term to indicate diverse meanings, or writing multiple methods with the same name but with different parameter lists.
A. Referencing B. Overloading C. Nesting D. Signing