What are variables and it what way is it different from constants?

1 Answer

Answer :

Variables and constants may at first look similar in a sense that both are identifiers made up of one character or more characters (letters, numbers and a few allowable symbols). Both will also hold a particular value. Values held by a variable can be altered throughout the program, and can be used in most operations and computations. Constants are given values at one time only, placed at the beginning of a program. This value is not altered in the program. For example, you can assigned a constant named PI and give it a value 3.1415 . You can then use it as PI in the program, instead of having to write 3.1415 each time you need it.

Related questions

Description : The ratio of equilibrium constants (Kp2/Kp1) at two different temperatures is given by (A) (R/∆H) (1/T1- 1/T2) (B) (∆H/R) (1/T1- 1/T2) (C) (∆H/R) (1/T2- 1/T1) (D) (1/R) (1/T1- 1/T2)

Last Answer : (B) (∆H/R) (1/T1- 1/T2)

Description : Define what are the different types of constants?

Last Answer : 1. There are five types of constants. They are : 2. Integer constants 3. Floating point constants 4. Character constants 5. String Literals 6. Enumeration Constants

Description : The breakdown of insulation of the cable can be avoided economically by the use of (a) inter-sheaths (b) insulating materials with different dielectric constants (c) both (a) and (b) (d) none of the above

Last Answer : (c) both (a) and (b)

Description : What are the constants of the universe?

Last Answer : answer:From Wikipedia: According to Michio Kaku (1994: 124-27), the Standard Model of particle physics contains nineteen arbitrary dimensionless constants that describe the masses of the particles and ... than can be modelled by the cosmological constant, yet more constants will be needed.

Description : Hello, Please help with solving the task: Ludolf's number and Euler's number and the Golden Section seven numbers of east longitude, giving the final coordinates. At the same time, the final coordinates ... wanted the coordinates of north latitude N 50 ° 12.345 ', you would look for seven 5012345.

Last Answer : Need Answer

Description : Let `0le theta le pi/2` `x=Xcos theta + Ysin theta` `y=Xsin theta - Y cos theta` such that `x^2+4xy+y^2=aX^2+bY^2` where `a,b` are constants such that

Last Answer : Let `0le theta le pi/2` `x=Xcos theta + Ysin theta` `y=Xsin theta - Y cos theta` such that `x^2+4xy+y^2=aX^2+ ... C. `a=3`, `b=-1` D. `theta=(pi)/(3)`

Description : For a linear plot of log(x/m) versus log p in a Freundlich adsorption isotherm, which of the following statements is correct ? (k and n are constants)

Last Answer : For a linear plot of log(x/m) versus log p in a Freundlich adsorption isotherm, which of the following ... Both k and 1/n appear in the slope term.

Description : State, whether all constants are dimensionless or unitless.

Last Answer : State, whether all constants are dimensionless or unitless.

Description : How does the method for solving equations with fractional or decimal coefficients and constants compare with the method for solving equations with an integer coefficients and constants?

Last Answer : The answer depends on how advanced your methods are. In general,the methods are the same except that if you have repeatingdecimals, they may cause rounding errors.

Description : What are some posture and resistance constants of an effective resistance posture.?

Last Answer : What is the answer ?

Description : What are some posture and resistance constants of an effective resistance?

Last Answer : What is the answer ?

Description : The constants (Kb, Kr and Kk) used in the laws of crushing (i.e., Bond's law, Rittinger's law and Kick's law) depend upon the (A) Feed material (B) Type of crushing machine (C) Both (A) & (B) (D) Neither (A) nor (B)

Last Answer : (C) Both (A) & (B)

Description : Explain why you might use enums and constants instead of their associated literal values.

Last Answer : Enums and constants make code easier to read and maintain by substituting human-legible tokens for frequently used constant values.

Description : Absolute entitiesare_ Ss whom value signify storage locations that are independent of resulting machine code: a. Numeric constants b. String constants c. Fixed addresses d. Operation codes e. Allofthese

Last Answer : e. Allofthese

Description : The benefit of Maxwell equation is that a) Any parameter can be calculated b) Antenna can be designed c) Polarisation of the wave can be calculated d) Transmission line constants can be found

Last Answer : a) Any parameter can be calculated

Description : Curl of gradient of a vector is a) Unity b) Zero c) Null vector d) Depends on the constants of the vector

Last Answer : c) Null vector

Description : At a given value of E/R (ratio of activation energy and gas constant), the ratio of the rate constants at 500°K and 400°K is 2, if Arrhenius law is used. What will be this ratio, if transition state theory is used with the same value of ‘E/R’? (A) 1.6 (B) 2 (C) 2.24 (D) 2.5

Last Answer : (D) 2.5

Description : The rate expression for a heterogeneous catalytic reaction is given by, - rA = K.KA PA(1 + KA.PA + KR.PR), where K is surface reaction rate constant and KA and KR are absorption equilibrium constants of A and R respectively. If KR PR ... R and A) (A) E (B) E + ΔHA (C) E + ΔHA - ΔHR ) (D) ΔHA + ΔHR

Last Answer : (C) E + ΔHA - ΔHR )

Description : One of the tacheometric constants is additive, the other constant, is  (A) Subtractive constant  (B) Multiplying constant  (C) Dividing constant  (D) Indicative constant 

Last Answer : (B) Multiplying constant 

Description : a tacheometer is fitted with an anal-latic lens (A) Additive constant is 100, multiplying constant is zero (B) Multiplying constant is 100, additive constant is zero (C) Both multiplying and additive constants are 100 (D) Both multiplying and additive constants are 50

Last Answer : (B) Multiplying constant is 100, additive constant is zero

Description : For a tachometer the additive and multiplying constants are respectively (A) 0 and 100 (B) 100 and 0 (C) 0 and 0 (D) 100 and 100

Last Answer : (A) 0 and 100

Description : Which of the following is true for Virial equation of state? (A) Virial co-efficients are universal constants (B) Virial co-efficients 'B' represents three body interactions (C) Virial co-efficients ... of temperature only (D) For some gases, Virial equations and ideal gas equations are the same

Last Answer : (C) Virial co-efficients are function of temperature only

Description : Define what is the difference between constants, readonly and, static?

Last Answer : 1. Constants: The value can’t be changed. 2. Read-only: The value will be initialized only once from the constructor of the class. 3. Static: Value can be initialized once.

Description : Which of the following relationships is correct for relating the three elastic constants of an isotropic elastic material (where, E = Young's modulus, G = Modulus of rigidity or shear modulus v = Poisson's ratio)? (A) E = 2G (1 + v) (B) E = G (1 + v) (C) E = G (1 + v)/2 (D) E = 2G (1 + 2v)

Last Answer : (A) E = 2G (1 + v)

Description : The same volume of all gases is representative of their (A) Specific gravities (B) Densities (C) Gas characteristic constants

Last Answer : Option D

Description : The thickness of oxide film is y at time t. If K1, K2 and K3 are the temperature dependent constants, the parabolic law of oxidation is given by (A) y2 = 2k1t + k2 (B) y = k1 ln (k2t + k3) (C) y = k1 t + k2 (D) y = k1t3 + k2

Last Answer : Option A

Description : The same volume of all gases would represent their  (a) densities  (b) specific weights  (c) molecular weights  (d) gas characteristic constants  (e) specific gravities.

Last Answer : Answer : c

Description : Which of the following are the constants of the transmission lines ? (a) Resistance (b) Inductance (c) Capacitance (d) All of the above

Last Answer : (d) All of the above

Description : A transmission line is said to have distributed constants of inductance, capacitance, and resistance along the line. What units of measurement are used to express these constants?

Last Answer : Inductance is expressed in micro henrys per unit length, capacitance is expressed in picofarads per unit length, and resistance is expressed in ohms per unit length.

Description : What are the three constants associated with a steady state error.

Last Answer : Positional error constant Velocity error constant Acceleration error constant

Description : What are static error constants?

Last Answer : The Kp Kv and Ka are called static error constants.

Description : The ....................... looks only for a match between the value of the expression and one of its case constants. A) if B) match C) switch D) None of the above

Last Answer : C) switch

Description : In a simple bending theory, one of the assumption is that the material of the beam is isotropic. This assumption means that the a. normal stress remains constant in all directions b. ... c. elastic constants are same in all the directions d. elastic constants varies linearly in the material

Last Answer : c. elastic constants are same in all the directions

Description : Which of the following are the constants of the transmission lines ? (a) Resistance (b) Inductance (c) Capacitance (d) All of the above

Last Answer : (d) All of the above

Description : Which of the following assumptions of Freunlich adsorption isotherm is incorrect? (a) The constants are temperature dependent (b) It is valid over a range of pressure only (c) Adsorption ... equation is purely an empirical equation (d) The adsorbed molecules may be multimolecular in thickness

Last Answer : (d) The adsorbed molecules may be multimolecular in thickness

Description : What are the additive and multiplying constants of planimeter?

Last Answer : Area of the irregular figure measured by planimeter is given by:  Where M = Multiplying constant  C = Additive costant Multiplying Constant: It is the multiplier whose value is marked on ... It is taken in to consideration only when anchor point is inside the figure, else it is zero.

Description : Write down the procedure for determination of tacheometric constants.

Last Answer : Method of determining tacheometric constants in the field1) A fairly level ground is selected. The tacheometer is set up at O and pegs are fixed at A, B & C, known distances apart. 2) The staff ... 5) By solving the equations in pairs, find tacheometric constants (f/i) and (f+d)

Description : A telephone cable has following primary constants per loop kilometer ,R=30Ω, L=20mH,C=0.06µF,G=0.If the applied signal has an angular frequency of 5000 rad/sec.., Determine (i) Characteristics impedence (ii) Attenuation constant

Last Answer : A telephone cable has following primary constants per loop kilometer ,R=30Ω, L=20mH,C=0.06µF,G=0.If the applied signal has an angular frequency of 5000 rad/sec.., Determine (i) Characteristics impedence (ii) Attenuation constant

Description : Which of the two generalized constants of a transmission line are equal?  (a) B & C (B) A & B (c) A & D (D) B & D

Last Answer : Which of the two generalized constants of a transmission line are equal?  (a) B & C (B) A & B (c) A & D (D) B & D

Description : The inertia constants of two groups of machines which do not swing together are M1 and M2. The equivalent inertia constant of the system is

Last Answer : The inertia constants of two groups of machines which do not swing together are M1 and M2. The equivalent inertia constant of the system is M1M2/M1+M2

Description : The qualitative or quantitative attribute of a variable or set of variables is termed as A) data B) information C) both of above D) none of above

Last Answer : Answer : A

Description : A Hybrid Bayesian network contains  Both discrete and continuous variables  Only Discontinuous variable  Both Discrete and Discontinuous variable  Continous variable only.

Last Answer :  Both Discrete and Discontinuous variable

Description : Why two different variables m and s are needed in exercise 3?

Last Answer : Because there are two unknown variables.

Description : In an experiment to determine the effect of different brands of fertilizer on the rate of plant growth what are the independent and dependent variables?

Last Answer : Need answer

Description : Define what are the different types of variables in C#?

Last Answer : Different types of variables used in C# are : static variables instance variable value parameters reference parameters array elements output parameters local variables

Description : Research that is done to examine the findings of someone else using the "same variables but different people” is which of the following? a. Exploration b. Hypothesis c. Replication d. Empiricism

Last Answer : c. Replication