Chp 12 Flashcards
Quiz-09 - Data Analysis, Object-oriented programming
Which learning method requires labeled data for training?
Supervised Learning
What distinguishes predictive analysis from exploratory analysis?
Predictive analysis makes predictions about future trends.
Order the steps in predictive analysis
- Data Exploration
- Feature Engineering
- Model Building
- Model Training
- Model Evaluation
Which method of data analysis is typically the first step in understanding a new dataset?
Exploratory analysis
What are the examples of supervised learning tasks?
- classification
- regression
The output of the following code will be:
class Ilist:
head = 0
tail = 0
def init(self, num_list):
self.head = num_list[0]
self.tail = num_list[-1]
def set_head(num_list):
head = num_list[0]
t_list = Ilist([1,2,3])
Ilist.set_head([4,5,6])
print(Ilist.head)
0
In the following python code:
Which of the following will give an output of
OTM
print(new_emp.getDept())
print(new_emp.dept)
In the following python code:
Which of the following will give an output of
Houston, TX
print(UTEmployee.getAddress())
What is a benefit of using a programming language that has a large library?
Many classes are already defined and can be used without have to re-define them.
What is the difference between object-oriented programming and procedural programming?
Procedural programming specifies a sequence of tasks, but object-oriented programming describes the properties of tools or items.