Save
Computer Science GCSE
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Albert Voicu
Visit profile
Subdecks (2)
Topic 2
Computer Science GCSE
18 cards
Topic 1
Computer Science GCSE
87 cards
Cards (172)
What are logical operators sometimes called?
Boolean operators
View source
What is the purpose of logical operators?
To make
decisions
in groups
View source
What does the 'and' operator require to return true?
Both
sides
must
be
true
View source
What does the 'or' operator require to return true?
One side must be true
View source
What does the 'not' operator do?
Inverts the
result
View source
How are logical operators used in programming?
Used with
selection
(
if...elif...else
)
Used with
repetition
(
while
)
Control program execution based on tests
View source
What does the example program demonstrate about logical operators?
It shows
output
, not a solution
View source
What must be true for both sides of the 'and' operator?
Both
sides
must
be
true
View source
What happens if both sides of the 'or' operator are false?
It
returns
false
View source
How does 'not' affect a true test?
It becomes
false
View source
What is a subprogram?
A
self-contained
sequence of instructions
View source
What is a function in programming?
A
subprogram
that
returns
a value
View source
What is a procedure in programming?
A
subprogram
that does not return a value
View source
What are parameters in a subprogram?
Placeholders in the subprogram's
definition
View source
What are arguments in a subprogram?
Values passed to a
subprogram
View source
What are built-in subprograms in Python?
Provided in Python
Perform commonly used tasks
Include
data type
conversion and
input
View source
What are library subprograms?
Grouped together in
libraries
Require
importing
into programs
Examples include
'random'
, 'math',
'turtle'
View source
What is the purpose of the 'random' library?
To generate random
numbers
View source
What does the program example require you to do with random numbers?
Generate and manipulate random
real numbers
View source
What is the purpose of a function in programming?
To perform specific tasks and return
values
View source
What is good practice when naming parameters?
Start with 'p' to avoid
confusion
View source
How can functions be called?
From the main
program
or other
subprograms
View source
What must a program do to calculate the area of a rectangle?
Accept length and width from the
user
View source
What does a procedure do in programming?
Performs a
task
without
returning
a
value
View source
How can procedures be called?
From the main program or other
subprograms
View source
What is the purpose of the turtle graphics procedure?
To
draw
shapes
on
the
screen
View source
What is the difference between local and global variables?
Local variables are accessible only in their
subprogram
View source
What does local scope describe?
Only a single
subprogram
View source
What does global scope describe?
The entire
executing
program
View source
How does variable accessibility work in programming?
Local scope
is checked before
global scope
View source
What is the purpose of decomposition in programming?
To
break down problems
into
smaller parts
View source
How do subprograms help in programming?
They simplify
design
and
debugging
View source
What is an algorithm?
A
step-by-step
procedure for solving a problem
View source
What is the purpose of a flowchart in programming?
To visually represent an
algorithm
View source
What does a selection algorithm do?
Determines which path to take based on
conditions
View source
What does a repetition algorithm do?
Repeats actions based on
conditions
View source
What is an array in programming?
A collection of items stored at
contiguous
memory locations
View source
What is the purpose of a loop in programming?
To execute a block of code
multiple
times
View source
What is the significance of variable names in programming?
They
indicate
what
the
variable holds
View source
What is the purpose of using meaningful variable names?
To improve code
readability
and
maintainability
View source
See all 172 cards