logo

Cambridge IGCSE Computer Science practice

Which function would you use to get the integer part of 7.9?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

P rogramming concepts

Exam-style question

Try this first

Which function would you use to get the integer part of 7.9?.

  1. A.ROUND
  2. B.DIV
  3. C.MOD
  4. D.RANDOM

Answer and explanation

Concise answer

DIV

Why this is correct

DIV would give the integer part of a division, but to get the integer part of 7.9, you would typically use a function like FLOOR or CAST. However, in this context, DIV is the closest option.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions