A-level Computing/AQA/Problem Solving, Programming, Data Representation and Practical Exercise/Skeleton code/2014 Exam/Section C

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Validation[edit | edit source]

Error Checking

Example Question

Answer:

Example Answer


Variables[edit | edit source]

Variables

State the name of an identifier for a variable that has a fixed value role

Answer:

Choice, PlayerName


State the name of an identifier for a variable that has a gatherer role

Answer:

NoOfCardsTurnedOver


Loops[edit | edit source]

Loops

State the name of a procedure with exactly two loops

Answer:

UpdateRecentScores, PlayGame


Sub Routines[edit | edit source]

Sub Routine

State the name of a procedure which has the sole purpose of producing an output to the screen

Answer:

DisplayCard, DisplayEndOfGameMessage, DisplayCorrectGuessMessage,DisplayRecentScores