Question: 14. The ___________ statement is used to repeat one or more actions when a condition is true or skip the action(s) when the condition is
14.
The ___________ statement is used to repeat one or more actions when a condition is true or skip the action(s) when the condition is false.
| a. | case |
| b. | while |
| c. | if |
| d. | const 17. Consider the following function prototype: void helloworld(std::vector Assuming the main function creates a vector named myvector and fills it with data, write a statement that will properly call this function. Do not put any spaces in your answer. |
20.Assume the following is found in a class member function. The variable x is not a class member variable. There is a #include
For ( x = 0, x >= 100, x++ ) std::cout << x << std::endl;
| a.No change is needed |
| b. for(x == 0: x > 100: x++) |
| c. for(int x = 0, x => 100, x++) |
| d. for(int x = 0; x <= 100; x++) 21. Consider the following function implementation. #include Write a statement to properly call this function. Do not put spaces in your answer. 24. Which of the following lines of code will display the contents of the variable called first? Assume no errors.
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
