Knowee
Questions
Features
Study Tools

Which of the following two will give the same result?(i) 42//2(ii) 21%6(iii) 12/4(iv) 11*2ii,iiii, iiiii, iviii, iv

Question

Which of the following two will give the same result?

(i) 42//2
(ii) 21%6
(iii) 12/4
(iv) 11*2

Options:
ii, iiiii, iviii, iv

🧐 Not the exact question you are looking for?Go ask a question

Solution

The question seems to be a bit confusing, but I'll try to interpret it as best as I can.

(i) 42//2 = 21 (This is integer division in Python, which means it will return the largest whole number)

(ii) 21%6 = 3 (This is the modulus operation in Python, which returns the remainder of the division)

(iii) 12/4 = 3.0 (This is regular division in Python, which returns a float)

(iv) 11*2 = 22 (This is multiplication in Python)

So, the pairs that will give the same result are (ii) and (iii).

This problem has been solved

Similar Questions

Which of the following two will give the same result?(i) 42//2(ii) 21%6(iii) 12/4(iv) 11*2ii,iiii, iiiii, iviii, i

Compare acidic strength of following ?A I > II > III > IV B IV > III > I > II C III > IV > II > I D IV > I > III > II

Which one of the following is the real part of the complex number: 6(2-3i)?A.2B.12C.-3D.6

Assume y be an array. Which of the following operations are incorrect?I. ++yII. y+1III. y++IV. y*2a.I and IIb.I, II and IIIc.II and IIId.I, III and IV

Which one of the formulas for ionic compounds below is incorrect?*1 point(a) SrCl2(b) Cs2S(c) AlCl3(d) Al3P2(e) CaSe

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.