Skip to content
Game 10 Unit 4 of 6 1 hr learning time

The Question Card

Lay each question out as a card: a coloured header bar carrying the category and the running score, the question and options in a tidy panel, and a beep for right and wrong.

67% of Quiz Master

The quiz works but reads like a printout. A card gives each question a frame: a coloured header naming the category, the question and choices laid out below, the score always in the corner. It is PRINT AT and PAPER from Volume 1, arranged with care — and a BEEP so a right or wrong answer is heard as well as seen.

   5 DIM k(8)
  10 BORDER 0: PAPER 0: INK 7: CLS
  50 RESTORE: FOR i = 1 TO 8: READ k(i): NEXT i
  60 RESTORE 600
  80 LET score = 0: LET n = 0
  90 FOR c = 1 TO 4
 100 READ t$,ink
 110 FOR q = 1 TO 2
 120 LET n = n + 1
 130 CLS
 140 PAPER ink: INK 7
 150 FOR i = 0 TO 31: PRINT " ";: NEXT i
 160 PRINT AT 0,1;t$
 170 PRINT AT 0,26;score;"/8"
 180 PAPER 7: INK 0
 190 READ q$,a$,b$,c$,d$
 200 PRINT AT 2,0;"Question ";n;" of 8"
 210 PRINT AT 4,0;q$
 220 PRINT AT 7,2;"1. ";a$
 230 PRINT AT 8,2;"2. ";b$
 240 PRINT AT 9,2;"3. ";c$
 250 PRINT AT 10,2;"4. ";d$
 260 PRINT AT 12,0;: INPUT "Answer (1-4): ";g
 270 IF g = k(n) THEN PRINT AT 14,0;"Correct!": LET score = score + 1: BEEP 0.2,12
 280 IF g <> k(n) THEN PRINT AT 14,0;"The answer was ";k(n): BEEP 0.3,-5
 290 PRINT AT 0,26;score;"/8"
 300 PAUSE 80
 310 NEXT q
 340 NEXT c
 350 CLS
 360 PRINT AT 3,9;"Quiz complete!"
 370 PRINT AT 5,6;"You scored ";score;" out of 8"
 550 DATA 1,2,3,4,3,2,3,2
 600 DATA "Animals",4
 610 DATA "How many legs does a spider have?","Eight","Six","Ten","Twelve"
 620 DATA "What is the fastest land animal?","Lion","Cheetah","Horse","Wolf"
 630 DATA "Space",5
 640 DATA "Which planet is closest to the Sun?","Venus","Earth","Mercury","Mars"
 650 DATA "How many planets orbit the Sun?","Seven","Nine","Ten","Eight"
 660 DATA "History",2
 670 DATA "In what year was the Moon landing?","1959","1965","1969","1972"
 680 DATA "Which country built the pyramids?","Greece","Egypt","Rome","China"
 690 DATA "Geography",6
 700 DATA "What is the largest ocean?","Atlantic","Indian","Pacific","Arctic"
 710 DATA "What is the capital of France?","London","Paris","Rome","Berlin"
ZX Spectrum Quiz Master card: a green Animals header bar with 0/8 score, the question on a white panel, four numbered options
The question card: a coloured category bar, the score in the corner, the question below.

A header bar in the category's colour

Each category carried a colour with its name (the ink value read back in the previous unit); now it is used. Lines 140–170 fill row 0 with that PAPER colour and print the category name at the left and the score (score/8) at the right — a header bar that recolours per subject, so the player always knows where they are and how they're doing. Line 180 then switches to black-on-white (PAPER 7: INK 0) for the question panel, so the body reads like a card laid on the coloured strip.

The card, and a sound

The question, the four options, and the prompt all go to fixed PRINT AT rows (lines 200–260), so the layout holds steady question after question instead of scrolling. And the answer now sounds: a bright BEEP for a correct pick, a low one for a miss (added with the score update). Fixed layout plus colour plus sound is the same presentation craft you used for Touchdown's cockpit and Cipher's board — here it turns a quiz into something that feels designed.

Next: a per-category breakdown and a title to earn.