Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. When is a return statement required inside a function? Every function must in

ID: 3529350 • Letter: 1

Question

1. When is a return statement required inside a function? Every function must include at least one return statement. When you use a switch statement When a return data type (other than void) is included in the function prototype Inside an if-else statement 2. (TCO 8) What character is used to indicate a reference parameter? (Points : 4) $ & @ ^ 3. (TCO 8) What would be a valid argument for the following function? char myFunction(int &x;) (Points : 4) int myVariable; char myVariable; 8 All of the above 4. (TCO 9) Menu-driven programs should be broken down into _____ that perform individual tasks. (Points : 4) loops functions tasks modules 5. (TCO 9) What is not part of the menu valued selections process? (Points : 4) Input validation loop Including the default clause in the case structure State Use of an else clause 6. (TCO 9) What type of programming is centered on the procedures or actions that take place in a program? (Points : 4) Object-oriented Interactive Procedural Menu-driven 7. (TCO 10) When executing a function, you can ask the debugger to enter it and execute it one step at a time. This is called _____. (Points : 4) tapping faking copying tracing 8. (TCO 11) N-1 is the _____ (Points : 4) first position of an array position of row position of column last position of an array 9. Which of the following techniques can be used to process the elements of a multidimensional array? Nested selection structure Nested looping structure Sequence structure None of the above 10. A three-row, four-column array has a total of how many elements? Seven 12 16 One 11. Given the following array: int profit [5] = {10, 20, 31, 55, 66}; The following statement would replace which value? profit [4] = profit[1] + 3; 55 with 13 66 with 13 66 with 23 55 with 23 12. An array of characters is known as a _____. character set string constant character matrix 13. Files that are accessed in consecutive order are known as _____. sequential files random access files binary files consecutive files 14. Sometimes, a project will need to save data inputted by the user so it can be used again. This data stored will later be accessed from a _____. program file project file data file user file 15. Once you finish using a file, you should _____ it. exit append close output

Explanation / Answer

1. When a return datatype other than void is included in the function prototype

2. &

3. int myVariable

4. Modules

5. Input validation

6. Procedural

7. tracing

8. last position in an array

9. Nested Looping Structure

10. 12

11. 66 with 23

12. string

13. sequential files

14. data file

15. close