Computer Science GCES EDEXCEL
-
Decomposition And Abstraction Edexcel2 主题
-
Algorithms Edexcel11 主题
-
Follow And Write Algorithms Edexcel
-
Introduction To Programming Concepts Edexcel
-
Basic Programming Concepts Edexcel
-
Variables Constants And Assignments Edexcel
-
Data Structures And Arrays Edexcel
-
Arithmetic Relational And Logical Operations Edexcel
-
Determine Outputs Of An Algorithm Edexcel
-
Types Of Errors Edexcel
-
Standard Sorting Algorithms Edexcel
-
Standard Searching Algorithms Edexcel
-
Algorithm Efficiency Edexcel
-
Follow And Write Algorithms Edexcel
-
Truth Tables Edexcel3 主题
-
Binary Edexcel6 主题
-
Data Representation Edexcel4 主题
-
Data Storage And Compression Edexcel2 主题
-
Hardware Edexcel5 主题
-
Software Edexcel3 主题
-
Programming Languages Edexcel2 主题
-
Networks Edexcel7 主题
-
Network Security Edexcel2 主题
-
Environmental Issues Edexcel1 主题
-
Ethical And Legal Issues Edexcel3 主题
-
Cybersecurity Edexcel2 主题
-
Develop Code Edexcel6 主题
-
Constructs Edexcel4 主题
-
Data Types And Data Structures Edexcel5 主题
-
Operators Edexcel1 主题
-
Subprograms Edexcel2 主题
Benefits Of Using Subprograms Edexcel
Exam code:1CP2
Introduction to Using Subprograms
What is a subprogram?
-
Subprograms are an out of line block of code that may be called by simply writing their name in a program
-
Subprograms are given a unique name so they can be called anywhere in a program
-
There are many benefits to using Subprograms, 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
-
-
There are two main types of subprogram:
-
Procedures – does not return a result
-
Functions – returns one or more results to the calling code
-
Examples of using subprograms
|
Python code |
|---|
|
|
Responses