220k views
0 votes
Which of the following operations will output a value of 5?

11 % 6
11/2
float(11)/2
2 + 3 * 2

1 Answer

3 votes

Answer:

11 % 6 = 5

Explanation:

11 % 6

% this operator is called modulus in computer programming and while dividing it gives remainder as an answer:

thus, 11 % 6 will return as an answer the remainder 5

11 / 2

= 5.5

float(11) / 2

= 11.1 / 2 = 5.55

as function float() in programming returns a decimal value as an answer

2 + 3 * 2

= 2 + 6 = 8

User Abdul Aleem
by
8.9k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories