The answer is 1024MB.
I am really not in a position to answer this question fully
since the lab is not provided but according to the research conducted online,
the answer is 1024MB. According to the book, based on the physical memory
installed on the PC, the current system shows 1.06GB which is equivalent to
1060MB. Thus, it is able to use all 1024MB.
Answer:
The solution code is written in Python 3.
- def convertDate(date_string):
-
- date_list = date_string.split("/")
-
- for i in range(0, len(date_list)):
- date_list[i] = int(date_list[i])
-
- return date_list
-
-
- print(convertDate('06/11/1930'))
Explanation:
Firstly, create a function convertDate() with one parameter, <em>date_string</em>. (Line 1).
Next, use the Python string <em>split()</em> method to split the date string into a list of date components (month, day & year) and assign it to variable <em>date_list</em>. (Line 3) In this case, we use "/" as the separator.
However, all the separated date components in the <em>date_list</em> are still a string. We can use for-loop to traverse through each of the element within the list and convert each of them to integer using Python<em> int() </em>function. (Line 5 - 6)
At last return the final date_list as the output (Line 8)
We can test our function as in Line 11. We shall see the output is as follow:
[6, 11, 1930]
Answers:
1. D
2. A
3. B
4. C
Explanation: I just did it and got a 100%
Answer:
The answer for the following question is given as:
public static Temperature create(Sensor ob)
{
return new Temperature(ob.getReading());
}
Explanation:
In this we have create a static method of Temperature class which accept a 'Sensor' object and return the new 'Temperature' object that calls the 'getReading()' function This function returns the sensor's current reading.