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

the question. pletes the statement that best com MULTIPLE CHOICE. Choose the ene

ID: 3843302 • Letter: T

Question

the question. pletes the statement that best com MULTIPLE CHOICE. Choose the ene alternativ the computer screen. used to display information A Opening and closing quotation B) cout object O opening and closing braces E) None of the above 2) what is the output of the following statement? cout 4 (15 3) endl D) 12 EU None of these 3) When the final value of an expression is assigned to a variable, it will be converted to: A) The largest C. data type B) The smallest C. data type C The data type of the expression D) The data type of the variable E) None of the above 4) After execution of the following code, what willbe the input value if the value 0 is 4) value of entered at the keyboard at run time? cin input value; if (input value 5) input value input value 5 else if input value 2) 10 input value input value else input value input value 15 D) 15 B) 25 A) 10 5) This operator is used in C to represent equality. A) B) C) E) None of these A-1

Explanation / Answer

3.

When the final value of an expression is assigned to a variable, it will be converted to the data type of that variable.

Option d is correct choice.

4.

Last else statement executed because

The statement which is executed is

input_value = input_value + 15;

substitute input_value = 0 then

input_value = 0+15;

input_value = 15;

Option d is correct choice.

6.

do while loop is a post test loop.

Option c is correct choice.

Reason :

7.

int n=1;         // the value of n is 1
for(;n<=5;)    // loop runs from n = 1 and it is end for n = 5
{
    cout<<n; // every time print n value
    n++;              // increment n value by 1
}

So it prints 1 2 3 4 5.

Option c is correct choice.

9)

The value in static local variable persists between function calls.

Option a is correct choice.

Reason :