Answer: 3 bytes
Explanation:
A Pixel uses 3 colors and each of these colors uses 8 bits to store their intensity.
One pixel will therefore have:
= 8 * 3
= 24 bits
1 byte = 8 bits
24 bits will therefore be:
= 24/8
= 3 bytes
The answer to this question is c
Answer:
1. - Observer
2. - iterator
3. - strategy
4. - composite
5. - decorator
Explanation:
An object contains other objects (elements) and must give access to them for clients, without exposing its internal structure. This is an observation.
The subject-object can generate events as an iterable (iterator) and could use different strategic algorithms to achieve a task. Class objects can be used to aggregate other class objects.
In python, the decorator function mimics the outer function of a nested function, but still maintains the functionality of the second function