New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA DY0-001 Exam - Topic 2 Question 6 Discussion

Actual exam question for CompTIA's DY0-001 exam
Question #: 6
Topic #: 2
[All DY0-001 Questions]

Which of the following measures would a data scientist most likely use to calculate the similarity of two text strings?

Show Suggested Answer Hide Answer
Suggested Answer: B

Edit distance quantifies how many single-character insertions, deletions, or substitutions are needed to transform one string into another, making it a direct measure of their similarity.


Contribute your Thoughts:

0/2000 characters
Heidy
2 months ago
I thought word clouds were just for visualization, not similarity.
upvoted 0 times
...
Sang
2 months ago
Wait, isn't k-nearest neighbors more about classification?
upvoted 0 times
...
Lili
3 months ago
String indexing? That's not really a similarity measure, right?
upvoted 0 times
...
Flo
3 months ago
I totally agree, edit distance is super useful!
upvoted 0 times
...
Serita
3 months ago
Edit distance is a common method for text similarity!
upvoted 0 times
...
Dalene
3 months ago
String indexing sounds familiar, but I can't recall how it relates to measuring similarity. Edit distance feels more relevant to me.
upvoted 0 times
...
Bok
4 months ago
Word clouds seem more about visualization, so I doubt that's the answer. I feel like I've seen a question like this before.
upvoted 0 times
...
Rolf
4 months ago
I'm not entirely sure, but I remember something about k-nearest neighbors being used for classification rather than similarity directly.
upvoted 0 times
...
Jade
4 months ago
I think edit distance might be the right choice since it measures how many edits are needed to transform one string into another.
upvoted 0 times
...
Margurite
4 months ago
I'm a bit confused by this question. I know there are techniques like cosine similarity and Jaccard similarity that can be used for text, but I'm not sure if those are considered "measures" in the way the question is asking. I'll have to review my notes on text processing methods.
upvoted 0 times
...
Ilona
4 months ago
Okay, let me see. Word cloud is used for visualizing text, not measuring similarity. String indexing is more about storing and retrieving text, not comparing it. k-nearest neighbors is a machine learning technique, not a direct text similarity measure. That leaves edit distance as the best option.
upvoted 0 times
...
Kenda
5 months ago
Hmm, I'm not sure about this one. I know there are different ways to compare text, but I'm not familiar with all the options listed here. I'll have to think it through carefully.
upvoted 0 times
...
Carri
5 months ago
This seems like a straightforward question. I'm pretty confident the answer is B - edit distance. That's a common way to measure text similarity.
upvoted 0 times
...

Save Cancel