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

The picture below represents an atom of the element nitrogen. How many electrons are in this atom? A. 13 B. 7 C. 6 D. 20
This table shows the input and output values for an exponential function f(x) . What is the ratio of outputs for any two inputs that are one value apart?
Solve for x Cx-bx==-a
Question: Consider the domain (D) and rule of each function. Determine the range of the function. 1. D = {0, 1, 2, 3}; f(x) = 3x − 5 2. D = {−1, 0, 1}:
Help 20 points plz no fake answers
The pressure of a certain gas in atmospheres, p, and its corresponding volume in liters, v, are shown in the table. For the points in the table, does pressure v
Find the distance between each pair points (-5,3) , (-4,-5)?
For every 2 miles that i run , Rubio runs 5 miles. If i ran 12 miles last week, How many miles did Rubio run ?
past participle of lead
Determine the intercepts of the line that passes through the following points. (−5,−7)(0,-5) (5,−3)