Report Bug

Quswhat will be the output of :print( 22//3+3/3) Qusनिम्नलिखित कोड का आउटपुट क्या होगा? print( 22//3+3/3)


A. 4
B. 4.0
C. 8
D. 8.0


Solution
D. 8.0



Explanation

Step-by-Step Evaluation:

Integer Division (//):

22 // 3 performs floor division (integer division). It divides 22 by 3 and truncates the result to an integer:

22//3=7

Floating-Point Division (/):

3 / 3 performs regular division and returns a floating-point number:

3/3=1.0

Addition:

Add the results of the two operations:

7+1.0=8.0

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