2.1.1 Thinking Abstractly Flashcards

1
Q

What is abstraction

A

Abstraction is the process of separating ideas from reality - in other words, hiding unnecessary detail and showing details that are important in context.

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

The need for abstraction

A

We often need to remove some details and highlight others to improve the clarity of what we are trying to convey.

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

2 advantages of abstraction

A

-easier for programmers to focus on the core elements
-reduces the time needed to be spent on the project
-prevents programs from getting unnecessarily large

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

state 2 advantages of using abstraction in programming languages

A

-easier to remember syntax in high level languages as it is closer to natural language
-coding becomes accessible to beginners

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

how does object oriented programming use abstraction

A

-objects are an abstraction for real world entities.
-Attributes are an abstraction for the characteristics of an object.
-methods are an abstraction for the actions a real world object is able to perform

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

The difference between abstraction and reality

A

• Abstraction is a simplified representation of reality

• Real-world values can be stored as variables and constants

• Objects in object-oriented programming are an abstraction for real-world entities

• Attributes represent the characteristics of an object

• Methods represent the actions a real-world object is able to perform

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

give two applications of layers of abstraction

A

-Networking(TCP/IP)
-programming languages

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

give two applications of layers of abstraction

A

-Networking(TCP/IP)
-programming languages

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