) For the values given, what will c contain after executing the following?int a = 9, b = 4, c = -2;c *= ++a %
I am looking for a solution for the final COMP 122 Devry chicago
ATTACHMENT PREVIEW Download attachment(TCO 1) For the values given, what will c contain after executing the following?int a = 9, b = 4, c = -2;c *= ++a % b;Answer= -4(TCO 2) Which statement outputs a double value in a ±eld ofnine characters withthreedigits after the decimal point?Answer=cout << setprecision(3) << setw(9) << 1.2345678;(TCO 10) For readability, variable names should beAnswer =indicative of what value is being stored in the variable.(TCO 3) What is the value of beta aFer the following code executes if the input is 5?Int beta;cin>> beta;switch(beta){case5:beta +=5;case1:beta++;case5:beta +=5;break;case 4:beta +=4;}Answer=16(TCO 4) How many times does the following loop body execute?Int count=52For(int i=26; i>=0; i=i-2){cout<<count<<endl;– count;}Answer= 14(TCO 8) Trying to access an array element beyond the end of the array can lead to anattempt to access an address outside your program’s memory space which is aAnswer =Runtime error(TCO 8) When a program is stopped at a breakpoint, you can use the debugger to
![Background image of page 1](https://www.coursehero.com/doc-asset/bg/qattachments_4110b5864b6ac0e6c7913798281f297423da8e1e/page-1-html-bg.jpg)
View the Answerexamine program variables.change the value of program variables.set new breakpoints or clear existing breakpoints.All of the aboveAnswer =All of the above(TCO 9) White box testingAnswer =requires knowledge of the structure of the program code(TCO 9) When doing feature testing, _______.Answer =a test case is based on how a correct solution to the problem wouldrespond to given inputs(TCO 5) It is necessary to pass by reference when a functionAnswer =is returning more than one result.(TCO 5) Arrays are always passed into a function by location becauseAnswer =it is much quicker to pass location information than to create a copy oftheentire array which would be needed for pass by value.(TCO 6) An array is a data type that contains _______.a Fxed number of elementsa set of values all of which are of the same typevalues that must either be initialized when the array is declared or assigned at runtimeAll of the aboveAnswer =All of the above(TCO 5) Place function prototypes before main() toAnswer =avoid compilation errors.(TCO 5) What is the output of the following code?void func(int x[]){x[0] = x[0] * 3;x[1] = x[1] * 3;x[2] = x[2] * 3;}int main(){int x[] = { 1, 2, 3 };func(x);cout << x[0] << ” ” << x[1] << ” “<< x[2] << endl;}
![Background image of page 2](https://www.coursehero.com/doc-asset/bg/qattachments_4110b5864b6ac0e6c7913798281f297423da8e1e/page-2-html-bg.jpg)
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_320,h_80/http://academicheroes.com/wp-content/uploads/2018/09/order_now.png)