← AP CSP

Random numbers: AP CSP practice

Using the random module. 3 questions in the style of the AP CSP exam.

Sample questions

The expression RANDOM(1, 6) + RANDOM(1, 6) is evaluated. Which describes all the possible results?

  1. Any whole number from 2 to 12
  2. Any whole number from 0 to 12
  3. Any whole number from 1 to 6
  4. Any whole number from 1 to 12