Subroutines (procedures and functions)

Quick links

3.1

Programming

3.2.1

Data types

3.2.2

Programming concepts

3.2.3

Arithmetic operations

3.2.4

Relational operations

3.2.5

Boolean operations

3.2.6

Data structures

3.2.7

Input/output and file handling

3.2.8

String handling operations

3.2.9

Random number generation

3.2.10

Subroutines

3.2.11

Structured programming

3.2.12

Robust and secure programming

3.3.13

Classification of programming languages

 

Syllabus content

Content   Additional Information
Understand the concept of subroutines.   Know that a subroutine is a named ‘out of line’ block of code that may be executed (called) by simply writing its name in a program statement.
     
Explain the advantages of using subroutines in programs.    
     
Describe the use of parameters to pass data within programs.   Students should be able to use subroutines that require more than one parameter. Students should be able to describe how data is passed to a subroutine using parameters.
     
Use subroutines that return values to the calling routine   Students should be able to describe how data is passed out of a subroutine using return values.
     

Know that subroutines may declare their own variables, called local variables, and that local variables usually:

  • • only exist while the subroutine is executing
  • • are only accessible within the subroutine.
   
     
Use local variables and explain why it is good practice to do so.    

 

Subroutines (procedures and functions)

Subroutines (procedures and functions)

Subroutines (procedures and functions).

 

 

3.1 Fundamentals of algorithms

3.2 Programming

3.3 Fundamentals of data representation

3.4 Computer systems

3.5 Fundamentals of computer networks

3.6 Fundamentals of cyber security

3.7 Ethical, legal and environmental impacts of digital technology on wider society, including issues of privacy

3.8 Aspects of software development

Glossary and other links

Glossary of computing terms.

AQA 8520: The 2016 syllabus

AQA pseudocode guide