key terms Flashcards
What is a control structure?
a logical design that controls the order in which a set of statements execute
What is a sequence structure?
is a set of statements that execute in the order in which they appear
What is a decision structure?
a control structure that can only execute a set of statements under certain circumstances
What is a single alternative decision structure?
decision structure that provides only one alternative path of execution (‘if’ statement)
What does a relational operator determine?
whether a specific relationship exists between two values e.g. >, =, <=, ==, !=
What is a dual alternative decision structure?
decision structure has two paths of execution (‘if-else’ statement)
What are examples of logical operators?
and
not
or
What does a condition-controlled loop use to control the number of times it repeats?
a true/false condition
How does a count-controlled loop stop?
it repeats a certain number of times
What is a sentinel?
a special value that marks the end of a sequence of values