Tag: programming languages

Questions Related to programming languages

Which function can be used to break up a string into more than one part based upon a separator?

  1. chop

  2. split

  3. divide

  4. parse


Correct Option: B

Suppose the variable $var has the value abc123abc . What is the value of $var after the following substitution?

  1. $var=~ s/(\d+)/ $1*2 /e ;

  2. “abc”

  3. It will produce error

  4. “ABC123ABC”


Correct Option: D