answersLogoWhite

0


Best Answer

Variable names should show what data the variable holds so others reading your code will understand it. For example, a variable holding the age of a user should be called "age" or "user_age", or something similar.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is D a good variable name?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What do the percent signs in SystemRoot represent?

Substituting environment variable valuesTo enable the substitution of variable values at the command line or in scripts, enclose the variable name in percent signs (that is, %variablename%). By using percent signs, you ensure that Cmd.exe references the variable values instead of making a literal comparison. After you define variable values for a variable name, enclose the variable name in percent signs. Cmd.exe searches for all instances of the variable name and replaces it with the defined variable value. For example, if you create a script that contains different values (for example, user names) and you want to define the USERNAME environment variable for each user with these values, you can write one script using the variable USERNAME enclosed in percent signs. When you run this script, Cmd.exe replaces %USERNAME% with the variable values, which eliminates the need to perform this task manually for each user. Variable substitution is not recursive. Cmd.exe checks variables once. For more information about variable substitution, see For and CallFrom the above Technet description, the % signs are used to ensure that "cmd.exe" does not literally use the term "systemroot" and references the systemroot variable correctly (So therefore %systemroot% is recognised correctly as the C:\ drive, if C:\ is your systemroot).


What is the scope of c?

Describe the concept of Scope :Incomputer programming, ascopeis the context within acomputer programin which avariable nameor other identifier is valid and can be used, or within which adeclarationhas effect. Outside of the scope of a variable name, the variable's value may still be stored, and may even be accessible in some way, but the name does not refer to it; that is, the name is notboundto the variable's storage


How do you declare variables and constants.explain with example?

Depends on the programming language you are using. I will give two simple examples. In Command Prompt and when creating a batch file, you declare a variable by entering the "set" command. You can use different switches to change the type of variable you are declaring. /p makes the variable able to accept user input. /a makes the variable a numerical expression. In Python, you declare a variable just by stating the name of the variable and its value. x = value.


Explain different types of coding style in software engineering?

Meaningful variable names. Always use descriptive and meaningful variable names. Don't worry about the length. Meaningful variable names help other people reading your code understand what is going on. Example: if (a <= = 24) What is a? This is confusing. if (vacationHours <= = 24) See, better. <li>Variable scope indicated by name. Code is easier to read and understand if each variable indicates it's scope. One way to do this is to add prefixes to variable names, for example: Scope = Class member or instance variable: m_hours Scope = Class static variable: s_hours Scope = Parameter passed in a method call: p_hours Scope = local variable to a method: l_hours Regards ~Anoop


Member modifier 'public' must precede member type and name means in computer C language?

While you declaring the global variable you should declare it correctly... This problem mostly arise because any one of the data type in global should not have variable.

Related questions

Translate the phrase into a variable expression. Use the letter d to name the variable. If necessary use the asterisk ( ) for multiplication and the slash ( ) for division.?

Translate the following phrase into a variable expression. Use the letter d to name the variable. …7 times the distance


What are good questions to ask when trying to understand a problem?

Which of the following are good questions to ask when trying to understand a problem? Check all that apply.A. What are the units of the variable? B. Does my guess satisfy the equation? C. How should I present the solution? D. What is the variable? E. Is the variable always positive, negative, or either? F. What is a logical name for the variable? for apex-a, d, e and f


In an experiment the control variable is c and the response variable is d. Which variable is not manipulated but measured and represents the data being recorded?

d - Apex


What is the variable in 7d plus 2?

d is the variable here.


What is the name for a graph of variable X and variable Y?

the name for x variable is indepent name for y variable is depent


What makes for a good or bad variable name in C plus plus programming languages?

A good variable name is one that is clear, related to the data it stores. Also, you should try to avoid confusions with other variables.


What is the variable in the algebraic expression 7d plus 2?

The variable is "d".


What is the birth name of Dick Good?

Dick Good's birth name is Richard D. Good.


What is another name responding variable?

Another name for responding variable is dependent variable.


What is another name for responding variable?

Another name for responding variable is dependent variable.


What is a good first name to go with Clair?

Sin :D :D


Is the dependent variable also known as the output variable?

True! :D