What is the output of the following pseudo code ? Int a = 456, b, c, d = 10; b = a/d; c = a-b; print c ?

Answer : B. 411

What is the output of the following pseudo code ?

Int a = 456, b, c, d = 10; 
b = a / d; 
c = a - b; 
print c

A. 411.4

B. 411

C. 410.4

D. 410

E. None of these

Answer : B. 411

Explanation:

b = 456/10
= 45 (Quotient)
c = 456 – 45
= 411

Leave a Reply

Your email address will not be published.