Save
Computer Science GCSE
Topic 2
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Albert Voicu
Visit profile
Cards (18)
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?
With
selection
and
repetition
structures
View source
What does the example program demonstrate about logical operators?
It shows output based on
conditions
View source
What is the range of the 'target' number in the guessing program?
Between
1
and
10
View source
How many guesses does the program allow?
Three
guesses
View source
What is a subprogram?
A
self-contained
sequence of instructions
View source
What is the difference between a function and a procedure?
A function
returns
a value; a procedure does not
View source
What are values passed to a subprogram's parameters called?
Arguments
View source
What do built-in subprograms in Python do?
Perform commonly used tasks
View source
What must you do to use library subprograms in Python?
Import
the library into your program
View source
Name three examples of library subprograms in Python.
'random'
,
'math'
, and
'turtle'
View source
What is the purpose of library subprograms?
To perform
specific tasks
grouped together
View source
What is the significance of the 'length' function in Python?
It finds the length of a data structure
View source
How do subprograms enhance programming?
By allowing
code
reuse
and organization
View source