The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Delimited Text Parsing Strategies

Tushar Ghuge
Tera Contributor

Question 1) When using a Delimited Text Parsing Strategy, what delimiter and
position will parse 2014 from the string?

 

2014/02/07-17:49:36

 

A. Delimiter of space and position 1
B. Delimiter of / and position 0
C. Delimiter of / and position of 1
D. Delimiter of 2014 and position 1

 

Question 2) Using Pattern Designer, which one of the following Delimited Text
Parsing Strategies could be used to parse CO from the string?

 

Location,Denver,CO

 

A. Delimiter of a comma and position 3
B. Delimiter of Location, and position 2
C. Delimiter of Denver and position 2
D. Delimiter of a comma and position 2

 

Question 3) In the following image of the Discovery Log, the green S represents
which one of the following?

CIS - SM question.png

A. A library in the Connection Section of a pattern
B. A step in the Connection Section of a pattern

C. A step in an Identification Section of a pattern
D. A library in an Identification Section of a pattern

 

Please help me  @Ankur Bawiskar , @AJ-TechTrek ,  @Harish Bainsla with your valuable feedback

2 ACCEPTED SOLUTIONS

J Siva
Tera Sage

(UPDATED)

Hi @Tushar Ghuge 
PFB the answers..

Question 1) When using a Delimited Text Parsing Strategy, what delimiter and
position will parse 2014 from the string?

 

2014/02/07-17:49:36

Correct answer:
C. Delimiter of / and position of 1

 

Question 2) Using Pattern Designer, which one of the following Delimited Text
Parsing Strategies could be used to parse CO from the string?

 

Location,Denver,CO

Correct answer:

A. Delimiter of a comma and position 3

 

Question 3) In the following image of the Discovery Log, the green S represents
which one of the following?

JSiva_0-1755164526464.png

 

A. A library in the Connection Section of a pattern
B. A step in the Connection Section of a pattern

C. A step in an Identification Section of a pattern
D. A library in an Identification Section of a pattern

 

Regards,
Siva

View solution in original post

@Harish Bainsla @J Siva The delimiter index value in Pattern designer starts from 1 (Javascript Array starts with index value of 0).

The answer for Question 1 is C. Delimiter of / and position of 1

The answer for Question 2 is A. Delimiter of a comma and position 3

 

@Tushar Ghuge  These questions were covered in Fundamentals of Discovery course and here is the attached screenshot, showing the Same. 

Screenshot Delimiter.png

 

View solution in original post

10 REPLIES 10

Harish Bainsla
Kilo Patron
Kilo Patron

Hi @Tushar Ghuge
1.
The correct answer is C. Delimiter of / and position 1.
Explanation:
Delimiter:
In delimited text parsing, a delimiter is a character that separates different values within a string. In this case, the delimiter is the forward slash (/).

Position:
The position refers to the index of the value you want to extract, starting from 0. Since "2014" is the second part of the string when separated by the "/" delimiter, its position is 1 (counting from 0).
2.
The correct answer is D. Delimiter of a comma and position 2.

Explanation:

"Delimiter of a comma and position 2": means that the parser will use the comma as the delimiter to separate the string into parts, and then extract the value from the second position (after the first comma). In this case, the string "Location,Denver,CO" has "CO" in the second position
3.
B. A step in the Connection Section of a pattern
for more practice question for service mapping check below link
https://quizlet.com/654226834/service-mapping-flash-cards/
If my answer helps you mark helpful and accept solution

Hi @Harish Bainsla 
Could you please verify your answer for the 1st question...

I just ran the BG script and got the below answer..

var sample_string ="2014/02/07-17:49:36";

var arr = sample_string.split("/"); //Delimitter "/"
gs.info(arr.toString());
gs.info("Position of "+arr[0]+" is '0'");

JSiva_0-1755165566488.png

 

Thank You so much Harish for your great explanation

Please accept the solution if my answer helps you