CBSE Class 11 Computer Science Question 7 of 42

Practice Paper — Question 7

Back to all questions
7
Question

Question 7

Kritika wants to divide a number and store the result without decimal places into an integer variable. Suggest an appropriate operator from the following:

  1. /
  2. %
  3. //
  4. Both (a) and (b)
Answer

//

Reason — The // operator is the floor division operator, which divides the number and returns the result as an integer by discarding the decimal part.