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 主题
Variables Constants And Assignments Aqa
Exam code:8525
Taking an algorithm and turning it into code, in any language, requires an understanding of several basic programming concepts such as:
-
Variables
-
Constants
-
Assignment
Variables, Constants & Assignments
What is a variable?
-
A variable is a named memory location that holds data that during the execution of a program, the data can change
-
Variables can store a variety of different types of data such as numbers, text or true/false values
-
To store data in a variable, the process of assignment is used
What is a constant?
-
A constant is fixed data that during the execution of a program cannot change
-
A constant can store a variety of different types of data, similar to variables
-
Pi is an example of a mathematical fixed value that would typically be stored as a constant
What is assignment?
-
Assignment is the process of storing data in a variable or constant under a descriptive name
-
Assignment is performed using the ‘=‘ symbol
Assigning variables & constants
|
Concept |
Pseudocode |
Python |
|---|---|---|
|
Variables |
|
|
|
Constants |
|
|
Responses