nerdexam
IBM

LOT-410 · Question #56

Sam would like to use Formula Language to extract the word "cat" from the sentence: "The black cat walked under the ladder". She has assigned the sentence to the variable "MySentence". Which line of…

The correct answer is B. @MiddleBack(MySentence; 25; -3). See the full explanation below for the reasoning.

Question

Sam would like to use Formula Language to extract the word "cat" from the sentence: "The black cat walked under the ladder". She has assigned the sentence to the variable "MySentence". Which line of code could she use to do that?

Options

  • A@Middle(MySentence; "cat"; 3)
  • B@MiddleBack(MySentence; 25; -3)
  • C@Left(@RightBack(MySentence; 3); 25)
  • D@LeftBack(@Right(MySentence; "cat"); 3)

How the community answered

(40 responses)
  • A
    8% (3)
  • B
    85% (34)
  • C
    5% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full LOT-410 Practice