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.
4.4k
0
Do you find this helpful?
34

View all MCQs in

Discrete Mathematics

Discussion

No comments yet

Related MCQs