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

solve quadratic equation by completing the square x²+2x-15=0
What are two ways in which the suns energy can be captured and used?  How can both be used in a home?
An energy value of 3.313 × 10^{-19} joules is needed to break a chemical bond. What is the wavelength of energy needed to break the bond? (The speed of light =
To call off,invalidate,void means what
If a square has an area of 81 square units how long is each side?
Jessica's shoebox is 20 centimeters long and 10 centimeters wide. How many more millimeters is the length of the shoebox than the width?
How far is the earth slanted
solve the problem explain your answer  6/7m = 5/6
how did the Soviet Union's foreign policy goals contradict one another ?
what does asterisk mean