NIELIT O Level Exam

<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

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

Latest Current Affairs 2024 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