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
DochEvi [55]
3 years ago
13

What is an identifier? Give an example of an identifier.

Computers and Technology
1 answer:
ser-zykov [4K]3 years ago
7 0

Explanation:

An identifier is the name of a program or the names of the variables, classes, methods, namespaces or interfaces within a program that are used to identify the relevant data/info.

Typically, identifiers must start with a letter (no numbers) and must not have any spaces in them, it should indicate the meaning and usage of the element being referred and i  t cannot have more than 511 characters.

An example is:

<em>int money; </em>

<em>double accountBalance;</em>

Where money and accountBalance are the identifiers.

I hope you find this information useful and interesting! Good luck!

You might be interested in
Write function modifyString(origString, charsToReplace, count) that takes as input a string origString, a string charsToReplace,
laila [671]

Answer:

The code of the above program is provided below. using Python

Explanation:

<u>Code in Python 3:- </u>

def modifyString(origString,charsToReplace,count):

# Make s1 as original string

s1=origString

# Make s2 as charsToReplace string in lowercase

s2=charsToReplace.lower()

# Make s3 as charsToReplace string in uppercase

s3=s2.upper()

# Initialize answer as an empty string

ans=''

# Iterate the string upto length times

for i in range(len(s1)):

# check for chars in the string and append to the answer

if (s1[i] in s2) or (s1[i] in s3):

ans=ans+count*s1[i]

else:

ans=ans+s1[i]

# return the final string

return ans

print(modifyString("Our cat is funny","aeiou",5))    

print(modifyString("Our cat is funny","zu",3))

8 0
3 years ago
Which of the following statements about global variables is true? 1.A global variable is accessible only to the main function. 2
Korvikt [17]

Answer:

A global variable can have the same name as a variable that is declared locally within the function.

Explanation:

In computer program, we refer to a global variable as that variable that comes with a global perspective and scope, ensuring its visibility throughout the program, except it is shadowed. The set of this kind of variable is referred to as global state or global environment. One feature of global environment is that it can have similar name as a variable declared locally within the function.

7 0
3 years ago
Write a format operation that builds a string for the float variable amount that
borishaifa [10]

Answer:

8

Explanation:

3 0
3 years ago
Is a hotdog a sandwich?​
Stells [14]

Answer:

Explanation:

Yes

4 0
4 years ago
Read 2 more answers
Write a recursive program that calculates the total tuition paid over certain number of years. The tuition goes up by 2.5% per y
Lisa [10]

Answer:

The program is as follows:

def calctuit(pay,n,yrs):

   if n == 0:

       return

   pay*=(1.025)

   print("Year ",yrs,": ",pay)

   calctuit(pay,n-1,yrs+1)

n = int(input("Years: "))

pay = float(input("Tuition: "))

yrs = 1

calctuit(pay,n,yrs)

Explanation:

The function begins here

def calctuit(pay,n,yrs):

This represents the base case

<em>    if n == 0:</em>

<em>        return</em>

This calculates the tuition for each year

   pay*=(1.025)

This prints the tuition

   print("Year ",yrs,": ",pay)

This calls the function again (i.e. recursively)

   calctuit(pay,n-1,yrs+1)

The function ends here

This gets the number of years

n = int(input("Years: "))

This gets the tuition

pay = float(input("Tuition: "))

This initializes the years to 1

yrs = 1

This calls the function

calctuit(pay,n,yrs)

8 0
3 years ago
Other questions:
  • The set of specific, sequential steps that describe exactly what a computer program must do to complete the work is called a(n _
    14·1 answer
  • Why people needs soft skills in the era of high technology.
    13·1 answer
  • You type. The word "weather" when you ment "whether" when will the writer or word flag this as a misspelling or a grammar proble
    13·1 answer
  • What term specifies how information systems resources should be used and how they should work together?
    13·1 answer
  • In a typical e-mail address the host is
    14·1 answer
  • Website administrators relay on ______, which is data such as the number of users who commented on, shared, viewed, or liked web
    7·2 answers
  • Which elements of a myth appear in this story from early babylon
    14·1 answer
  • Using an outline, how do you maintain your computer or cellphone​
    8·1 answer
  • Targeted advertising, in which advertisements are shown to individuals based on past purchases, web searches or other demographi
    9·1 answer
  • The discipline of building hardware architectures, operating systems, and specialized algorithms for running a program on a clus
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!