Save
computer scuecven
1.2.3
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
hazaiah g
Visit profile
Cards (16)
Structured programming
A popular subsection of
procedural programming
in which the program flow is given by three main programming structures:
Sequence
,
Selection
,
Iteration
View source
Sequence
Code is executed
line-by-line
, from
top to bottom
View source
Selection
A certain block of code is run if a
specific condition is met
, using
IF
,
ELSE IF
and
ELSE
statements
View source
Iteration
A block of code is executed a certain number of times or while a condition is met, using
FOR
,
WHILE
or
REPEAT UNTIL
loops
View source
Procedural programming is suited to problems that can easily be expressed as a series of instructions using the constructs described above
View source
Variables
Named locations in
memory
where
data
is
stored
, the
contents
of which can be
changed
while the
program
is being
executed
View source
Constants
Named locations in
memory
, but the value of a
constant
cannot be edited by the program during
execution
View source
Variables are
assigned
using the = sign, which is called an
assignment operator
View source
Constants are often
capitalised
when
writing code
View source
Procedures
Named blocks of code that perform a
specific task
, but do not have to return a
value
View source
Functions
Named blocks of code that perform a
specific task
and must always return a
value
View source
Relational operators
Used to make
comparisons
between
two values
and produce a result of either
True
or
False
, including
>
,
<
,
=
, >=, <=,
!=
,
==
View source
Boolean operators
AND
,
OR
,
NOT
View source
String handling
Operations that can be performed on
strings
, including getting the
length
of a
string
and getting a substring
View source
File handling
Opening a file to
read
, reading a
line
from a
file
, closing a
file
, opening a
file
to write, writing a
line
to a
file
, checking for
end
of
file
View source
Assembly language
The
next level up from machine code
, part of a family of
low-level languages
, converted to machine code using an
assembler
View source