Paper 1 Flashcards
(79 cards)
What are some supported programming languages in AQA AS and A-level Computer Science?
C#, Java, Python, VB.Net
Which programming language version is no longer supported in the curriculum?
Python 2
What concept of data types involves variables used as stores for memory addresses of objects created at runtime?
Pointer or reference data types
Name the three basic combining principles in imperative programming languages.
Sequence, iteration/repetition, selection/choice
What are the types of iteration mentioned in the curriculum?
Definite and indefinite iteration
List arithmetic operations familiar in programming languages.
Addition, subtraction, multiplication, real/float division, integer division, exponentiation, rounding, truncation
What relational operations should students be familiar with?
Equal to, not equal to, less than, greater than, less than or equal to, greater than or equal to
Which Boolean operations are students expected to know?
NOT, AND, OR, XOR
What is the difference between a variable and a constant?
Variables can change; constants have fixed values, and named constants are advantageous for readability and maintenance.
Name some string-handling operations students should be familiar with.
length, string to integer, position, substring, integer to string, concatenation, float to string, character code conversions, date/time to string, string conversion operations
What concept is used for generating random numbers in programming?
Random number generation
What is exception handling in programming?
A technique to handle runtime errors and exceptions gracefully.
What is a subroutine or procedure in programming?
A named ‘out of line’ block of code that can be called/executed by its name.
What are parameters in subroutines used for?
To pass data within programs to the subroutine.
What does a subroutine return to the calling routine?
A value or values.
What are local variables in subroutines?
Variables that exist only during execution of the subroutine and are accessible only within it.
How do local variables differ from global variables?
Local variables are limited to the subroutine, while global variables are accessible throughout the program.
What is the purpose of a stack frame in subroutine calls?
To store return addresses, parameters, and local variables during a subroutine call.
What are recursive techniques in programming?
Using functions that call themselves to solve problems, including understanding base cases.
Name the character of the procedural programming paradigm.
Structured, step-by-step approach to program design and construction.
What are some concepts of object-oriented programming?
Class, object, encapsulation, inheritance, aggregation, composition, polymorphism, overriding.
What is encapsulation in object-oriented programming?
The hiding of internal object details and only exposing necessary parts through methods.
Why use object-oriented programming?
To organize code around objects, promote reuse, and manage complexity.
In class diagrams, what does a solid line represent?
Inheritance.