Suppose that alpha and beta are int variables and alpha 5 a

Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement alpha *= beta; executes, ___. alpha = 5 alpha = 10 alpha = 50 alpha = 50.0 The escape sequence \\ r moves the insertion point to the beginning of the next line True False Suppose that alpha and beta are int. variables. The statement alpha = --beta; is equivalent to the statement(s) __. alpha = beta -1; alpha = beta; beta = beta -1; beta = beta -1; alpha = beta; alpha = 1 -beta;

Solution

Question 26)

Answer is option (c) alpha = 50, As both the alpha and beta are declared and initialised as integers this would result the integer output only. And the statement alpha *= beta means alpha= alpha*beta.

Question 27)

The answer is false, as the /r is used for carriage return which means it takes the pointer to the back to the beginning of the line not to the beginning of the next line. In windows the combination of \'\ \ \' means the same as hitting enter \'\ \' is also the same like enter. but \ is only for carriage return.

Question 28)

Answer is option (d) alpha = 1-beta. The statement is alpha = --beta; The -- operator before the variable is called as predecrement which the decrements the 1 from the variable value. Thus the -- beta will be represented as 1-beta.

 Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement alpha *= beta; executes, ___. alpha = 5 alpha = 10 alpha = 50 al

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site