Past-paper question · 2015 October-November · Paper 22 · Q4(a)

Question 4(a) 2015 · October-November · Paper 22 · 2 marks

Original past-paper question for 4(A)
Original past-paper question for 4(A)
Reveal official mark-scheme answer Official mark-scheme answer for 4(A)

Official answer for Question 4

Part (a)

Part (a)

The combination of suit and card number // the ‘pair ‘ of numbers // the pair of random

✓
numbers ….
[1]
✓
There will be duplicates/repeats//not all cards will be drawn
[1]

Mark scheme 9608_w15_ms_22.pdf →

Show text version of question

Question 4

Part (a)

Question 4

The standard pack of playing cards has four suits – called Clubs, Diamonds, Hearts and Spades.

Each card has a value shown by its number or a name: 1 (Ace), 2, 3, … 10, 11 (Jack), 12 (Queen), 13 (King). The pack of cards has one combination for each suit and value.

A
program is to be written which simulates a magician dealing all 52 cards from the card pack.

The program generates pairs of random numbers:

  • the first, in the range 1 to 4, to represent the suit
  • the second, in the range 1 to 13, to represent the card value

Part (a)

Explain why the generation of 52 (4 suits x 13 card values) pairs of random numbers will not

simulate the dealing of the complete pack.

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[2]

Topic relevance

Why this question appears here

92% assigned-topic match · Hardware › Logic gates and logic circuits

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w15_qp_22.pdf

Keep practising this topic