PROGRAMMING Flashcards
1
Q
WHAT IS STRUCTURED PROGRAMMING?
A
- a programming approach that emphasizes using control structures like sequence, selection, and repetition to organize and structure code
- top down approach: starts with overall program structure and then gradually breaking it down into smaller, more manageable components
2
Q
WHAT IS “SEQUENCE” IN STRUCTURED PROGRAMMING?
A
- it is a control structure where actions or statements are executed in a linear order, one after another
3
Q
WHAT IS “SELECTION” IN STRUCTURED PROGRAMMING?
A
- this involves decision-making structure like if, else, or switch statements that execute certain code based on conditions
4
Q
WHAT IS “ITERATION” IN STRUCTURED PROGRAMMING?
A
- involves loops such as for, while, and do-while which allow for repeating code blocks until a condition is met
5
Q
WHAT IS OBJECTIVE-ORIENTED PROGRAMMING (OOP)?
A
- a programming approach that organizes software design around data, or objects, rather than functions and logic
6
Q
WHAT IS “ENCAPSULATION” IN OBJECT-ORIENTED PROGRAMMING?
A
- process of combining data and functions into a single unit called a “class”
- data is not accessed directly which improves security
7
Q
WHAT IS “ABSTRACTION” IN OBJECT-ORIENTED PROGRAMMING?
A
- process of hiding complex implementation details of a system while only exposing the necessary parts
8
Q
______________ EXTENDS ___________ AND IMPLEMENTS ________________
A
class extends class and implements interface
9
Q
HOW CAN YOU ACCESS PRIVATE CLASSES/MEMBERS?
A
- the getter and setter functions are used to access and modify the private members of a class