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
natita [175]
3 years ago
11

assume that name is a variable of type stirng that has been assigned a value write an expression whose value is the last charact

er of the value of name..."blair"...'r'....
Computers and Technology
1 answer:
Snezhnost [94]3 years ago
7 0

Answer:

The most straight forward way to do it: in general string are zero index based array of characters, so you need to get the length of the string, subtract one and that will be the last character, some expressions in concrete languages would be:

In Python:

name = "blair"

name[len(name) - 1]

In JavaScript:

name = "blair"

name[name.length - 1]

In C++:

#include <string>

string name = "blair";

name[name.length() - 1];

You might be interested in
Two electronics technicians are looking at the piece of testing equipment shown in the figure above. Technician A says that this
Ilya [14]
B is your correct answer.
8 0
3 years ago
Read 2 more answers
In general, the right amount of time to do freewriting is
zlopas [31]
THE correct answer is c 10 minuets
4 0
3 years ago
Read 2 more answers
A network administrator is implementing a ping from one end of the network to the other, records the average round-trip time and
alexira [117]
May be a Network diagram.
3 0
3 years ago
7. Glaciers have two types of deposition. Define them below:
Zielflug [23.3K]
<span>The Glacial deposition is the settling of sediments left behind by a moving glacier. As glaciers move over the land, they pick up sediments and rocks. The mixture of unsorted sediment deposits carried by the glacier is called glacial till. Piles of till deposited along the edges of past glaciers are called moraines.</span>
5 0
3 years ago
When one method calls another, which of the following statements are true? The class methods and instance methods of one class m
Ivenika [448]

Answer:

All the 3 statements are true.

Explanation:

1. The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class.

2. The class methods and instance methods of one class may call the private instance methods of another class by using dot notation to invoke the method on an instance of the other class.

3. The instance methods of a class may call, without using dot notation, any class method of the same class.

All the above mentioned statements are true.

6 0
3 years ago
Other questions:
  • How to insert header and page number in word 2016?
    8·1 answer
  • Two functions of the UPS​
    8·2 answers
  • "The _____ of the Open Systems Interconnection (OSI) model generates the receiver’s address and ensures the integrity of message
    6·2 answers
  • What is a traffic controller?what are its functions?
    13·1 answer
  • PLEASE HELP!!!!! WILL MARK BEST ANSWER BRAINLIEST!!!~~~
    11·2 answers
  • How do i fix this to make it run ???
    9·1 answer
  • Select the correct answer from each drop-down menu.
    5·2 answers
  • ____ is a technology that exists inside another device
    9·2 answers
  • Explain ONE negative outcomes of not matching an ICT product to the correct audience:
    15·1 answer
  • Which statement about analog and digital images is true?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!