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
Answer:
4000k-ohm to 10,000k-ohm
Explanation:
As we know that time constant for an RC circuit is t=RC
Putting the values of t we can get the range of varaiable resistor as;
t=RC
Putting t=2 we get the first value of the range for the variable resistor
2=R*0.500*10^-6
R=2/(0.500*10^-6)
R=4*10^6
R=4000k-ohm
Now putting t=5 we get the final value for the range of variable resistor
t=RC
5=R*0.500*10^-6
R=5/(0.500*10^-6)
R=10*10^6
R=10,000k-ohm
So variable resistance must be made to vary in the range from 4000k-ohm to 10,000k-ohm