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

Discussion of the code

Potential questions

Validation

  • List the Erroneous, Extreme and Typical Data for a manual bowling die:
  • List the Erroneous, Extreme and Typical Data for a manual appeal die:

Variables

  • Give the name of the identifier of a Constant
  • Give the name of the identifier of a global variable
  • Give the identifier of a local variable
  • Note the identifier of an array:
  • Why might we not want to store an average score as an integer?

Loops

  • Give the name of a stepper variable used in a loop?
  • Give the name of a fixed variable used in a loop?
  • Give the name of a follower used in a loop?
  • Give the name of a most recent holder used in a loop?

Sub Routines

  • Write down a function call used in the program
  • Give the name of a parameter used in a procedure
  • Explain the difference between using byRef and byVal
  • Why is Byref used in the ResetTopScores sub routine?

Trace Tables

  • Construct a trace table for the ResetTopScores procedure when passed the following data:
Maxsize Count TopScores
1234
namescorenamescorenamescorenamescore
4Peter23Michael65Aubrey24Marea89
 
Category:Book:A-level Computing#AQA/Problem%20Solving,%20Programming,%20Data%20Representation%20and%20Practical%20Exercise/Skeleton%20code/2011%20Exam/Section%20C%20
Category:Book:A-level Computing