MCQ Answer

<p>What will be the output of the following pseudo code?</p><pre>integer a,b<br>set a=9,b=5<br>a=a mod(a-3)<br>b=b mod(b-3)<br>print a+b</pre>

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


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

integer a,b
set a=9,b=5
a=a mod(a-3)
b=b mod(b-3)
print a+b
Topic : Algorithm and Flowcharts to solve problems

A. 4

B. 5

C. 9

D. 8




Correct Answer is :

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

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad