<u>Answer:</u>
<em>Green computing is the process of using environmental friendly computers </em>and its associated components, accessories and other supporting devices.
<em>To be environmental friendly, we need all the mentioned method to be followed. </em>
- <em>Virtual computing</em> helps us to reduce the number of hardware that we are using.
- Whereas, <em>Grid computers</em> helps us to reduce the use of number of machines and thus supporting the environment in a right way.
- The last and the final is the<em> recycling process.</em> Any material that we use needs to be recycled effectively and also in an environmental friendly way.
- <em>Autonomic computing</em> uses eco-friendly system which in turn hugely support green computing.
If $due_date contains a DateTime object, $due_date_diff will contain
c. a DateInterval object
Explanation:
- The DateInterval class ¶ represents a date interval.
- A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that DateTime's constructor supports.
- The diff method is just as easy to use, but provides an extra piece of information: total days. This is important because when using the DateTime object to find a difference, we have a source and destination date, and therefore we can reduce the units of time into larger denominations. However, having the total number of days in between is a valuable piece of information.
- The PHP DateTime class has three methods that work with a DateInterval object:
- add
- sub
- diff
Properties
- y :Number of years.
-
m :Number of months.
-
d :Number of days.
-
h :Number of hours.
-
i :Number of minutes.
-
s :Number of seconds.
The answer would be if you’re at the same stop light as the bus it would also be B however the main answer is C. You must stop when the red lights are flashing and there is no barrier between your vehicle and the bus.
I think only II contains an error.
Tricky because, syntactically, all three are correct I.M.O.
However, if the goal is to iterate as many times as lotNumLength, then statement II loops one time too many. This is known as an off-by-one error.