subject

Which string method counts the number of characters in a string?

a. the count() function
b. the index() function
c. the replace() function
d. the len() function

which of the following lines of code would slice all of the characters before index 6 and then stride through every other character in the slice?

a. string_var[: 6: 2]
b. string_var[6: : 1]
c. string_var[6: : 2]
d. string_var[: 6: 1]

what would you expect to happen in response to the code string_var[3: 5]?

a. a substring will be sliced from index 3 through index 4.
b. a substring will be sliced from index 0 through 5.
c. the substring will be sliced from index 3 through the end of the string, and then it will stride through the string.
d. a slice will be created using the characters before index 3 and then it will stride with the stride number 5.

which list method returns an element at a specific index and then deletes that element from the list?

a. the pop() function
b. the remove() function
c. the append() function
d. the replace() function

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:10
Write an application that allows a user to enter the names and birthdates of up to 10 friends. continue to prompt the user for names and birthdates until the user enters the sentinel value โ€œzzzโ€ for a name or has entered 10 names, whichever comes first. when the user is finished entering names, produce a count of how many names were entered, and then display the names. in a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. the loop continues until the user enters โ€œzzzโ€ for a name. save the application as birthdayreminder.java.
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
question
Computers and Technology, 22.06.2019 13:30
Janeโ€™s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
Which string method counts the number of characters in a string?

a. the count() functio...
Questions
question
Computers and Technology, 19.11.2019 05:31
question
Mathematics, 19.11.2019 05:31
question
Mathematics, 19.11.2019 05:31
Questions on the website: 13722367