logo

Cambridge IGCSE Computer Science practice

What does RANDOM(1, 10) do?

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

What does RANDOM(1, 10) do?.

  1. A.Generates a number between 1 and 10
  2. B.Generates a number between 0 and 10
  3. C.Generates a number between 1 and 100
  4. D.Generates a number between 0 and 100

Answer and explanation

Concise answer

Generates a number between 1 and 10

Why this is correct

RANDOM(1, 10) generates a random integer within the range of 1 to 10, inclusive.

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