To post a picture you just need to click on the clipper looking thing
Answer:
There would be a logic error.
Explanation:
The count for x should have been initialized before addint it to the variable total.
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.
Answer:
V44 uses Lempel-Ziv-Welch encoding to compress data.
Explanation:
Lempel–Ziv (LZW) created by Abraham Lempel and Jacob Ziv is a universal lossless data compression algorithm. It is an improvement of LZW algorithm.
It makes use of LZ78 algorithms. This algorithm achieve its compression by taking out repeated occurrences of data with references to a dictionary that is built based on the data stream it received as input.
Also, its dictionary pre-initialized with all available possible characters and symbols.
Answer:
12 bits
Explanation:
With 12 bits you can represent numbers from 0 to 2¹²-1, i.e. 0 to 4095.
To check: with 11 bits you can only represent up to 2047, so that's not enough.
In general, to calculate the number of bits without trial and error, you can take the ²log of the number you want to represent and then round up:
²log(3001) = log(3001)/log(2) ≈ 11.55, rounded up is 12.