Difference between revisions of "Section B AS 2017"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "Section B for AS exam")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Section B for AS exam
+
__NOTOC__
 +
=Introduction=
 +
'''THIS SECTION SHOULD RELATE ONLY TO THE SKELETON PROGRAM FOR AS SUMMER 2017'''
 +
 
 +
You are advised to spend no more than 15 minutes on this section. Questions will refer to the Preliminary Material and the Skeleton Program, but will not require programming.
 +
 
 +
This section will ask you questions about the code itself and will test your knowledge of programming structures.
 +
 
 +
=Skeleton Program=
 +
==Constants==
 +
Remember constants once declared cannot be changed during runtime, they can only be changed by editing the program code first.
 +
 
 +
<Syntaxhighlight lang=csharp>
 +
    const char SOIL = '.';
 +
    const char SEED = 'S';
 +
    const char PLANT = 'P';
 +
    const char ROCKS = 'X';
 +
    const int FIELDLENGTH = 20;
 +
    const int FIELDWIDTH = 35;
 +
</syntaxhighlight>
 +
 
 +
==Functions / Procedures / Methods==
 +
This section is to explain the structures within the skeleton program, use the pages below to explain each structure. Remember to identify the variables:
 +
 
 +
[[GetHowLongToRun - AS 2017|GetHowLongToRun]]
 +
 
 +
[[CreateNewField - AS 2017|CreateNewField]]
 +
 
 +
[[ReadFile - AS 2017|ReadFile]]
 +
 
 +
[[InitialiseField - AS 2017|InitialiseField]]
 +
 
 +
[[Display - AS 2017|Display]]
 +
 
 +
[[CountPlants - AS 2017|CountPlants]]
 +
 
 +
[[SeedLands - AS 2017|SeedLands]]
 +
 
 +
[[SimulateSpring - AS 2017|SimulateSpring]]
 +
 
 +
[[SimulateSummer - AS 2017|SimulateSummer]]
 +
 
 +
[[SimulateAutumn - AS 2017|SimulateAutumn]]
 +
 
 +
[[SimulateWinter - AS 2017|SimulateWinter]]
 +
 
 +
[[SimulateOneYear - AS 2017|SimulateOneYear]]
 +
 
 +
[[Simulation - AS 2017|Simulation]]
 +
 
 +
[[Main - AS 2017| Main]]
 +
 
 +
==Structure Diagram==
 +
A structure / hierarchy diagram will go here
 +
 
 +
=Programming Structures / Theory=
 +
You may be asked about the following programming techniques and asked to identify them in the skeleton program. Use the pages below to document examples within the skeleton program:
 +
 
 +
[[Constants - AS 2017|Constants]]
 +
 
 +
[[Variables - Scope of Variables - AS 2017|Variables - Scope of Variables]]
 +
 
 +
[[Selection - AS 2017|Selection]]
 +
 
 +
[[Repetition - AS 2017|Repetition ]]
 +
 
 +
[[Arrays - AS 2017|Arrays]]
 +
 
 +
[[Functions - AS 2017|Functions]]
 +
 
 +
[[Subroutines - Methods - AS 2017|Subroutines - Methods]]
 +
 
 +
[[Parameter Passing - AS 2017|Parameter Passing]]

Latest revision as of 10:23, 3 March 2017

Introduction

THIS SECTION SHOULD RELATE ONLY TO THE SKELETON PROGRAM FOR AS SUMMER 2017

You are advised to spend no more than 15 minutes on this section. Questions will refer to the Preliminary Material and the Skeleton Program, but will not require programming.

This section will ask you questions about the code itself and will test your knowledge of programming structures.

Skeleton Program

Constants

Remember constants once declared cannot be changed during runtime, they can only be changed by editing the program code first.

    const char SOIL = '.';
    const char SEED = 'S';
    const char PLANT = 'P';
    const char ROCKS = 'X';
    const int FIELDLENGTH = 20;
    const int FIELDWIDTH = 35;

Functions / Procedures / Methods

This section is to explain the structures within the skeleton program, use the pages below to explain each structure. Remember to identify the variables:

GetHowLongToRun

CreateNewField

ReadFile

InitialiseField

Display

CountPlants

SeedLands

SimulateSpring

SimulateSummer

SimulateAutumn

SimulateWinter

SimulateOneYear

Simulation

Main

Structure Diagram

A structure / hierarchy diagram will go here

Programming Structures / Theory

You may be asked about the following programming techniques and asked to identify them in the skeleton program. Use the pages below to document examples within the skeleton program:

Constants

Variables - Scope of Variables

Selection

Repetition

Arrays

Functions

Subroutines - Methods

Parameter Passing