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

Why is it a mistake to put e-mail address of people who don't know each other in the "to:" field
Mark noticed that his bus is late to school 5% of the time. He wants to design a spinner he can use to simulate the situation and determine the probability that
What explains the popularity of the ghost dance movement in the 1880s?
List six of the many government services that are paid for with taxes
I am a little bit confused by what this sentence means. (highlighted one in blue)
Find the equation of the line with slope = -4 and passing through (9,-43)
3-2 applying the exponent rule for negative exponent
Both the atomic bomb and nuclear power plants produce energy by the process of nuclear _____. A fission B fusion C energy D heating
for safety's sake industrial screwdriver blades are made of?
Mitochondria store the energy released when they burn glucose as