Computer Science GCES AQA
-
Representing Algorithms Aqa4 主题
-
Efficiency Of Algorithms Aqa1 主题
-
Searching Algorithms Aqa3 主题
-
Sorting Algorithms Aqa3 主题
-
Data Types Aqa1 主题
-
Programming Concepts Aqa5 主题
-
Arithmetic Relational And Boolean Operations Aqa1 主题
-
Data Structures Aqa3 主题
-
String Manipulation Aqa1 主题
-
Random Number Generation Aqa1 主题
-
Structured Programming Aqa2 主题
-
Robust And Secure Programming Aqa4 主题
-
Number Bases Aqa2 主题
-
Converting Between Number Bases Aqa3 主题
-
Units Of Information Aqa9 主题
-
Hardware And Software Aqa4 主题
-
Boolean Logic Aqa3 主题
-
Programming Languages And Translators Aqa2 主题
-
Cpu Architecture Performance And Embedded Systems Aqa4 主题
-
Memory Aqa2 主题
-
Secondary Storage Aqa3 主题
-
Fundamentals Of Computer Networks Aqa8 主题
-
Fundamentals Of Cyber Security Aqa1 主题
-
Methods Of Preventing Cyber Security Threats Aqa1 主题
-
Relational Databases Aqa2 主题
-
Ethical Legal And Environmental Impacts Aqa2 主题
Introduction To Subroutines Aqa
Exam code:8525
Introduction to Subroutines
What is a subroutine?
-
Subroutines are an out of line block of code that may be called by simply writing their name in a program
-
Subroutines are given a unique name so they can be called anywhere in a program
-
There are many benefits to using subroutines, these include
-
Making bigger problems easier to break down (decompose) and code
-
Allows team members to be able to work on different parts of a problem
-
Makes the program easier to debug
-
Makes programs more efficient as code is not duplicated
-
-
More detailed information about subroutines can be found in the ‘Structured Programming’ section
Meaningful Identifiers
What are meaningful identifiers?
-
Meaningful identifiers are sensible names used for variables, constants or subroutines
-
A meaningful identifier must be used to help aid the maintainability of a program
-
An example would be a variable used for an input of a users’ first name
|
Meaningful Identifier |
Poor Identifier |
|---|---|
|
|
|
Examples of using subroutines

Responses