Solved

After Execution of the Following Code, What Will Be the Value

Question 4

Multiple Choice

After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time?
cin >> input_value;
if (input_value > 5)
\quad input_value = input_value + 5;
else if (input_value > 2)
\quad input_value = input_value + 10;
else
\quad input_value = input_value + 15;


A) 15
B) 10
C) 25
D) 0
E) 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents