Report Bug

Qus

What will be the output of the following pseudo code?

integer a,b
set a=9,b=5
a=a mod(a-3)
b=b mod(b-3)
print a+b
Qus

निम्नलिखित सूड़ो कोड का आउटपुट क्या होगा?

integer a,b
set a=9,b=5
a=a mod(a-3)
b=b mod(b-3)
print a+b


A. 4
B. 5
C. 9
D. 8


Solution
A. 4



Explanation

set a=9,b=5

a=a mod(a-3)   #9%6=3

b=b mod(b-3)   #5%2=1

print a+b           #3+1=4

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad