Chp 12 Flashcards

Quiz-09 - Data Analysis, Object-oriented programming

1
Q

Which learning method requires labeled data for training?

A

Supervised Learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What distinguishes predictive analysis from exploratory analysis?

A

Predictive analysis makes predictions about future trends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Order the steps in predictive analysis

A
  1. Data Exploration
  2. Feature Engineering
  3. Model Building
  4. Model Training
  5. Model Evaluation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which method of data analysis is typically the first step in understanding a new dataset?

A

Exploratory analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the examples of supervised learning tasks?

A
  • classification
  • regression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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)

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the following python code:
Which of the following will give an output of

OTM

A

print(new_emp.getDept())

print(new_emp.dept)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the following python code:
Which of the following will give an output of

Houston, TX

A

print(UTEmployee.getAddress())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a benefit of using a programming language that has a large library?

A

Many classes are already defined and can be used without have to re-define them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between object-oriented programming and procedural programming?

A

Procedural programming specifies a sequence of tasks, but object-oriented programming describes the properties of tools or items.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly