निम्नलिखित का आउटपुट क्या होगा छद्म कोड?
What will be the output of the following pseudo code ?
Integer a, b
Set a = 10, b = 5
a = a mod (a - 6)
b = b mod (b - 2)
Print a – b
A
4
B
0
C
1
D
8
Explanation
Sure!
a = 10 mod (10 - 6) = 10 mod 4 = 2b = 5 mod (5 - 2) = 5 mod 3 = 2- Then,
a - b = 2 - 2 = 0.
Answer: (B) 0.
Correct Answer: B) 0