Report Bug

Qus

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
Qus

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

Integer a,b
set a=10,b=5
a=a mod(a-5)
b=b mod(b-2)
print a-b


A. 4
B. 0
C. 1
D. 8


Solution
B. 0



Explanation

a=10 mod 4 = 2 (remainder )

b=5 mod 3=2

2-2=0 so print a-b is 0

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad