computer science unit 2.2

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:40 PM on 8/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards

sequence

  • code is executed line-by-line

  • from top-to-bottom


2
New cards

branching/selection

  • block of code is run if a specific condition is met

  • uses IF statements


3
New cards

iteration

  • block of code executed a certain number of times

  • or WHILE a condition is met

  • uses FOR, WHILE or REPEAT UNTIL loops


4
New cards

2 types of iteration

  • count-controlled (repeated a given no. times)

  • condition controlled (until a given condition is met)


5
New cards

whats a variable’s scope?

  • A range of STATEMENTS that a variable is VALID for

  • the same IDENTIFIER to be used for different PURPOSES without CONFLICT

  • the section of code

  • in which the variable is available


6
New cards

local variables

  • have a limited scope

  • defined within one module

  • only accessed within that module

  • data is deleted once the program ends

  • can be used as parameters


7
New cards

multiple LOCAL variables with the same name

  • can exist in diff subroutines

  • will not affect each other


8
New cards

advantages of local variables

  • ensures that subroutines are self-contained

  • no risk of variables being affected by outside code


9
New cards

global variables

  • can be accessed across the whole program

  • (all variables used in the main body = global)

  • defined at the start of the program

  • allows data to be shared by modules


10
New cards

advantages of global variables

  • useful for values that need to be used by multiple parts of the program



11
New cards

drawbacks of global variables

  • could be unintentionally overwritten

  • or deleted

  • not deleted when program terminates, sp they require more memory than local


12
New cards

what if a local variable has the same name as a global

  • the local variable takes precedence


13
New cards

whats modular programming

  • a programming technique used to

  • split large, complex programs

  • into smaller, self-contained modules


14
New cards

benefits of a modular design?

  • Work is easier to divide between a team

-each member knows what values go in subroutine + expected functionality

  • Saves time , work in parallel

-each member can work on their area of expertise.

  • Breaks problems into smaller areas.

-Easier to test/ debug/ read

-each subroutine can be tested before integration.

  • Code can be reused in the project/ future projects


15
New cards

procedures

  • a block of code which performs a specific task

  • x have to return a value

  • given data as parameters


16
New cards

functions

  • block of code which performs a specific task

  • must return a value

  • makes use of local variables


17
New cards

parameter

  • an item of data

  • that is passed to a subroutine

  • is used as a variable within the subroutine


18
New cards

what happens when a parameter is passed by VALUE?

  • a copy of the value is passed to the subroutine

  • and is discarded at the end

  • so the value of og will remain unchanged


19
New cards

what happens when a parameter is passed by REFERENCE?

  • LOCATION of data is used

  • so changes may be MADE to value of original data


20
New cards

are changes made to the variables when passing by reference?

  • yes


21
New cards

whats an IDE?

  • a program which provides a set of tools

  • used for developing programs

  • and debug code


22
New cards

whats some features of an IDE?

  • translators

  • run-time environment

  • error diagnostics

  • code editors

  • auto documentation

  • syntax highlighting

  • auto completion

  • stepping

  • breakpoint

  • variable watch window


23
New cards

syntax highlighting

  • use to check code is correct


24
New cards

whats stepping

  • Can set the program to run line by line

  • Slow down/watch execution

  • Find the point where an error occurs


25
New cards

error diagnostics

  • Locate and report errors

  • give detail on errors


26
New cards

whats variable watch window

  • allows you to view the variable/data structure

  • as it runs


27
New cards

whats breakpoints

  • Use to test the PROGRAM works UP to/at SPECIFIC points

  • Check VARIABLE contents at SPECIFIC points

  • Can SET a POINT where the program STOPS running


28
New cards

different stages of software development life cycle

  1. analysis

  2. design

  3. development

  4. testing

  5. implementation

  6. evaluation

  7. maintenance


29
New cards

analysis stage?

  • stakeholders state what the require in the finished product

  • used to clearly define the problem and system requirements

  • analyse strengths and weaknesses

  • considering the kind of data involved in inputs/outputs/stored data/amount of data


30
New cards

design stage ?

  • different aspects of new system are designed

  • test plan also designed at this stage


31
New cards

development stage?

  • splits data into individual, self-contained modules

  • allocated to teams for programming


32
New cards

testing stage?

  • alpha

  • beta

  • white-box

  • black box


33
New cards

alpha testing

  • carried out in-house by software dev teams

  • bugs pinpointed and fixed


34
New cards

beta

  • carried out by end-users

  • feedback used for next stages


35
New cards

white-box

  • internal structure/ design is known (to the tester)

  • requires programming knowledge


36
New cards

black box testing

  • internal structure/ design is NOT known (to the tester)

  • requires limited/no programming knowledge


37
New cards

implementation

  • software is installed onto the users’ systems


38
New cards

evaluation

  • effectiveness of the software is evaluated against the system requirements

  • different criteria are considered. like robustness reliability portability


39
New cards

maintenance stage?

  • any errors / improvements are flagged by end-users

  • programmers regularly send out software updates

    • to fix bug or security issues


40
New cards

waterfall cycle

  • divides processes into SEQUENTIAL / structured stages

  • followed in a LINEAR fashion

  • Move back through processes if change required


41
New cards

benefits of waterfall