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
Elis [28]
3 years ago
8

Which of the following is a valid variable name? a. salesTax b. input-string c. 25Percent d. double

Computers and Technology
1 answer:
PilotLPTM [1.2K]3 years ago
5 0

Answer:

The correct answer of the given question is option(A) i.e salesTax

Explanation:

Variable are the storage area which value varies during the execution of aprogram .

some of the rules of variable are

1 Variable always start with alphabet.

2 We cannot give variable name any reserve keyword.

3 Variable cannot start with digit.

4 We cannot use special symbol like -,$ to declare any variable

In option (b ) input-string ,it is invalid variable because it uses special symbol "-"  to declared the variable.

In option (c) 25Percent , it is invalid variable because it violate the rule of  variable and start with digit.variable cannot start with digit

In option( d )double, it is invalid variable because it violate the rule of  variable because double is keyword and variable never be a keyword.

So option(A) is correct it follow the rule of variable.

You might be interested in
Which statement is true about wikis? Wikihow is an online dictionary that aims to define words. A wiki cannot be used in an orga
True [87]
The true statement abt Wikis is "<span>Among Wikipedians, editors can grant or remove administrator rights."</span>
8 0
2 years ago
Read 2 more answers
Iglesias intends to use a word processing program to create a web page. Which of these options should Iglesias use?
Murrr4er [49]
He should view the Outline THEN the Layout and finally preview in web browser.
6 0
3 years ago
Given the char * variables name1, name2, and name3, write a fragment of code that assigns the largest value to the variable max
Assoli18 [71]

Answer:

The following code as follows:

Code:

max=name1;   //define variable max that holds name1 variable value.

if (strcmp(name2, max)>0)  //if block.

{

   max=name2;  //assign value to max.

}

if (strcmp(name3,max)>0)   //if block.

{

  max=name3; //assign value to max.

}

Explanation:

In the above code, we define a variable that is max. The data type of max variable is the same as variables "name1, name2, and name3" that is "char". In the max variable, we assign the value of the name1 variable and use if block statement two times. In if block, we use strcmp() function that can be defined as:

  • In first if block we pass two variables in strcmp() function that is "name2 and max" that compare string value. If the name2 variable is greater then max variable value so, the max variable value is change by name2 variable that is "max=name2".
  • In second if block we pass two variables in strcmp() function that is "name3 and max" that compare string value. If the name3 variable is greater then max variable value so, the max variable value is change by name3 variable that is "max=name3".

4 0
3 years ago
If several programs or apps are running simultaneously, your computer or device might use up its
kirill [66]

Answer: I am pretty sure it's RAM

Explanation:

I'm not 100% positive bc I haven't gotten my scores back yet but I think that's it.

7 0
2 years ago
I want to work with LDAP. what is LDAP?
pychu [463]
It's an internet protocol (Lightweight Directory Access Protocol) used to fetch data from servers.
5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the person's age. Complete fat_burn
    10·1 answer
  • What does CPL stand for
    9·2 answers
  • Write a script which: Uses the input function to get any number and store it in a variable named my_number Create a new variable
    8·1 answer
  • A company is utilizing servers, data storage, data backup, and software development platforms over an Internet connection.
    14·1 answer
  • Many software makers provide free downloadable updates, sometimes called a(n) ______ to users who have registered and/or activat
    5·1 answer
  • Which type of address is used at the transport layer to identify the receiving application?
    14·1 answer
  • The linear programming ingredient or blending problem model allows one to include not only the cost of the resource, but also th
    14·1 answer
  • Which act requires that financial institutions must provide a privacy notice to each consumer that explains what data about the
    12·1 answer
  • In two to three sentences, define "home row" and explain why it is important.
    6·2 answers
  • Guys, please help me asap (Photo Attached) !!!!!!! HELP 25pts!!!!
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!