0% found this document useful (0 votes)
62 views3 pages

MC0061

This document contains assignments for a Master of Computer Application semester 1 computer programming course in C language across two books. It includes 8 questions from Book 1 on topics like block structure of C programs, arrays, pointers, structures, and file I/O functions and 8 questions from Book 2 on goto and if-else statements, matrices, recursion, variables, file operations, self-referential structures, unions, and circular queues. Students are required to write programs to demonstrate concepts and solve problems within each topic area.

Uploaded by

vap16oct1984
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views3 pages

MC0061

This document contains assignments for a Master of Computer Application semester 1 computer programming course in C language across two books. It includes 8 questions from Book 1 on topics like block structure of C programs, arrays, pointers, structures, and file I/O functions and 8 questions from Book 2 on goto and if-else statements, matrices, recursion, variables, file operations, self-referential structures, unions, and circular queues. Students are required to write programs to demonstrate concepts and solve problems within each topic area.

Uploaded by

vap16oct1984
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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