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
djyliett [7]
3 years ago
9

"given a string variable named sentence that has been initialized, write an expression whose value is the index of the very last

character in the string referred to by sentence. submit"
Computers and Technology
1 answer:
gregori [183]3 years ago
3 0

<u>Answer:</u>

There are many string <em>built-in functions</em> which would help us to do numerous operations on the string. A person who can play with <em>strings and Dates are the best programmers. </em>

<em>char[50] sentence = “This is a sentence; </em>

<em>print sentence[sentence.length()-1]; // expected expression </em>

The above piece of get declares a character array and initialized with a sentence. The next sentence obtains the <em>“last index” using “sentence. length() and subtracts 1 </em>to get the last index of the given string and pass it to the character array. <em>So it will print “e” since ‘e’ is the last character in the sentence. </em>

You might be interested in
Evan accidentally entered an incorrect word when he was typing a document. Which keyboard shortcut should he use to undo the err
agasfer [191]
CTRL Z is the redo action so thats your best bet
8 0
3 years ago
Read 2 more answers
Both instructions and data in a digital<br>computer are represented as binary<br>digits. True False​
MrRissso [65]

Answer:

False

Explanation:

insturctions are represented in binary numbers, data are represented in decimal numbers.

6 0
3 years ago
Given an array of users, write a function, namesAndRoles that returns all of user's names and roles in a string with each value
LenaWriter [7]

Answer:

def namesAndRoles(users):

   for user in users:

       return f"{user[name]}, {user[role]}"

Explanation:

The python program gets the list of dictionaries of the users in a company and returns the user names and their roles. The code is defined as a function and is executed when the function is called.

3 0
3 years ago
What legal protection would cover a person invention?
Sonbull [250]

Answer:

Option 4, A patent

According to Wikipedia, a patent is defined as, "A title that gives its owner the legal right to exclude others from making, using, or selling an invention for a limited period of years in exchange for publishing an enabling public disclosure of the invention."

6 0
3 years ago
Read 2 more answers
When you register to take classes, the registrar office pulls up a file full of
anzhelika [568]

Answer:

Database

Explanation:

Database software is intended to develop databases and to maintain, alter, access, and obtain useful data stored within them. It is often used to store, manage, and organize information such as field names, documents, and file structures in a database. it helps users to create their own databases to meet their business specifications and requirements. It provides data flexibility, as the storage process and formats can be modified without changing the entire program inside the database.

6 0
3 years ago
Other questions:
  • The _______ displays the name of the open file and the program.
    13·1 answer
  • Discuss the software development methodology you would use for developing a software product for insurance agents, and state val
    10·1 answer
  • Robert is leading a project online that includes students from different cultures. Two of the students spend most of the time li
    7·1 answer
  • Given two variables , first_place_winner and second_place_winner, write some code that swaps their associated values. use any ad
    12·1 answer
  • Which scenario could be represented by the given graph?
    14·1 answer
  • Can you give 10 facts about the Victorians please
    9·1 answer
  • 1. How do you identify the location of components and replacement procedures for notebook systems?
    6·1 answer
  • What will be the code in CSS, to set
    8·1 answer
  • Describe the facility that allows multiple types of operating systems to run in a virtualized environment with varying types of
    15·1 answer
  • Busco....................... Novio
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!