Sign up
Sign in
Topics
Computing
C++ Programming Program Design Including Data Structures Study Set 1
Quiz 2: Basic Elements of C++
Suppose That Alpha and Beta Are Int Variables
Question 26
Multiple Choice
Suppose that alpha and beta are int variables.The statement alpha = beta--; is equivalent to the statement(s) ____. A) alpha = 1 - beta; B) alpha = beta - 1; C) beta = beta - 1; Alpha = beta; D) alpha = beta; Beta = beta - 1;
Explore answers and all related questions
Related questions
Q 27
Suppose that alpha and beta are int variables.The statement alpha = beta++; is equivalent to the statement(s) ____. A) alpha = 1 + beta; B) alpha = alpha + beta; C) alpha = beta; Beta = beta + 1; D) beta = beta + 1; Alpha = beta;
Q 28
Suppose that alpha and beta are int variables.The statement alpha = ++beta; is equivalent to the statement(s) ____. A) beta = beta + 1; Alpha = beta; B) alpha = beta; Beta = beta + 1; C) alpha = alpha + beta; D) alpha = beta + 1;
Q 29
Choose the output of the following C++ statement:cout << "Sunny " << '\n' << "Day " << endl; A) Sunny \nDay B) Sunny \nDay endl C) Sunny Day D) Sunny \n Day
Explore all questions