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 is a group of snakes called?
what is a normal temperature for dogs?
what is a xylophone? need help pls
what are the different types of gorilla?
I need help.. 7k/8-3/4-5k/16=3/8seven "k" over eight minus three fourths minus five "k" over sixteen equals three eighths
Solve this.. ➕+ ➕ + ➕+ ➕=30 Fill the boxes using (1, 3, 5, 7, 9, 11, 13, 15) U can also repeat the numbers..
How do you multiply 5/12 times 2/9?
To make 6 glasses of lemonade, Karla uses 1/2 cup of sugar, 1/2 cup of lemon juice, and 51/2 cup of water. If Karla wants to make 10 glasses of lemonade, which
what is a group of snakes called?
Solve this.. ➕+ ➕ + ➕+ ➕=30 Fill the boxes using (1, 3, 5, 7, 9, 11, 13, 15) U can also repeat the numbers..