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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

______________ EXTENDS ___________ AND IMPLEMENTS ________________

A

class extends class and implements interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly