nerdexam
IBM

C2140-842 · Question #54

A script needs to perform an action on an object. One of the recognition properties of the object is However, it can vary every time the script is played back. In particular, the portion of the .url…

The correct answer is C. www-{num}+\.ibm\.com. See the full explanation below for the reasoning.

Question

A script needs to perform an action on an object. One of the recognition properties of the object is However, it can vary every time the script is played back. In particular, the portion of the .url property that is subject to change is the digits that appears after the dash. Which regular expression will match the value of the .url property regardless of the number of digits between the - and the .? Note: The regular expression should NOT match the .url property if no digits appear after the dash (as in ww-.ibm.com).

Options

  • Awww-*.ibm.com
  • Bwww-{num}?.ibm.com
  • Cwww-{num}+.ibm.com
  • Dwww-[0-9]*.ibm.com
  • Ewww-[0-9].ibm.com

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    78% (32)
  • D
    2% (1)
  • E
    12% (5)

Community Discussion

No community discussion yet for this question.

Full C2140-842 Practice