BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA DY0-001 Exam - Topic 2 Question 6 Discussion

Posted by Judy on Jun 10, 2025 at 05:45 PM

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

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.


Get Premium DY0-001 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
HE
Heidy 11 months ago
I thought word clouds were just for visualization, not similarity.
SA
Sang 11 months ago
Wait, isn't k-nearest neighbors more about classification?
LI
Lili 12 months ago
String indexing? That's not really a similarity measure, right?
FL
Flo 12 months ago
I totally agree, edit distance is super useful!
SE
Serita 1 year ago
Edit distance is a common method for text similarity!
DA
Dalene 1 year ago
String indexing sounds familiar, but I can't recall how it relates to measuring similarity. Edit distance feels more relevant to me.
BO
Bok 1 year 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.
RO
Rolf 1 year ago
I'm not entirely sure, but I remember something about k-nearest neighbors being used for classification rather than similarity directly.
JA
Jade 1 year ago
I think edit distance might be the right choice since it measures how many edits are needed to transform one string into another.
MA
Margurite 1 year 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.
IL
Ilona 1 year 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.
KE
Kenda 1 year 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.
CA
Carri 1 year 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.
0/2000 characters

Save Cancel