Skip to main content

C Language Assignment I


1. Describe the basic features of a C language?
2. Discuss the programming style of a C language?
3. What is the role of semicolon in a C program?
4. Wat is the difference between a variable and a constant?
5. C language is said to be reach in data type. Discuss the various classes of data type available in C?
6. What do you understand by data qualifiers? What is the use of using such qualifiers.
7. What are the keywords used to define the following state with example?
1. Integral Data Type
2. Unsigned long integral data type
3. Floating point data type
4. signed character data type
5. signed short integral data type

8. What do you understand by ASCII value of a character? Can we use expressions including booth integral data type and character data type. Justify your answer.
9. What is escape sequence? When are these sequences required?
10. State whether following are true or false:
1. Every line of a C program must end with a Semicolon
2. C is not a case sensitive language
3. Every C program ends with a END word
4. main() is where program begins a execution
5. On one line in C program one can have only one statement
6. Closing braces of a C program signifies logical end of the program
7. Syntax error and logical errors are same.
8. Void is just a notation used with main().
9. A printf statement can generate only one line of output.
10. define and include are compiler directive statements.

.

Comments

Popular posts from this blog

Advantages and Disadvantages of EIS Advantages of EIS Easy for upper-level executives to use, extensive computer experience is not required in operations Provides timely delivery of company summary information Information that is provided is better understood Filters data for management Improves to tracking information Offers efficiency to decision makers Disadvantages of EIS System dependent Limited functionality, by design Information overload for some managers Benefits hard to quantify High implementation costs System may become slow, large, and hard to manage Need good internal processes for data management May lead to less reliable and less secure data

Inter-Organizational Value Chain

The value chain of   a company is part of over all value chain. The over all competitive advantage of an organization is not just dependent on the quality and efficiency of the company and quality of products but also upon the that of its suppliers and wholesalers and retailers it may use. The analysis of overall supply chain is called the value system. Different parts of the value chain 1.  Supplier     2.  Firm       3.   Channel 4 .   Buyer

Big-M Method and Two-Phase Method

Big-M Method The Big-M method of handling instances with artificial  variables is the “commonsense approach”. Essentially, the notion is to make the artificial variables, through their coefficients in the objective function, so costly or unprofitable that any feasible solution to the real problem would be preferred, unless the original instance possessed no feasible solutions at all. But this means that we need to assign, in the objective function, coefficients to the artificial variables that are either very small (maximization problem) or very large (minimization problem); whatever this value,let us call it Big M . In fact, this notion is an old trick in optimization in general; we  simply associate a penalty value with variables that we do not want to be part of an ultimate solution(unless such an outcome is unavoidable). Indeed, the penalty is so costly that unless any of the  respective variables' inclusion is warranted algorithmically, such variables will never be p