logo

Topic study hub

Programming

Official AQA 7517 section 4.1.1.

0

Objectives

10

Flashcards

10

Questions

90 min

Study time

AqaA LevelComputer ScienceFundamentals of programming

Choose a revision tool

Start revising Programming

Syllabus checklist

What you need to know

0 objective pages available

Data types1 objectives
  • Data types: Understand the concept of a data type. Understand and use the following appropriately: • integer • real/float • Boolean • character • string • date/time • pointer/reference • records (or equivalent) • arrays (or equivalent). Variables declared as a pointer or reference data type are used as stores for memory addresses of objects created at runtime, ie dynamically. Not all languages support explicit pointer types, but students should have an opportunity to understand this data type. Define and use user-defined data types based on language-defined (built-in) data types.
Programming concepts1 objectives
  • Programming concepts: Use, understand and know how the following statement types can be combined in programs: • variable declaration • constant declaration • assignment • iteration • selection • subroutine (procedure/function). The three combining principles (sequence, iteration/repetition and selection/choice) are basic to all imperative programming languages. Use definite and indefinite iteration, including indefinite iteration with the condition(s) at the start or the end of the iterative structure. A theoretical understanding of condition(s) at either end of an iterative structure is required, regardless of whether they are supported by the language being used. Use nested selection and nested iteration structures. Use meaningful identifier names and know why it is important to use them.
Arithmetic operations in a programming language1 objectives
  • Arithmetic operations in a programming language: Be familiar with and be able to use: • addition • subtraction • multiplication • real/float division • integer division, including remainders • exponentiation • rounding • truncation. 42
Relational operations in a programming language1 objectives
  • Relational operations in a programming language: Be familiar with and be able to use: • equal to • not equal to • less than • greater than • less than or equal to • greater than or equal to.
Boolean operations in a programming language1 objectives
  • Boolean operations in a programming language: Be familiar with and be able to use: • NOT • AND • OR • XOR.
Constants and variables in a programming language1 objectives
  • Constants and variables in a programming language: Be able to explain the differences between a variable and a constant. Be able to explain the advantages of using named constants.
String-handling operations in a programming language1 objectives
  • String-handling operations in a programming language: Be familiar with and be able to use: • length • position • substring • concatenation • character → character code • character code → character • string conversion operations. Expected string conversion operations: • string to integer • string to float • integer to string • float to string • date/time to string • string to date/time.
Random number generation in a programming language1 objectives
  • Random number generation in a programming language: Be familiar with, and be able to use, random number generation.
Exception handling1 objectives
  • Exception handling: Be familiar with the concept of exception handling. Know how to use exception handling in a programming language with which students are familiar.
Subroutines (procedures/functions)1 objectives
  • Subroutines (procedures/functions): Be familiar with subroutines and their uses. 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. Be able to explain the advantages of using subroutines in programs.
Parameters of subroutines1 objectives
  • Parameters of subroutines: Be able to describe the use of parameters to pass data within programs. Be able to use subroutines with interfaces.
Returning a value/values from a subroutine1 objectives
  • Returning a value/values from a subroutine: Be able to use subroutines that return values to the calling routine. 44
Local variables in subroutines1 objectives
  • Local variables in subroutines: Know that subroutines may declare their own variables, called local variables, and that local variables: • exist only while the subroutine is executing • are accessible only within the subroutine. Be able to use local variables and explain why it is good practice to do so.
Global variables in a programming language1 objectives
  • Global variables in a programming language: Be able to contrast local variables with global variables.
Role of stack frames in subroutine calls1 objectives
  • Role of stack frames in subroutine calls: Be able to explain how a stack frame is used with subroutine calls to store: • return addresses • parameters • local variables.
Recursive techniques1 objectives
  • Recursive techniques: Be familiar with the use of recursive techniques in programming languages (general and base cases and the mechanism for implementation). Be able to solve simple problems using recursion.

Key terms

RecordArraySelectionSubroutineInteger divisionRemainderRelational operatorBoolean resultBoolean operationXORVariableConstant

Exam tips

  • Match the type to the data: When asked to select a data type, identify the kind of value first: whole number, fractional number, logical value, single character, text, date/time, address, grouped fields or collection.
  • Trace in execution order: For code-tracing questions, write down the value of important variables after each assignment, selection and iteration.

Common mistakes

  • Confusing a character with a string: A character stores one character, whereas a string stores a sequence of characters.
  • Assuming a pre-condition loop always runs once: A condition at the start is tested before the body, so the body may execute zero times. A condition at the end is tested after the body, so the body executes at least once.

Practice preview

Continue by objective

Objectives are grouped by subtopic so students can jump straight to the exact skill they want to revise.

Related topics

Study nearby topics next