wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Recommendation Systems Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What is the main goal of a recommendation system?

a)

Store user data

b)

Recommend items to users

c)

Delete user preferences

d)

Translate languages

2.

Which of the following is a content-based recommendation example?

a)

Users who liked this also liked that

b)

Movies similar to Inception

c)

Top trending movies

d)

Most purchased products

3.

Which library in Python is commonly used to handle datasets?

a)

NumPy

b)

SciPy

c)

pandas

d)

Matplotlib

4.

Which technique is used to convert text into numbers in content-based filtering?

a)

Word2Vec

b)

TF-IDF

c)

CNN

d)

Naive Bayes

5.

TF-IDF stands for:

a)

Text Frequency–Inverted Data Factor

b)

Term Frequency–Inverse Document Frequency

c)

Text Format–Index Data File

d)

Term Format–Inverse Data Feature

6.

What type of filtering uses user-item interactions?

a)

Content-based

b)

Collaborative

c)

Rule-based

d)

Matrix-based

7.

What function from sklearn is used to find similarity between items?

a)

cosine_curve()

b)

cosine_similarity()

c)

similarity_matrix()

d)

distance_score()

8.

In a content-based system, the comparison is made between:

a)

Users

b)

Items

c)

Users and Items

d)

Products and Prices

9.

The output of cosine similarity ranges between:

a)

-1 and 1

b)

0 and 100

c)

0 and 1

d)

-100 and 100

10.

Which stop words are usually removed by the TF-IDF vectorizer?

a)

Important words

b)

Common words like 'the', 'is', 'and'

c)

Proper nouns

d)

Numeric words

11.

What is the main limitation of a content-based recommender system?

a)

Cold start for new users

b)

It can’t recommend unseen items

c)

It needs large user data

d)

It doesn’t use machine learning

12.

In the TF-IDF formula, what does 'IDF' represent?

a)

Frequency of a word in the same document

b)

Frequency of a word across all documents

c)

Frequency of the least common word

d)

Importance of long documents

13.

In cosine similarity, when two vectors are identical, their cosine value is:

a)

0

b)

0.5

c)

1

d)

-1

14.

What does fit_transform() do in TF-IDF?

a)

Only converts text to lowercase

b)

Learns the vocabulary and transforms text

c)

Normalizes the vectors

d)

Removes duplicates

15.

Which Python library provides TfidfVectorizer?

a)

pandas

b)

sklearn

c)

numpy

d)

tensorflow

16.

What is the purpose of sorting similarity scores in descending order?

a)

To get least similar items

b)

To get most similar items

c)

To shuffle data

d)

To remove duplicates

17.

If the cosine similarity between Movie A and Movie B is 0.95, what does it mean?

a)

Movies are completely different

b)

Movies are very similar

c)

Movies are partially similar

d)

Movies are not comparable

18.

Which method can be used to extend a content-based system for multiple attributes?

a)

Using only text

b)

Combining genre, director, and actors

c)

Ignoring non-text data

d)

Using single feature

19.

Which one is a disadvantage of TF-IDF?

a)

It can’t understand word meaning or context

b)

It’s very slow

c)

It doesn’t work with English

d)

It removes punctuation automatically

20.

Which data structure stores all similarity scores in this system?

a)

List

b)

Matrix

c)

Dictionary

d)

Tuple

21.

What happens if two movie descriptions have no overlapping words?

a)

Cosine similarity = 1

b)

Cosine similarity = 0

c)

Cosine similarity = -1

d)

Cosine similarity = 0.5

22.

What is the dimension of the cosine similarity matrix if we have 5 movies?

a)

1x5

b)

5x1

c)

5x5

d)

10x5

23.

In a recommender function, why is the first item skipped ([1:4])?

a)

It’s already the most similar to itself

b)

It has the least similarity

c)

It’s a duplicate record

d)

It has missing data

24.

What would improve semantic understanding beyond TF-IDF?

a)

Random Forest

b)

Word Embeddings (Word2Vec/BERT)

c)

Naive Bayes

d)

PCA

25.

Which metric other than cosine similarity can be used for distance-based comparison?

a)

Euclidean Distance

b)

RMSE

c)

Accuracy

d)

Precision

26.

Why do we use stop words in TF-IDF Vectorizer?

a)

To keep unnecessary words

b)

To ignore unimportant words

c)

To increase vocabulary

d)

To reduce document count

27.

Which part of the content-based recommendation can lead to over-specialization?

a)

Relying only on content similarity

b)

Using cosine similarity

c)

Using hybrid models

d)

Using user feedback

28.

If a movie has a description of only one word repeated many times, TF-IDF will:

a)

Assign very high score to that word

b)

Reduce its weight due to frequency

c)

Ignore the word completely

d)

Normalize to zero

29.

Which Python function in sklearn helps remove frequently used words?

a)

stop_words='english'

b)

remove_words=True

c)

clear_common=True

d)

stop_common_words()

30.

In the recommend() function, which line selects top 3 similar movies?

a)

sim_scores = list(enumerate(cosine_sim[idx]))

b)

sim_scores = sim_scores[1:4]

c)

movie_indices = [i[0] for i in sim_scores]

d)

sorted(sim_scores, key=lambda x: x[1])