wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Machine Learning for ADSA

Total questions: 69

Worksheet time: 58mins

Name
Class
Date
1.

What is Machine Learning? (Choose 3 Answers)

a)

Artificial Intelligence

b)

Machine Learning

c)

Data Statistics

d)

Deep Learning

2.

What kind of learning algorithm for "Future stock prices or currency exchange rates"?

a)

Recognizing Anomalies

b)

Prediction

c)

Generating Patterns

d)

Recognition Patterns

3.

Which of the following is not type of learning?

a)

Semi-unsupervised Learning

b)

Unsupervised Learning

c)

Supervised Learning

d)

Reinforcement Learning

4.

This picture shows an application of ...

a)

Supervised Learning: Classification

b)

Unsupervised Learning: Clustering

c)

Unsupervised Learning: Prediction

d)

Supervised Learning: Regression

5.

Field of study that gives computers the ability to learn without being explicitly programmed.

a)

Deep Learning

b)

Machine Learning

c)

Data Science

6.
Artificial Intelligence is the process that allows computers to learn and make decisions like humans
a)
True
b)
False
7.

What would make a robot intelligent?

a)

It responds to the environment.

b)

It responds to the environment according to previous experiences.

c)

It calculates mathematical problems faster than human minds.

d)

It can jump 1.5 meters higher than humans.

8.

A major benefit of an machine with AI is

a)

it could do a job too dangerous for a human

b)

it could love you like a brother

c)

it could chop up your vegetables

9.

A major benefit of an machine with AI is

a)

it could do a job too dangerous for a human

b)

it could love you like a brother

c)

it could chop up your vegetables

10.

A major benefit of an machine with AI is

a)

it could do a job too dangerous for a human

b)

it could love you like a brother

c)

it could chop up your vegetables

11.

A major benefit of an machine with AI is

a)

it could do a job too dangerous for a human

b)

it could love you like a brother

c)

it could chop up your vegetables

12.
Artificial Intelligence is the process that allows computers to learn and make decisions like humans
a)
True
b)
False
13.
In computer science what does AI stand for?
a)
Artificial Instrument
b)
Artificial Intelligence
14.

What would make a robot intelligent?

a)

It responds to the environment.

b)

It responds to the environment according to previous experiences.

c)

It calculates mathematical problems faster than human minds.

d)

It can jump 1.5 meters higher than humans.

15.

A major benefit of an machine with AI is

a)

it could do a job too dangerous for a human

b)

it could love you like a brother

c)

it could chop up your vegetables

16.

What is Machine Learning? (Choose 3 Answers)

a)

Artificial Intelligence

b)

Machine Learning

c)

Data Statistics

d)

Deep Learning

17.

What kind of learning algorithm for "Future stock prices or currency exchange rates"?

a)

Recognizing Anomalies

b)

Prediction

c)

Generating Patterns

d)

Recognition Patterns

18.

What kind of learning algorithm for "Facial identities or facial expressions"?

a)

Recognizing Anomalies

b)

Prediction

c)

Generating Patterns

d)

Recognition Patterns

19.

Which of the following is not type of learning?

a)

Semi-unsupervised Learning

b)

Unsupervised Learning

c)

Supervised Learning

d)

Reinforcement Learning

20.

This picture shows an application of ...

a)

Supervised Learning: Classification

b)

Unsupervised Learning: Clustering

c)

Unsupervised Learning: Prediction

d)

Supervised Learning: Regression

21.

Field of study that gives computers the ability to learn without being explicitly programmed.

a)

Deep Learning

b)

Machine Learning

c)

Data Science

22.

What is the primary goal of EDA?

a)

Building machine learning models

b)

Cleaning data for deployment

c)

Understanding the data's characteristics and patterns

d)

Storing data in databases

23.

Which Python library is most commonly used for EDA visualization?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

TensorFlow

24.

In EDA, the term "outlier" refers to:

a)

A missing value in a dataset

b)

A data point that is significantly different from others

c)

A feature with too many categories

d)

A value with no label

25.

Which function in Pandas is used to get the first few rows of a DataFrame?

a)

head()

b)

first()

c)

top()

d)

sample()

26.

Which plot is best for understanding the distribution of a numerical feature?

a)

Line plot

b)

Histogram

c)

Scatter plot

d)

Bar chart

27.

Missing values can be handled by:

a)

Dropping them

b)

Filling with mean/median/mode

c)

Predicting them with other data

d)

All of the above

28.

Which method can be used to detect correlation between numerical variables?

a)

value_counts()

b)

corr()

c)

info()

d)

describe()

29.

One-hot encoding is mainly used for:

a)

Numerical features

b)

Categorical features

c)

Text data

d)

Image data

30.

Which of the following is an example of a derived feature?

a)

The original age column in dataset

b)

Age group created from age column

c)

Missing value count in a dataset

d)

Original height column

31.

Scaling features is important because:

a)

It reduces missing values

b)

It makes features comparable in magnitude

c)

It changes categorical features to numbers

d)

It removes duplicates

32.

Which scaling technique transforms features so they have mean 0 and standard deviation 1?

a)

Min-Max Scaling

b)

Standardization

c)

Normalization

d)

Log transformation

33.

When should you use log transformation in feature engineering?

a)

When data has negative values

b)

When data is normally distributed

c)

When data is highly skewed

d)

When features are already scaled

34.

In feature selection, removing multicollinearity is important because:

a)

It reduces the size of the dataset

b)

It improves model interpretability

c)

It increases missing values

d)

It changes categorical variables to numerical

35.

Which of the following is NOT a feature engineering technique?

a)

Binning

b)

Polynomial features

c)

Gradient boosting

d)

Feature scaling

36.

If two features have a correlation of 0.98, what might you consider?

a)

Drop one of them

b)

Keep both as they are

c)

Scale them

d)

Convert to categorical

37.

Suppose you have a dataset where feature A is in meters and feature B is in kilometers. What is the first step to make them comparable for model training?

a)

Drop one feature

b)

Scale both features to the same range

c)

Encode the features

d)

Fill missing values

38.

After encoding categorical variables using one-hot encoding, the dataset size increases drastically. Which technique can reduce dimensionality while retaining most information?

a)

Standardization

b)

PCA (Principal Component Analysis)

c)

Min-Max scaling

d)

Log transformation

39.

A feature has many zero values with a few large positive numbers. Which transformation can help make this feature more normally distributed?

a)

Square root transformation

b)

Min-Max scaling

c)

Standardization

d)

Polynomial features

40.

During EDA, you notice that the target variable is imbalanced (90% class A, 10% class B). Which approach is NOT a valid solution?

a)

Oversampling minority class

b)

Undersampling majority class

c)

Adding noise to features

d)

Using SMOTE

41.

You create a new feature by multiplying two existing features. This is an example of:

a)

Feature scaling

b)

Feature interaction

c)

Dimensionality reduction

d)

Feature selection

42.

apakah arti (NaN) di dalam sebuah dataset?

a)

Missing data

b)

Unknown value

c)

Outlier

d)

Placeholder


43.

Metode apa yang digunakan untuk mendeteksi adanya nilai null dalam sebuah DataFrame?

a)

find_nulls()

b)

isnan()

c)

isnull()

d)

null_check()


44.

untuk apa metode fillna()?

a)

Mengganti nilai null dengan median

b)

Mengganti nilai null dengan mean

c)

Mengganti nilai null dengan sebuah nilai

d)

Membuat kategori baru dari null


45.

Apa saja yang merupakan bagian dari proses feature engineering?

a)

Membuat feature baru dari data yang sudah ada

b)

Melakukan evaluasi hasil

c)

Melakukan Visualisasi Data

d)

Menghapus outliers dari dataset


46.

proses transformasi data menjadi fitur-fitur yang lebih representatif dalam membantu menyelesaikan masalah dengan lebih baik disebut

a)

Creation Enginering

b)

Model transformation

c)

Feature engineering

d)

Creation transformation

47.

Jenis-jenis scaling antara lain:

a)

StandardScaler

b)

MinMaxScaler

c)

RobustScaler

d)

OpenScaler

48.

Jika sebuah kolom memiliki 6 nilai unik, berapa kolom yang terbentuk jika menggunakan OneHotEncoder?

a)

6

b)

1

c)

2

d)

3

49.

Proses Encoding dilakukan untuk?

a)

Mengubah data kategorik menjadi numerik

b)

Mengubah data numerik menjadi kategorik

c)

Mengubah data Ordinal menjadi Nominal

d)

Mengubah data Nominal menjadi Ordinal

50.

Untuk melakukan encoding pada data target atau y dapat menggunakan

a)

LabelEncoder

b)

OneHotEncoder

c)

OrdinalEncoder

d)

TargetEncoder

51.

Mengapa Data perlu di scaling terlebih dahulu sebelum masuk pemodelan?

a)

Agar data menjadi 1

b)

Agar data berada dalam skala yang sama

c)

Agar data lebih teratur

d)

agar data menjadi minus

52.

What is Matplotlib?

a)

A cooking recipe book

b)

A type of flower

c)

A new programming language

d)

A plotting library for Python

53.

Name three types of plots that can be created using Matplotlib.

a)

Box plot

b)

1. Line plot 2. Scatter plot 3. Bar plot

c)

Pie plot

d)

Histogram

54.

Explain the difference between plt.plot() and plt.scatter() in Matplotlib.

a)

plt.plot() is used to create bar plots, while plt.scatter() is used to create line plots.

b)

plt.plot() is used to create scatter plots, while plt.scatter() is used to create line plots.

c)

plt.plot() is used to create pie charts, while plt.scatter() is used to create scatter plots.

d)

plt.plot() is used to create line plots, while plt.scatter() is used to create scatter plots.

55.

How can you change the color of a plot in Matplotlib?

a)

By using the 'size' parameter in the plot function.

b)

By using the 'label' parameter in the plot function.

c)

By using the 'marker' parameter in the plot function.

d)

By using the 'color' parameter in the plot function.

56.

What is the purpose of adding labels to the x-axis and y-axis in a Matplotlib plot?

a)

To hide the data

b)

To make the plot look more colorful

c)

To confuse the audience

d)

To provide context and understanding of the data being presented in the plot.

57.

Explain the use of plt.subplot() in Matplotlib.

a)

It is used to create 3D plots in Matplotlib.

b)

It is used to change the color scheme of the entire figure in Matplotlib.

c)

It is used to create a grid of subplots within a single figure.

d)

It is used to add a title to the entire figure in Matplotlib.

58.

What is the function of plt.legend() in Matplotlib?

a)

Add a legend to the current axes.

b)

Change the color of the plot

c)

Create a new figure

d)

Remove the axes from the plot

59.

How can you save a Matplotlib plot as an image file?

a)

Using the 'display' method

b)

Using the 'savefig' method

c)

Using the 'export' method

d)

Using the 'print' method

60.

Explain the concept of subplots in Matplotlib.

a)

Subplots in Matplotlib can only be used for line plots

b)

Subplots in Matplotlib are used to create 3D plots

c)

Subplots in Matplotlib are not supported in Jupyter notebooks

d)

Subplots in Matplotlib allow us to create multiple plots within the same figure.

61.

What is the role of plt.title() in Matplotlib?

a)

To add a legend to the plot

b)

To change the color of the plot

c)

To adjust the size of the plot

d)

To set the title of the plot.

62.

Which function is used to create a pie chart in Matplotlib?

a)

plt.pie()

b)

plt.piechart()

c)

plt.chart()

d)

plt.pieplot()

63.

How can you explode a slice in a pie chart to emphasize it?

a)

Use the explode parameter in plt.pie()

b)

Use the highlight parameter in plt.pie()

c)

Use the slice parameter in plt.pie()

d)

Use the accent parameter in plt.pie()

64.

What does the plt.scatter() function do?

a)

Creates a line plot

b)

Creates a scatter plot

c)

Creates a histogram

d)

Creates a pie chart

65.

Which function in Matplotlib can be used to customize the size of points in a scatter plot?

a)

plt.scatter()

b)

plt.plot()

c)

plt.bar()

d)

plt.hist()

66.

How can you add a legend to a scatter plot?

a)

plt.legend()

b)

plt.add_legend()

c)

plt.show_legend()

d)

plt.insert_legend()

67.

Which function is used to create a violin plot in Matplotlib?

a)

plt.violin()

b)

plt.boxplot()

c)

plt.violinplot()

d)

plt.plot()

68.

What does the c parameter in plt.scatter() control?

4 lines
69.

Which parameter in plt.pie() defines how much each slice is exploded from the center?

a)

explode

b)

offset

c)

separation

d)

dist