You are on page 1of 2

GOVERNMENT POLYTECHNIC - HIMATNAGAR

GADHODA ROAD, MOTIPURA, HIMATNAGAR-383001

Branch: Information Technology

Subject: Advance Computer Programming (3320702)

Semester: 2nd

Assignment-1: ARRAYS [CO1]


1. Describe an array with Example.
2. Illustrate initialization and working of single and multi-dimensional array with example.
3. Describe 1D-array operations.
4. Create a Matrix addition Program using 2-Dimensional array.
5. Define a string with example.
6. Compare scanf () and gets (), printf () and puts ().
7. Describe various string handling operations available in ‘C’ with example.
8. Describe sprintf() and sscanf() function.

Assignment-2: POINTERS [CO2]


1. What is pointer? How to declare and initialize it?
2. Differentiate Array and Pointer, Static memory allocation and Dynamic memory allocation.
3. Describe Array of Pointers.
4. Describe Void Pointer.
5. Describe Pointer to Pointer.
6. Describe malloc(),calloc(),realloc() function with example.
7. Create a program to Swap value of two variables using pointer. OR Swap value of two
variables using call by reference.
8. Create a C program to calculate sum of 10 elements of an array using pointers.
9. List the advantages and disadvantage advantages of pointer.
Assignment-3 FUNCTIONS [CO3]
1. What is user defined function? Explain with example. Define the syntax of function in C.
2. Classify the different categories of functions.
3. Describe actual argument and formal argument with example.
4. Differentiate call by value (pass by value) and call by reference (pass by reference) with
example.
5. Describe recursive function.
6. What are scope, lifetime and visibility of variable?

Assignment-4: STRUCTURE AND UNION [CO4]

1. Illustrate astructure with example.


2. How do we declare and access structure variables?
3. Define a Union.
4. Differentiate Structure and Array.
5. Differentiate Structure and Union.
6. Describe nested structure with example.
7. Explain Array of Structure with Example?
8. Explain Pointers to Structure with example.
9. What is Typedef?
10. Describe Enumeration with example.

Assignment-5: FILES [CO5]

1. What is File management?


2. Describe File opening mode.
3. Create a C program to display file on screen.
4. Create a C program to copy a file.
5. Describe file handing functions with example.

You might also like