Unit 1 Frankie Part 1 Flashcards
What is procedural programming?
Is a programming paradigm, procedures simply contains a series of computational steps to be carried out
What are the structures in procedural programming?
Statements
Blocks
Procedures
Functions sub-routines
What are the control structures in procedural programming?
Sequence
Conditional
Iterative
What is object-oriented programming?
Is a programming paradigm, based on the concept of objects which can contain data and code.
What are the structures object-oriented programming?
Classes and Objects/Instances
What are some features of object-oriented programming?
Inheritance Encapsulation Polymorphism and overloading data hiding Reusability
What is a statement?
A statement is the most basic part of a computer program, it is a single instruction that performs a specific, small task.
What is a block?
A block of code is a collection of individual statements that are intended to be grouped together, this is when one of the lines executes, then the other are also expected to follow.
What is a procedure?
A named block of code, which may or may not require arguments to be supplied is called a procedure, also procedure processes data but does not return a value to the code from where it was called.
Functions
A named block of code, which may or may not require arguments to be supplied, but that does return a value upon completion, is called a function
What is procedural programming control structures?
A control structure is anything that determines the order in which statements are executed, in the procedural programming paradigm control structures are sequence, conditional and iterative
What is a sequence?
In the absence of any other instruction, statements are executed in sequence: in the order in which they are written.
What is a conditional?
Conditional statements allow code to be far more flexible, by allowing conditions to be evaluated to determine whether or not blocks of code should be executed. Clearly, this is another method of controlling the order in which code is executed, clearly this is another method of controlling the order in which code is executed.
What is Iterative?
The final method of controlling the flow of execution, these are loops - commands such as while, or for. Clearly if you are instructing a block of code to repeat ten times, you are controlling the flow of execution.