Unit 1 Frankie Part 1 Flashcards

1
Q

What is procedural programming?

A

Is a programming paradigm, procedures simply contains a series of computational steps to be carried out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the structures in procedural programming?

A

Statements
Blocks
Procedures
Functions sub-routines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the control structures in procedural programming?

A

Sequence
Conditional
Iterative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is object-oriented programming?

A

Is a programming paradigm, based on the concept of objects which can contain data and code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the structures object-oriented programming?

A

Classes and Objects/Instances

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some features of object-oriented programming?

A
Inheritance
Encapsulation
Polymorphism and overloading 
data hiding
Reusability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a statement?

A

A statement is the most basic part of a computer program, it is a single instruction that performs a specific, small task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a block?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a procedure?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Functions

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is procedural programming control structures?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a sequence?

A

In the absence of any other instruction, statements are executed in sequence: in the order in which they are written.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a conditional?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Iterative?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly