stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Concepts revision Flashcards | StudBud
Explore
/
Programming Concepts revision
Programming Concepts revision
13 terms
·
StudBud Administration
·
7 plays
Imported from external platform
Flashcards
13 cards
F
Practice quiz
P
Host live
L
Questions
13
Answers
1
A _________________ is a value sent to a subroutine.
all of above
value
function
parameter
2
A function returns a value to the program that called it. This can be by usingthe ___________ command
RETURN
RUN
Move
SEE
3
Subroutines can be procedures that :
all of above
do not return a value
repeat
that return a value
4
Counting requires initialising the count to 0, then adding ________to it.
1
0
10
-1
5
____________are self-contained code, with an identifier that can be called from elsewhere in the program.
loops
statements
variable
Subroutines
6
If you declare a variable (or constant, or array) as _____ then it means it can beaccessed by any part of the program.
local.
global
fake
zero
7
Totalling requires initialising the total to ________, then adding the values to it.
-1
100
0
Null
8
_____________ contain pre-written and pre-tested subroutines that can be used in a program.
Library routines
my routines
naughty routines
functional routines
9
____________ are when selection/iteration are within a selection/iteration construct.
Normal statements
Programming statements
Nested statements
loop statements
10
____________ are declared inside the brackets after the subroutines name,
count
Parameters
Library routines
variables
11
The scope of a variable is the areas within a program that it can be accessed. There are two scopes:
common and special
tom and jerry
global and local.
real and fake
12
Subroutines can be functions that :
repeat
that return a value
all of above
do not return a value
13
Subroutines ___________ repeated code.
all of above
increase
reduce
never