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, 22.06.2019 01:00
Program description: a c# app is to be created to produce morse code. the morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). in sound-oriented systems, the dot represents a short sound and the dash represents a long sound. separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. in a sound-oriented system, a space is indicated by a short period of time during which no sound is transmitted. the international version of the morse code is stored in the data file morse.txt.
Answers: 3
question
Computers and Technology, 22.06.2019 17:20
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
You know the right answer?
Which string method counts the number of characters in a string?

a. the count() functio...
Questions
question
Mathematics, 17.07.2019 21:30
Questions on the website: 13722363