Topic 1 - Programming Flashcards
What is a Sequence
every instruction comes one after the other from the top of the file to the bottom of the file
What is Blocking
blocking a code segments is indication by indentation and subprogram calls.
What is a Comment
anything next to a #
What is an Identifier
any sequence of letters digits or underscores
What are Boolean Operators?
a true or false statement
What is a Subprogram?
a block of code given a unique identifiable name within a pro
Benefits of Subprograms?
easier to code, debug and reuse
What are the 3 Programming Constructs?
sequence, iteration and selection
What is Sequence
executing one instruction after another
What is Selection
a program branching depending on a condition
What is Iteration
repeating sections of code
What is a Function?
a block of organized, reusable code that is used to perform a single, related action
What is a Procedure?
order of the steps to be taken to make something happen, or how something is done