Professional Documents
Culture Documents
Part A
Part – B
Part A
Part B
Part A
1. What is meant by structured programming? Which language introduced structured programming concept?
2. What are real constants? In what ways can they be written?
3. What is conditional operator? Briefly explain with example.
4. What is the use of printf() and scanf(). Give examples.
5. Draw the flowchart for if-else statement. Give syntax.
6. What is a for loop? Give syntax.
7. Differentiate between library and user-defined functions.
8. What is recursion? Give its application.
9. What is the use of (*) indirection operator?
10. Give syntax of structure declaration.
11. What is a union in C?
12. List any 4 guidelines when developing a C program.
Part B
Part A
Part B
1. Discuss about the following input/output functions in C with examples.
a.Formatted b. Unformatted
2. a. Explain with syntax and flowchart the if-else control structure
b. Write program to calculate gross salary for conditions below
a. Basic Salary(Rs.) Da(Rs.) HRA(Rs.) Conveyance(Rs.)
b. >=5000 110% of Basic 20% of Basic 500
c. Bs>=3000 and bs<5000 100% of Basic 10% of Basic 400
d. Bs <3000 90% of Basic 10% of Basic 300
3. What are the advantages of pointers? How are pointers declared and initialized? How the value of a
variable is accessed using pointers? Give examples.
4. Write a C program using a user defined function to sort numbers in descending order.
5. Write Short notes about Queue ADT.
6. Write a C program to implement Shell Sort.
Anna University Chennai
Department of Computer Technology
Madras Institute of Technology
1/7 BE – CSE Part Time
Assignment
Programming and Data Structures- 1
Batch I Regno: 2011552041-2011552051
Part A
Part B