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 was a prime motivation for russia's colonial expansion in the late nineteenth and early twentieth centuries?
explain how a blood glucose concentration of 7.5 mmol dm–3 would be brought back to normal in the body of a mammal and why this is a negative feedback mechanism
What is y = 11 and x = 19?
What does this phrase need to make it an independent clause? threw the ball
Based on the graph, what is the initial value of the linear relationship?
After the expression x^10 ^3/5 is simplified as much as possible, x is raised to what exponent?
Most advanced computer systems do not have audit trails. a. True b. False
Which of the following is the representation of a decimal number​ A. 3 3/10 B. 1/2 C. .25 D. 2 (3)
Which of the following is NOT true about the emergence of radio? A. Most people were able to afford to buy radios, even during the Great Depression. B. Radios
How did the lusitania contribute to drawing the united states into world war 1?