135. OCR A Level (H046-H446) SLR23 – 2.2 Global & local variables
About this video
OCR Specification Reference
AS Level 2.2.1b
A Level 2.2.1c
This video explores the important programming techniques of local and global variables. It discusses the differences in when and when one should be used over the other.
Key questions:
- What is the difference between global and local variables?
- What are the advantages and disadvantages of each?
00:00 Global & local variables
00:06 Intro
00:11 A note about these videos
00:56 Variable scope
01:43 Code example
03:39 Variable scope continued
04:28 Key questions
04:42 Going beyond the specification
04:52 Beyond simple local and global variable scope
05:52 Outro
Last updated: 24.07.26
Other videos on this course
-
133. OCR A Level (H046-H446) SLR23 – 2.2 Programming constructs
-
134. OCR A Level (H446) SLR23 – 2.2 Recursion
-
136. OCR A Level (H046-H446) SLR23 – 2.2 Functions & procedures
-
137. OCR A Level (H046-H446) SLR23 – 2.2 Integrated development environments
-
138. OCR A Level (H446) SLR23 – 2.2 Object orientated techniques