Skip to main content

IGNOU MCA 2012 Assignments :- MCS-011

Course Code                          :           MCS-011
Course Title                           :           Problem Solving and Programming
Assignment Number             :           MCA(1)/011/Assign/2012
Assignment Marks                :           100
Weightage                              :           25%
Last Date of Submission       :           15th April, 2012 (for January session)
                                               
 
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.               

(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.     

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

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

*
***
*****
*******
*********
************



(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.                                                                  


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.                                                                              


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

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



Question 4:    

(a) Write C programme for followings:
            i)  Counting the number of words in a given string
            ii) Concatenating two given strings


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


Question 5:

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

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

Comments

Popular posts from this blog

IGNOU Syllabus for interview/test for admission to PhD programme in Computer Science

COMPUTER SCIENCE AND APPLICATION (Syllabus for interview/test for admission to PhD programme in Computer Science) Computer Architecture: representation of numbers; Octal, Hexadecimal, and Binary 2’s complement and 1’s complement arithmetic, Floating point representation. Combinational Circuit Design, Sequential Circuit Design, Hardware and Microprogrammed processor design, Instruction formats, Addressing modes, Memory types and organisation, interfacing peripheral devices, Interrupts. Data Structures & Algorithms: Arrays, stacks, queues, lists, linked, trees, graphs priority queues, heaps, Binary tree, AVL tree, B-tree and Hash tables. Graphs : connected graphs, regular and bipartite graphs, cycles and circuits. Tree and rooted tree. Spanning tree of a graph, Eccentricity of a vertex, radius and diameter of a graph. Hamiltonian, Eulerian graphs and Planar graphs. Sorting and Searching Algorithms, Binary Search, Analysis of Algorithms, Asymptotic notation...