kallipederson653 kallipederson653
  • 21-08-2019
  • Computers and Technology
contestada

Assume phrase= "Peter Piper picked a peck of pickled peppers", What will be returned if phrase.search(/[aeiou]/) is called?

1

7

9

13

Respuesta :

ExieFansler ExieFansler
  • 30-08-2019

Answer:

The answer to this question is 1.

Explanation:

In the code provided in the question we have a string phrase having some content in it.Now we are using to search which return the position of first occurrence of the item searched for.Since we are using a regular expression.Which means that it will search any character from a,e,i,o,u.If any character from a,e,i,o,u is found it will return the position of that character.

Answer Link

Otras preguntas

The energy of a photon is proportional to its a) amplitude. d) wave number, k-2m/A c) velocity. b) frequency
If x + y = 12 and xy = -5, calculate the value of 1/x + 1/y.​
Can someone Please Help me out
What is the Triangle of Death? ( It occurs on the face )
Select the correct answer from each drop-down menu. The length of a rectangle is 5 inches more than its width. The area of the rectangle is 50 square inches. Th
What kind of questions can science answer
What challenges did Dallas face as a youth and as an adult? in “The Girl-with-No-Name”
A psychologist has developed a series of personality inventories and wants to determine if they are valid. One of the scales measures perfectionism, so he asks
What happens when a bank is required to hold more money in reserve?​
The hawks are an allegory for the dangers the boy is about to encounter in the desert.Which quotation from The Alchemist best supports this statement?"Sit down.