Computer science AQA GCSE paper 1

studied byStudied by 2 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions
Get a hint
Hint

Advantages of using subroutines

1 / 6

flashcard set

Earn XP

Description and Tags

I literally studied for the wrong mock so this is very last minute AHHHHHHHH

7 Terms

1

Advantages of using subroutines

  • The code doesn’t have to be repeated every time it needs to run

  • Easier to modify logic, since only the subroutine will need to be edited rather than editing numerous places in the code

New cards
2

Local variables

Are only useable within that part of the code. Eg a local variable in a subroutine cannot be used in the main code

New cards
3

Function

Similar to a subroutine but returns a value, (parameters for that value are in brackets next to function)

New cards
4

arrays

  • have to contain the same data type

  • Fixed size (so data cannot be added)

New cards
5

Records

  • Can have multiple data types

  • Can have data added to it

New cards
6

Parameter

Is a way of passing a value to a subroutine

New cards
7

Return

In a function this value can be returned, usually something has to be done with it or it is stored in the main code.

New cards

Explore top notes

note Note
studied byStudied by 47 people
762 days ago
4.0(1)
note Note
studied byStudied by 15 people
83 days ago
5.0(1)
note Note
studied byStudied by 10 people
623 days ago
5.0(1)
note Note
studied byStudied by 9 people
699 days ago
5.0(2)
note Note
studied byStudied by 2 people
911 days ago
5.0(1)
note Note
studied byStudied by 10 people
890 days ago
5.0(1)
note Note
studied byStudied by 49 people
616 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (106)
studied byStudied by 38 people
658 days ago
5.0(3)
flashcards Flashcard (36)
studied byStudied by 17 people
392 days ago
5.0(1)
flashcards Flashcard (75)
studied byStudied by 15 people
310 days ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 7 people
620 days ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 1 person
629 days ago
5.0(1)
flashcards Flashcard (78)
studied byStudied by 279 people
401 days ago
5.0(2)
flashcards Flashcard (25)
studied byStudied by 414 people
785 days ago
5.0(6)
flashcards Flashcard (98)
studied byStudied by 27 people
12 days ago
5.0(2)
robot