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
An interface is a class that contains only the method headings and each method heading is terminated with a semicolon. True Fals
liubo4ka [24]

Answer:

False

Explanation:

Interfaces are similar to classes in Java, but they are not a type of class. A class defines the attributes and behaviours of objects, while interface contains the methods that shows the behaviours to be implemented by a class.

A method is one or more group of statements, it does not need to end with a semicolon. Methods in interfaces are abstract and for a class to contain these abstract method, it must be defined in the class.

3 0
3 years ago
As you're helping a user configure her e-mail over the phone, she remarks that the IP address is different than it was when she
WINSTONCH [101]

Answer:

D. Her computer is a DHCP client.

Explanation:

Since in the question it is mentioned that IP address is different as compared in the previous week also the user did not make any changes with respect to the TCP/IP configuration and the system is working well

So this situation represents that the user computer is a client of DHCP as it deals with the client-server protocol in which it automatically generates the IP i.e Internet protocol along with the IP address

Hence, the correct option is d.

4 0
4 years ago
Predict the future that social media will have on society or the environment
hichkok12 [17]

Answer:

The future that this world holds for Social media may as well be known as the end of self opinions. This is because now  a days many people seek the opinions of others and no longer take there opinions into count. Social media can also damage the environment. This is because since people are on there phone longer bc of social media they also need to charge there phone more, which needs electricity, which comes from the burning of fossil fuels .

5 0
3 years ago
Drag the correct type of update to its definition.
iris [78.8K]

PRI – The connection between mobile tower and radio tower  

PRL – List of Radio frequencies  

Baseband – The chip that controls the radio frequency waves within the device.  

Explanation:

PRI :

• Stands for Primary rate interface.  

• Consists of information pertaining to ID number, network code, country code, etc, to enable the user to connect to the right network

• Gets updated from time to time.

PRL:

• Stands for Preferred Roaming List :

• Contains list of radio frequencies from various geographic location

• Used in CDMA network

• Contains information pertaining to service provider id, radio bands, sub bands, etc.

Baseband:

• Controls GSM and 3G Phone RF waves

4 0
3 years ago
CSc 2720 - Data Structures: Assignment 1 [100 points] How to Submit: Turn the .java file in Folder Assignment 1 in iCollege no l
gavmur [86]
Hehehwkwjhdhebfhshshwjbrbr
5 0
3 years ago
Other questions:
  • Groups to which we belong are defined late in our development true or false
    11·1 answer
  • Why do primitive types have ranges of values? what determines the range of the data type?
    15·1 answer
  • *blank* is the unauthorized copying and selling or distributing of licensed video games.
    10·1 answer
  • Assume that c is a char variable has been declared and already given a value. write an expression whose value is true if and onl
    6·1 answer
  • Who can pick up GPS signals
    14·1 answer
  • What is the decrypted binary
    9·1 answer
  • Provide three examples of software projects that would be amenable to the waterfall model. Be specific.
    11·1 answer
  • Help me plzzzz ASAP T-T and it's Cyber Security but my last day of school is tomorrow and I'll graduate in June 24 so plzzzzz I
    12·1 answer
  • People think that they can send email messages from their personal computers and that it cannot be traced. This is called the __
    13·1 answer
  • 1) a program that is designed to perform only one task.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!