Report Bug

QusWhat will be the output : 24//6%3,24//4//2 Qusइसका आउटपुट क्या होगा: 24//6%3,24//4//2


A. (1,3)
B. (2,5)
C. (2,1)
D. (4,8)


Solution
A. (1,3)



Explanation


Let's break down the expression:

24 // 6 % 3:


First, perform the integer division 24 // 6, which results in 4.

Then, calculate the modulus (%) with 3, resulting in 1.

24 // 4 // 2:


First, perform the integer division 24 // 4, which results in 6.

Then, perform the integer division 6 // 2, resulting in 3.

Now, putting both results together:


24 // 6 % 3 is 1

24 // 4 // 2 is 3

So, the output will be 1, 3

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