Save
...
AQA GCSE Computer Science (BBC Bitesize)
Computational thinking and problem solving
Programming languages
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Erin Harrod
Visit profile
Cards (87)
What is required for proficient programming?
Knowledge of many
techniques
View source
What do operators in programming determine?
What
action
is to be performed or considered
View source
What are the three types of operators used in programming?
Arithmetic operators
Relational operators
Boolean operators
View source
What is an arithmetic operator?
A
mathematical
function for calculations
View source
What functions do arithmetic operators perform?
Add
,
subtract
,
multiply
, and
divide
View source
What is a relational operator?
An
operator
that
compares
two
values
View source
What are Boolean operators used for?
Building complex queries in a
database
View source
What are the common Boolean operators?
AND
,
OR
, and NOT
View source
What is a high-level programming language?
A language used to write
programs
View source
What is needed to translate high-level languages into machine code?
A
compiler
,
interpreter
, or
assembler
View source
What are the key components of programming languages discussed?
Operators
:
arithmetic
,
relational
,
Boolean
High-level languages
: require translation to
machine code
View source
What is the purpose of arithmetic operators in programming?
To perform
calculations
on values
View source
What is an arithmetic operator?
A function to perform
calculations
View source
What does the addition operator do?
Adds two values
together
View source
How is subtraction represented in programming?
With the
operator
-
View source
What is the multiplication operator in programming?
The operator
*
for multiplying values
View source
What does real division do in programming?
Divides and returns a
decimal
result
View source
What is integer division represented by?
The
operator
DIV
View source
What does the remainder operator (MOD) do?
Returns the remainder of a
division
View source
What is the result of
9
DIV
2
9 \text{ DIV } 2
9
DIV
2
?
2
View source
What is the result of
29
DIV
7
29 \text{ DIV } 7
29
DIV
7
?
4
View source
What is the result of
12
MOD
5
12 \text{ MOD } 5
12
MOD
5
?
2
View source
What is the result of
23
MOD
6
23 \text{ MOD } 6
23
MOD
6
?
5
View source
What are the main arithmetic operations in programming?
Addition
(+)
Subtraction
(-)
Multiplication
(*)
Real division
(/)
Integer division
(DIV)
Remainder
(MOD)
View source
How do integer division and remainder division differ?
Integer division (
DIV
): Discards remainder
Remainder division (
MOD
): Returns remainder
View source
What is a relational operator?
An
operator
that
compares
two
values
View source
What is the purpose of assignment in programming?
Setting the value of a
variable
View source
What does a condition in computing represent?
A statement that is either
true
or
false
View source
What is an IF statement used for in programming?
To select an action based on a
condition
View source
What is a loop in programming?
The repetition of an activity
View source
What are the relational operations in programming?
Equivalence
: ==
Less than
: <
Less than or equal to
: <=
Greater than
: >
Greater than or equal to
: >=
Does not equal
: <> or
!=
View source
How would you assign the value 5 to variable x?
x
=
5
View source
How would you check if x is equal to 5?
if x
==
5
View source
How would you check if x is less than 5?
if x
<
5
View source
How would you check if x is greater than or equal to 5?
if x
>=
5
View source
How would you check if x does not equal 5?
if x <>
5
View source
What does the following code check: IF LEN(password) >= 6 THEN?
Checks if password length is 6 or more
Outputs
"
Good Password!
" if true
Outputs "
Password too short
" if false
View source
What is the output if the password is less than 6 characters?
Password too short
View source
What does the LEN function do in programming?
It returns the
length
of a string
View source
How do relational operators facilitate programming logic?
They allow
comparisons
to be made
View source
See all 87 cards