7 Algorithm design and problem solving Flashcards
What are some different types of programming languages?
Declarative, object-oriented, event driven, procedural
What is a declarative programming language?
Language where rules are declared, you can ask questions, answer given based upon the rules
What is an object-oriented programming language?
Language where user can create objects that have attributes and methods
What is an event driven programming language?
A language where there are buttons, text boxes and items user can interact with, each item has its own code which is only run when the item is clicked or changed, all code of program not run from start to finsih
What is a procedural programming language?
Language with statements run in order they are written in, uses subroutines which can be called from other parts of the program
What is the program development life cycle?
A series of structured steps followed to produce a system
What are some different varieties of the program development life cycle?
Cyclic, spiral, waterfall and rapid development
What are the stages of the program development life cycle?
Analysis, design, coding and testing
What is decomposition?
The process of taking a problem or system, and splitting it into smaller parts (sub-problems, sub-systems) which it turn can be split into smaller parts
What is the analysis stage of the program development life cycle?
The first stage of the cycle where the problem is investigated
What is the design stage of the program development life cycle?
The second stage of the cycle where the program is planned out and the problem is decomposed
What things can be used in the design stage of the program development life cycle to plan out the program?
Structure diagram, flowcharts and pseudocode
What is a structure diagram?
A hierarchical diagram that shows a decomposed system, the name of the program at the top and its subprograms below
What is a flowchart?
A diagrammatic representation of an algorithm with symbols for decisions, processes, start / stop points and arrows to show the direction of flow
In a flowchart, how is the content inside each box written?
Written as words or pseudocode statements