Tuesday, June 21, 2011

IGNOU 1ST SEMESTER ASSIGNMENT

Course Code : MCS-011
Course Title : Problem Solving and Programming
Assignment Number : MCA(1)/011/Assign/2011
Assignment Marks : 100
Weightage : 25%
Last Date of Submission : 15th April, 2011 (for January session)
15th October, 2011 (for July session)

BCA MCA Bsc B tech CS information technology final year project



There are five questions in this assignment, which carries 80 marks. Rest 20 marks are for viva-voce. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation.

Question 1:

(a) Write a simple program to find the size of different basic data types in C. (5 Marks)

(b) Write a program in C for showing working of different logical operator in C.
Your program should guide users with proper message/menu on the console. (5 Marks)

(c) Write a function to find the area of a triangle whose length of three sides is given. (5 Marks)

Question 2:

(a) Write a C program to print the following triangle:

*
***
*****
*******
*********
************
(5 Marks)

(b) Write a C program to read the internal test marks of 25 students in a class and
show the number of students who have scored more than 50% in the test.
Make necessary assumptions. (5 Marks)


Question 3:

(a) What is calling by reference? How it is different from call by value?
Write a C function to swap two given numbers using call by
reference mechanism. (5 Marks)


(b) Write a C program for addition of two 3×3 matrices. (5 Marks)

(c) Write a C program for finding GCD of two given numbers. (5 Marks)



Question 4:

(a) Write C programme for followings:
i) Counting the number of words in a given string
ii) Concatenating two given strings
(2×5 =10 Marks)

(b) What is a pointer? Explain pointer arithmetic with example. Also explain use of malloc function in C programming with an example (10 Marks)


Question 5:

(a) Explain recursion. Also write a C program for Tower of Hanoi problem with
a example of 4 disks . (10 Marks)

(b) Write a C program using structure to find students grades in a class.
Make the necessary assumptions. (10 Marks)

No comments:

Post a Comment