Question

In: Computer Science

(1) Define the term identifier as a name for something, such as a variable, constant, or...

(1) Define the term identifier as a name for something, such as a variable, constant, or function.

(2) Define the term data type as a set of values together with a set of operations.

(3) Discuss the five arithmetic operators in C++ that are used to manipulate integral and floating-type data types.

Solutions

Expert Solution

1)  Identifier refers as a name given to entities such as constant, variables, functions, structures etc. Reserved words in any programming language cannot be used as identifiers.

ex int sum , summation

No two identifiers in the program have same name as to avoid the collision of what is being called and what is served. Unique name to identify it during the execution of the program. Their can be same name but it all depends on the scope of the identifiers like in the two different functions have same variable name but functions should be different,like wise all the identifiers in their scope should be unique.

2) A data type is an attribute of data which tells the compiler what type of data user is going to store in it. Most programming language support int, float, double, boolean etc. Different types of operations can be performed over the them and store in the resulted data  

ex int y = 4; int x = 8; int z = x+y;

similarly for float ,double and all remaining data types

3) The five of them are for integral type   c = a+b; c = a-b; c = a*b; c = a/b; c = a%b ;

four for the floating type c = a+b; c = a-b; c = a*b; c = a/b;


Related Solutions

1. Declare/define the variable/constant as indicated: a. a variable to store the grade for a student...
1. Declare/define the variable/constant as indicated: a. a variable to store the grade for a student (as whole number) b. a variable to store a letter grade for a course, like A, B, or C c. a variable to store an average for a student (may have decimal places) d. a variable to represent if a student passed the course or not, with a value of TRUE or FALSE e. a constant to represent the passing grade of 65 2....
QUESTION 1 Define the term coenzyme. 2 pts. Name and describe the role of the B...
QUESTION 1 Define the term coenzyme. 2 pts. Name and describe the role of the B vitamins that function as part of the structure of coenzymes. 4 pts. QUESTION 2 Why does following a vegan diet result in risk for B-12 deficiency? 2 pts. What is Vitamin B-12 deficiency, list 3 ways to supplement for this deficiency and list when each method is appropriate. 3 pts. QUESTION 3 How do the vitamins function in the metabolic process? (list the vitamins)...
What is a variable? What is an independent variable? What makes something a variable?
What is a variable? What is an independent variable? What makes something a variable?
In ArcGIS, What is conforming property? Name something that has this property and something that does...
In ArcGIS, What is conforming property? Name something that has this property and something that does not-
1. Define the term six sigma.
1. Define the term six sigma.
2A. Define the term rhizome. 2B. What is the name given to a fern leaf? List...
2A. Define the term rhizome. 2B. What is the name given to a fern leaf? List and describe the parts of a fern leaf. 2C. Define the term sorus. What is an indusium? What is a sporangium?
Define the term “Expenditure” and distinguish between that term and each of the following terms: 1....
Define the term “Expenditure” and distinguish between that term and each of the following terms: 1. Expense 2. Disbursement 3. Encumbrance
Each answer will need to identify the source of the term (1 point), define the term...
Each answer will need to identify the source of the term (1 point), define the term according to the source (2 points), and demonstrate the significance of this term in order to understand the role of science and technology in global development (2 points). Each answer should be at least 5 sentences. Multiple sciences The Invention of Development Dependency Structural Adjustment Policies Brundtland Commission Imagined Communities Monumental Modernity The Workings of Disrepair
1.Determine following conversation (1) Define 'Decibel (dB)' (2) Define 'time constant' (3) Define 'Hall effect' and...
1.Determine following conversation (1) Define 'Decibel (dB)' (2) Define 'time constant' (3) Define 'Hall effect' and Writes it's principle and representative Use (4) Defne 'SI(International Systems of Units)' (5) Characteristic of 'Operational Amplifier' (more than 3) (6) Define 'Feedback Control' (7) Explain Advantages of 'Microprocessor Controler' and representative Use (8) Define 'Cracking Pressure' (9) Define 'Cavitation' and its Effect (10) Definie 'Servo Valve' and Writes it's principle and representative Use
Define the following concepts: (a) constant capital; (b) variable capital; (c) rate of surplus value; (d)...
Define the following concepts: (a) constant capital; (b) variable capital; (c) rate of surplus value; (d) mass of surplus value.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT