Save
...
Computing Science - National 5
SDD
Implementation
Save
Share
Learn
Content
Leaderboard
Learn
Created by
hannahiburton
Visit profile
Cards (18)
What do you do in the implementation stage?
Create
the
initial
code
What can a character hold?
A
single
item of
text
What can a string hold?
Lots of
characters
What can an integer hold?
Whole numbers
What can a real hold?
Decimal numbers
What can a boolean hold?
True
or
False
What can variables hold?
One piece of data
What can arrays hold?
more than one value
at a time
How do you declare a variable?
variableName
=
""
How do you declare an array?
arrayName =
[""] * length
What are the 6 comparison operators?
==
,
!=
,
>
,
<
,
>=
,
<=
What are the logical operators?
AND
,
OR
,
NOT
How do you code a fixed loop?
for counter in range
(1, 11):
How do you code a conditional loop?
while variable1 > variable2:
What are the three predefined functions?
Random, Round, Length
What is the random function?
number =
ran.randint()
What is the round function?
number =
round
(3.14159, 2)
What is the length function?
number =
len
("Hannah")