What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string?

What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string? ABCabc
A. ABxxbc
B. xxCxxc
C. xxxxxx
D. ABCabc
E. Axxaxx

Download Printable PDF. VALID exam to help you PASS.

8 thoughts on “What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string?

  1. [ABC][abc] = Aa Ab Ac Ba Bb Bc Ca Cb Cc
    only Ca is a part of the string “ABCabc”
    The correct Answer is A

    20
    1. if in s/[ABC] [abc]/xx/ there is a space, the answer is D, if there is no space between [ABC] [abc] the answer is A.

      12
      2

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.