Computing a-level

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/466

flashcard set

Earn XP

Description and Tags

AQA

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

467 Terms

1
New cards

[C#] switch case statement definition

a form of selection where the options are constant

2
New cards

[C#] symbol for XOR

^

3
New cards

[C#] first line of a switch case statement

switch(variable){

4
New cards

[C#] Code for a case 1 of a case statement

case 1: code break;

5
New cards

[1] Decomposition

breaking something down into its atomic parts

6
New cards

[1] abstraction

removing all unnecessary data

7
New cards

inheritance

adding your own cade to someone elses

8
New cards

[1] polymorphism

one thing can do many different things dependent on the situation

9
New cards

examples of primitive datatypes

bool,int,string

10
New cards

[1] negative of arrays

cannot change there shape and only hold 1 datatype

11
New cards

[C#] declaring a list

list<int> myIntList = new List<int>()

12
New cards

[C#] Methods for lists

.Add().Remove().RemoveAt().IndexOf().RemoveAll()

13
New cards

[C#] Properties of lists

.Count, Index[int32]

14
New cards

[C#] delclaring a list with data

List<int> myIntList = new List<int>{1,2,3};

15
New cards

[7] when to use lists

when the size needs to be variable and the order of the elements is irrelevant but indexable

16
New cards

[7] Mechanics of stacks

LIFO

17
New cards

[7] what do stacks, queues and dictionaries not have

an index

18
New cards

[C#] Methods in Stacks

.IsEmpty,IsFull().Push().Pop().Peek().Count()

19
New cards

[7] Mechanics of Queues

FIFO

20
New cards

[C#] Methods in Queues

.Enqueue().Dequeue().Peek().Count()

21
New cards

[1] example of counting iteration

for

22
New cards

[1] example of conditional iteration

while,do-while

23
New cards

[1] scope definition

the range in which a variable or parameter exists

24
New cards

[1] how are non-primitive datatypes automatically passed

by reference

25
New cards

[7] What is a dictionary

it hold 2 pieces of data with different datatypes

26
New cards

[7] 1st part of a dictionary

key

27
New cards

[7] 2nd part of a dictionary

value

28
New cards

[1] Call stack definition

stores information about the active subroutines in a program

29
New cards

[1] recursion definition

a subroutine that calls itself

30
New cards

[1] static datatype definition

cannot grow in size

31
New cards

[1] dynamic datatype definition

can grow in size e.g. lists

32
New cards

[7] how is a list stored

it is stored as an array and the copies all items when an item is added and moves to a different place

33
New cards

[1] what do stack frames do

each one contains information for one subroutine

34
New cards

[1] what do stack frames contain

return address, local variable, local parameters

35
New cards

[1] what happens when too many subroutine calls are pushed

stack overflow

36
New cards

[1] when is a subroutine recursive

when it is defined in terms of itself

37
New cards

[1] what must a recursive subroutine include

a stopping condition

38
New cards

[1] advantages of recursive coding

efficient, good for simple repetitive programs

39
New cards

[1] disadvantages of recursive coding

difficult to debug, could loop indefinitely, makes use of limited resource(call stack),uses more memory

40
New cards

[1] in OOP methods are seen as

behaviours

41
New cards

[1] in OOP subroutines are seen as

actions

42
New cards

[1] Instantiation

creating an object

43
New cards

[1] Inheritance OOP

classes can inherit data and behavours from parent classes

44
New cards

[1] what is the child class known as in OOP

subclass

45
New cards

[1] what is the parent class known as in OOP

superclass

46
New cards

[1] what do arrows look like in an inheritance diagram

unfilled arrow to parent class

47
New cards
<p>[1] what is this</p>

[1] what is this

inheritance diagram

48
New cards
<p>[1] what is this</p>

[1] what is this

inheritance class diagram

49
New cards

[1] Polymorphism

a languages ability to process objects differently depending on their class

50
New cards

[1] what is method overriding (polymorphism)

a form of runtime polymorphism in which a subclass provides a specific implementation of a method that is already defined in its superclass.

51
New cards

[1] what is runtime polymorphism

polymorphism which occurs when the program is run

52
New cards

[1] what is Method overloading (polymorphism )

a form of static polymorphsim where multiple methods in the same class have the same name but a different number of parameters.

53
New cards

[1] example of method overloading

Random.Next(10) Random.Next(1,10)

54
New cards

[1] what is a poplymorphic array

an a array containing objects of different classes that inherit from the same superclass

55
New cards

[1] encapsulation

when an objects behaviors and state is defined in a single entity so it doesn’t affect other objects functions

56
New cards

[1] what does private do

an objects instance variables are hidden so they must use messages to access the data

57
New cards

[1] what has access to private code

members of the same class

58
New cards

[1] what has access to public code

all of the program

59
New cards

[1] what has access to protected code

members of the same class and its derived classes

60
New cards

[1] Association OOP

an object containing another object

61
New cards

[1] Compostion OOP

if the containing object is destroyed so are the objects it contains

62
New cards

[1] Aggregation

the objects remain when their container object is destroyed

63
New cards
<p>[1] what does this show</p>

[1] what does this show

aggregation

64
New cards
<p>[1] what does this show</p>

[1] what does this show

compostion

65
New cards

[3] what is 4 bits

a nibble

66
New cards

[3] what is 2 nibbles

a byte

67
New cards

[3] kibi

2^10

68
New cards

[3] mebi

2^20

69
New cards

[3] gibi

2^30

70
New cards

[3] tebi

2^40

71
New cards

[3] What is a parity bit

an extra bit added to binary data to ensure that the total number of 1s in the data is even or odd

72
New cards

[3] name 4 transmission errors

parity bit,majority voting, check digit, check sum

73
New cards

[3] what is majority voting

what the majority of computers think is true

74
New cards

[3] what is a check sum

adding all of the data and seeing if it matched the record

75
New cards

[3] what does one left bit shift do

2x

76
New cards

[3] absolute error definition

the difference in the number you got vs. the actual result

77
New cards

[3] relative error formula

((true-result)/true)x100

78
New cards

[3] what is the relative error more useful

its impact is relative to what it is being compared to

79
New cards

[3] why do we use floating point in normalised form

to maximise precision and maximise accuracy

80
New cards

[3] what is standard screen resolution

72 dpi

81
New cards

[3] standard print quality resolution

300 dpi

82
New cards

[3] resolution formula

widthxheight

83
New cards

[3] colour depth defintion

number of bits stored for each pixel

84
New cards

[3] resolution definition

number of pixels per inch

85
New cards

[3] image file size formula

colour depth x size(wxh)

86
New cards

[3] metadata definition

data about data which is stored in the same file as the image data

87
New cards

[3] examples of metadata

-date is was created, - width and height in pixels, - colourdepth, GPS coordinates, - author

88
New cards

[3] what are vector graphics

images created using mathematical equations that define shapes such as lines, curves, and polygons, rather than using pixels. This allows them to be scaled infinitely without loss of quality

89
New cards

[3] advantages of vector graphics

no loss of quality , image can change size and shape and will stay crisp

90
New cards

[3] disadvantage of vector graphics

low accessibility(only some programs can use it )

91
New cards

[3] data stored in each object of a vector graphic

shape type, fill colour, length, width, radius, position, line colour and weight

92
New cards

[3] ADC meaning

analogue to digital converter

93
New cards

[3] DAC meaning

digital to analogue converter

94
New cards

[3] sampling definition

data measured at regular intervals

95
New cards

[3] what does increasing sample resolution in sound do

increase bit depth for voltage storage therefore increase file size

96
New cards

[3] what is sample rate measured in

Hertz

97
New cards

[3] what does increasing the sample rate do

increase accuracy and file size

98
New cards

[3] sound file size formula

sample rate x resolution x length(secs)x(stereo/mono)

99
New cards

[3] Nyquist theorem

sample frequency must be greater than 2x the max frequency plus a little more

100
New cards

[3] what is the max hearing frequency of humans

about 22khz