17-26 please
SHORT ANSWERSCONT?NUED: USE THE FOLLOWING CHO?CES FOR QUEST?ON 9?? A the for statement B. the while statement C. the do/while statement D. the switch statement 9. The control statement which is best used when you want to repeat a group of statements over and over on a condition and the statements in the loop body must be executed at least once is the? many choices, and the condition for selection can be expressed as some expression not necessarily an integer is group of statements? based 10. The control statement which is best used when you need to choose which statements to execute from among 11. Which control statement which is best used when you know how many times to repeat the execution of a Use the following program SEGMENT to answer the next two questions int l, J; for (I-2: I> O; 1-) for (J-1; Jc4: +) cout 8. #include
C. #include D. #includedilestream> 18. Which of the following statements correctly declares the input file object Myinput and initializes the file object to read the file exam.txt? A. ifstream Myinput(exam.txt); B. Mylnput ifstream("exam.txt"): C.. ifstream Myinput("exam.txt") ofstream AnsFile 19. What is the next step in using a file, after the file has been declared with the following? A. You use the file to input a variable. B. You use the file by outputting a value to it. C.. You open the file, and associate it with a specific file name. D. You search for a file na 20. Which of the following statements correctly opens the output file object AnsFile to store answers into file myanswers.txt ? A. open.AnsFile"myanswers.txt" B. AnsFile.open"myanswers.txt C. open.AnsFile(myanswers.txt): D. AnsFile.open(myonswers.txt) file object AnsFile? 21 Which statement will properly store the number from variable value into the output File > Mylnput >> value; D. values read.MyInputo A. Mylnput >> cin >> value; B. Myinput >> val ue; 3. Which of the following statements will close the output file object AnsFile from the previous question? A. A. close.AnsFile; 8. "myanswers.txt".close, C AnsFile.closet: D. Ansfile.close?"myanswers.txt " 24. Which repetition constructs will properly repeat the loop body while not at the end-of-file for input file DataFile A. while ! DataFile) B. while (! DataFile.eofl) C. while (!eof) D. while (eof.DataFile() A. must agree in number, and identifier name. 25. The argument and parameters B. must agree in number and order. C. must agree in data type and identifier name 26. In the following function prototype: int fun1(double& Num1, double& Num 2) A. Function fun1 can not modify the arguments passed to Num1 and Num2 B. Function fun1 can modify the arguments passed to both Num1 and Num2 Function funl an nly modify the argument passed to Num1