Beruflich Dokumente
Kultur Dokumente
7. Write a program to print the details of MCA program with the entities program name,
number of semesters, subjects in each semester, number of credits per subject using
structures and print the required output.
8. Write a program to accept 10 integers and print it in reverse order using linked lists.
February 2010
Master of Computer Application (MCA) – Semester 1
MC0061 – Computer Programming “C Language” – 4 Credits
(Book ID: B0678 & B0679)
Assignment Set – 2 (40 Marks)
2. Write a program that allows the user to enter a set of integers and print their sum
and products using break and continue statements.
3. With the help of a recursive function, write a program to fin the factorial of a number
between 1 and 1000.
4. Write a program in C to perform arithmetic functions using a menu driven interface
like 1. ADDITION, 2. SUBTRACTION, …, 5. EXIT based on the user input.
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 with respect to Preprocessor:
File inclusion
Macro definition and Substitution
Conditional Compilation
8. Describe with the help of suitable coding example, the implementation of circular
queues.