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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started