7) When a program is stopped at a breakpoint, you can use the debugger to - exam
ID: 3635732 • Letter: 7
Question
7) When a program is stopped at a breakpoint, you can use the debugger to
- examine program variables.
- change the value of program variables.
- set new breakpoints or clear existing breakpoints.
- All of the above
8) Testing selection statements
- requires test cases which cause execution of each alternative.
- is not concerned with testing boundary conditions between alternatives.
- involves selecting only test cases which exercise the most likely alternative multiple times.
- all of the above
9) When doing feature testing, _______.
- a test case is based on how a correct solution to the problem would respond to given inputs
- the tester focuses on the selection and repetition statements in the program code
- test cases cannot be written until the program code is complete
- None of the above
10) When a variable is passed by reference as a function argument,
- its value is copied
- it can have its value both read and modified by the function
- it is protected from being modified by the function
- All of the above
11) When should you use reference variables as function parameters?
- When the value of the actual parameter needs to be changed
- When you want to return one value from the function
- When you want the function to process a copy of the data
- None of the above
12) A return statement causes execution of a function to
- return to the top of the loop.
- return to the top of main.
- return to the top of the function.
- terminate and return to where the function was called.
13) Which of the following statements call the following function correctly?
int MultiplyValues ( int, int );
- int a = MultiplyValues( int x, int y );
- int a = MultiplyValues( 10, 20 );
- int d = MultiplyValues( int 10, int 20 );
- All of the above
15) What is the range of valid subscripts for the following array?
double list[10];
- 0 to 9
- 0 to 10
- 1 to 9
- 1 to 10
16) Given the following array declaration, if the array is stored starting at address 5000, what is the output of the following statement? Assume the code is for a 32 bit processor such as a Pentium.
int data[25] = {0};
cout << &data[20] << endl;
- 0.0
- 5020
- 5080
- unknown
Explanation / Answer
Hi here is the answers one after the another PLEASE RATE examine program variables. all of the above a test case is based on how a correct solution to the problem would respond to given inputs it can have its value both read and modified by the function When the value of the actual parameter needs to be changed terminate and return to where the function was called. int a = MultiplyValues( 10, 20 ); Value-returning 0 to 9 unknown
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.