You are on page 1of 3

August 2010

Master of Computer Application (MCA) – Semester 1


MC0061 – Computer Programming “C Language” – 4 Credits
(Book ID: B0678 & B0679)
Assignment Set – 1 (40 Marks)

Answer all questions Each question carries FIVE Marks

Book ID: B0678


1. Describe the features of a C program along with its block structure.
2. Write a program in C to add first 10 odd numbers starting from 1.
3. Explain the importance of operator precedence with a programming example.
4. Using input and output functions in C, write a program to accept a string of
characters
5. Write a C program to demonstrate the usage of gets() and puts() function.

Book ID: B0679


6. Write a program in C to demonstrate the concept of using pointers on two –
dimensional arrays.

7. Write a program to demonstrate the concept of arrays of structures.

8. Write a program to accept 10 integers and print it in reverse order using linked lists.
August 2010
Master of Computer Application (MCA) – Semester 1
MC0061 – Computer Programming “C Language” – 4 Credits
(Book ID: B0678 & B0679)
Assignment Set – 2 (40 Marks)

Answer all questions Each question carries FIVE Marks

Book ID: B0678


1. Explain the following by writing example programs demonstrating their usage:
 goto statement
 if…else statement

2. Write a program to print a set of 9 integers in a matrix format using nested for loops.
3. A 5-digit positive integer is entered through the keyboard, write a function to
calculate sum of digits of the 5-digit number:
(a) Without using recursion
(b) Using recursion
4. Write a program in C to perform matrix multiplications on integers.
5. Describe the following concepts with the help of suitable code snippets:
a. Global Variables
b. Static Variables
c. External Variables

Book ID: B0679


6. Explain with suitable code examples, various possible file operations in C language.
7. Describe the following:
Self Referential structures
Unions
8. Describe with the help of suitable coding example, the implementation of circular
queues.

You might also like