McqMate
Q. |
What is the value of x after this statement, assuming the initial value of x is 5? ‘If x equals to one then x=x+2 else x=0’. |
A. | 1 |
B. | 3 |
C. | 0 |
D. | 2 |
Answer» C. 0 | |
Explanation: If condition is false so value decided according to else condition. |
View all MCQs in
Discrete MathematicsNo comments yet