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

What are the advantages and disadvantages of table football? (2 advantages and 2 disadvantages)
the major difference between a topographic map and other maps is that a topographic map shows.... a) distances b) elevations c) sizes d) roads
To what degree are alliances good for the world?
In which speech did Lincoln urge the country to “bind up the nation’s wounds”?
What was the political organization of most Ancient Greek
Jerry has used online databases that can direct him to
Plz help me get the answe
Please answer this correctly
Based on “On Women’s Right to Vote,” which answer best describes how events in Susan B. Anthony’s life contributed to her writing? On Women’s Right to Vote A
Read the letter Sophie wrote to her parents from Venezuela and answer the questions that follow. Queridos mamá y papá: ?Cómo están?, Charlie y yo estamos