Intro to Programming Logic Flashcards
What is a Sequence?
Statements executed one after another.
What is a Selection?
Statement used to make a decision.
What is a loop?
Statement used to repeatedly execute a section of code.
What are 3 basic software structures?
Sequence, Selection, and Loop
What does a declaration do?
Reserves an area of memory to hold computer data for a Variable. It also assigns this Variable a “Type” - ie String vs. Number
What does an Assignment Statement do?
Stores a value in a variable, Value may be the result of a calculation.
What does an Input Statement do?
Gets a value from the user and stores it as a variable.
What does an Output Statement do?
Displays information to the user (Including values of variables.)
What should be included in a comment?
~What does the program (or section of the program) do?
~Who wrote the program?
~When was it written?
~Who owns the program?
~Explains a complicated section of code
What are attributes of Strongly Typed Languages? Examples?
~Must indicate variable type in declaration
~Variable only stores the type of date declared
~Can NOT store different type data in the variable (programming error)
Strongly-typed programming languages: Flowgorithm, C, C++, C#, Java
What are attributes of Weakly Typed Languages? Examples?
Must declare variable, but type not required.
Variables can store different types of data.
Weakly-typed programming languages: Python, JavaScript, PHP
What is Pseudo-
code?
Informal English-Like code that implements an algorithm.
What is an algorithm?
A set of steps designed to solve a particular problem.
What is the software developments lifecycle?
Requirements Analysis, Design, Implementation, Testing, Deployment/Maintenance
What is Requirement Analysis?
It’s the first step in the Software Development Lifecycle that determines what the software should do to meet the needs of the customer