nerdexam
CompTIA

DA0-001 · Question #235

A business analyst reviews the following text: txt = "I have registered for a certification exam and will take it within a couple of months. I need to work hard to pass the exam with flying colors."…

The correct answer is D. String manipulation. The analyst is performing string manipulation by taking a single text string and splitting it into two separate, smaller strings.

Data Concepts and Environments

Question

A business analyst reviews the following text:

txt = "I have registered for a certification exam and will take it within a couple of months. I need to work hard to pass the exam with flying colors." The analyst then splits the string into two parts:

txt1 = "I have registered for a certification exam and will take it within a couple of months." txt2 = "I need to work hard to pass the exam with flying colors." Which of the following BEST describes the process the business analyst is following?

Options

  • AData blending
  • BData appending
  • CImputation
  • DString manipulation

How the community answered

(26 responses)
  • A
    8% (2)
  • C
    4% (1)
  • D
    88% (23)

Why each option

The analyst is performing string manipulation by taking a single text string and splitting it into two separate, smaller strings.

AData blending

Data blending involves combining data from different sources into a single dataset, which is not happening here as the operation is on a single string.

BData appending

Data appending involves adding new records or rows to an existing dataset, typically at the end, which is distinct from splitting a string.

CImputation

Imputation is the process of replacing missing data with substituted values, which is unrelated to splitting a text string.

DString manipulationCorrect

String manipulation is the process of modifying, parsing, or transforming text data, which accurately describes splitting a single string into multiple parts.

Concept tested: String manipulation

Source: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/#string-manipulation

Topics

#String operations#Text processing#Data preparation

Community Discussion

No community discussion yet for this question.

Full DA0-001 Practice