1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
KIM [24]
3 years ago
6

Assuming that the message variable contains the string "Happy holidays", the statement message.find("days"); returns a. -1b. 10c

. 11d. day
Computers and Technology
1 answer:
katrin [286]3 years ago
7 0

Answer:

Answer is b. 10                

Explanation:

The find() method is used to search the string for a specified value and searches the first occurrence of that value. It returns the position of that specified value. If the value is not found, this method returns -1.

Lets say we have a message variable that contains the string Happy holidays.

message = "Happy holidays"

We use the method find() to find days word from the Happy holidays string in the message variable.

The find() method will find the position of day.

If we look at the string Happy holidays we see that the word day is at the 10th position of the string.

H     1

a      2

p      3

p      4

y      5

h      6

o      7

l       8

i       9

d      10

a      11

y      12

s      13

So it is at 10th position so the statement

message.find("days")

returns 10

You might be interested in
Which best describes a computer bug?
yanalaym [24]

Answer:

a piece of computer software containing defects that prevent a program from running properly

Explanation:

i got a 100% on the test

6 0
3 years ago
What are sums of money that are given out for specific reasons?
xenn [34]

Answer:

a

Explanation:

6 0
3 years ago
Read 2 more answers
Relationship between application system<br>.and database​
RideAnS [48]

Explanation:

there is a very close relationship between DBMS and application programs the application programs provide the user-interface to send request to DBSM and to receive processed results from DBMS processes that request and return the results to the application program and also controls and manages the database

3 0
3 years ago
Light whose wavelength is 565 is incident on a 0.00600 wide slit. At what angle is the first diffraction minimum located??
yanalaym [24]

The first diffraction minimum located at an angle of 5.40°.

<u>Explanation:</u>

Here the wavelength, λ = 565 nm = 565 × 10⁻⁹ m

Width of the slit, d = 0.00600 mm = 6 × 10⁻⁶ m

We need to find the angle as,

sin θ = mλ / d

We have to find the angle as,

θ  = sin⁻¹ ( mλ / d )

Here m = 1,

θ = sin⁻¹ ( $\frac{1\times565 \times 10^{-9} }{6\times 10^{-6} } )

  = sin⁻¹(0.0942)

  = 5.40°

So the first diffraction minimum located at an angle of 5.40°.

5 0
4 years ago
An vector of int named a that contains exactly five elements has already been declared and initialized. In addition, an int vari
kow [346]

Answer:

a[j] = 2*a[j+1];

Explanation:

The statement above assigns a new value to the element of the array indexed by j. The new value should be equal to twice the value stored in the next element of the array.

8 0
3 years ago
Other questions:
  • Kevin wants an application that will help him create a website as well as publish it. What application can he use?
    9·1 answer
  • True/False: When you make a function call, the order of the arguments you send does not matter as long as the number of argument
    15·1 answer
  • Which of the following is true about STEM education? STEM education is focused on understanding rather than applying scientific
    15·1 answer
  • Page No.
    10·1 answer
  • Software that function as an electronic file cabinet
    7·1 answer
  • Which type of communities handle recurring tasks in organization
    9·1 answer
  • what is musical technology specifically, the origins of its genesis &amp; its importance to the baroque era
    6·1 answer
  • Guidewords for the word “serpent” may be
    8·2 answers
  • Suppose the cache access time is 10ns, main memory access time is 200ns, and the cache hit rate is 90%. Assuming parallel (overl
    10·1 answer
  • 5 points)*list all of the data that needs to be kept track of for the scenario above in a 1nf (flat file) table (20 points)*use
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!