Which of the following expressions is not a unary expression? x sizeof(x) +x -x
ID: 3702300 • Letter: W
Question
Which of the following expressions is not a unary expression?
x
sizeof(x)
+x
-x
float(x)
Which of the following statements about a function call is false?
A function call is a postfix expression.
The operand in a function call is the function name.
The parameter list contains the formal parameters.
The parameter list must match the function headers parameters in type and order.
The value of the call of a void function cannot be assigned.
The statement that transfers to the testing expression in while or do...while statements and the update in a for statement is:
break
continue
goto
comma
recursion
Which of the following statements about post-test loops is true?
Initialization is found in the body of the loop.
The loop actions are executed before the control expression.
If the loop control expression is false, the loop terminates.
If the loop control expression is false, the action is not executed.
In C, the update is a part of the loop statement itself.
x
sizeof(x)
+x
-x
float(x)
Explanation / Answer
1) a) X is not a unary expression because it is not a expression at all.
2) c) Parameter list contains the formal argument is false because it contains the acutal arguments
3) b) Continue: It is similar to break but instead of terminating the loop it returns to the testing stantement and executes the next iteration.
4) b,c,e are true because
In statement b in post test loops the actions are executed before the control expresssion.
In statement c if expression if false then the loop terminated after that.
In statement e the update statement is the part of the loop
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.