Question: 1.In Python, when does an object reach the end of its life? a. When it has passed the last statement that uses it. b. When
1.In Python, when does an object reach the end of its life?
| a. | When it has passed the last statement that uses it. | |
| b. | When it has been terminated by the destroy method. | |
| c. | When its timeout value has expired. | |
| d. | When it can no longer be referred to by the program that created it. |
2.
What can be used to describe and document the analysis and design of complex software systems?
| a. | Class Diagraming Language | |
| b. | Unified Modeling Language | |
| c. | Direct Modeling Language | |
| d. | Programming Structural Language |
3.
At the top, or root of the class hierarchy is the most abstract class. What is the name of this class?
| a. | object | |
| b. | Main | |
| c. | root | |
| d. | parentClass |
4.
If Price = np.array([12.0, 13.5, 14.6, 11.3, 11.9]) is sorted from the oldest to the newest, the return estimate should be price[:-1]/price[1:] 1.
True
False
5.
Which of the following statements about ways of retrieving data is false?
| a. | Users don't even have to know from where to retrieve the data and the structure of the original datasets when retrieving data using the functions contained in various Python modules.
| |
| b. | The main advantage of manually downloading data is that it is quick and convenient.
| |
| c. | Users can retrieve data by using the functions contained in various Python modules, such as the function called getData.DataReader in the pandas_datareader.data module.
| |
| d. | quotes_historical_yahoo()is the old version of quotes_historical_yahoo_ohlc().
|
6.
Price [: -1] represents all the data items in an NumPy array of stock prices Price = np.array([12.0, 13.5, 14.6, 11.3, 11.9]) except for the first one.
True
False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
