Sie sind auf Seite 1von 3

February 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. With the help of a suitable example, explain the basic structure of a C program.
2. Write a program in C to find largest of three numbers using the conditional operator.
3. With the help of suitable examples, explain type conversions using various data
types.
4. Using input and output functions in C, write a program to accept a string of
characters
5. Explain the following giving suitable examples for each:
Mixed-mode Expressions
The type cast Operator
The type char

Book ID: B0679


6. Write a program in C to explain pointer arithmetic.

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)

Answer all questions Each question carries FIVE Marks

Book ID: B0678


1. Explain the following looping structures with suitable code examples:
 While Loop
 Do…While loop
 Simple For loop

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.

Das könnte Ihnen auch gefallen