IGNOU Solved Question Papers

MCS-011 : PROBLEM SOLVING AND PROGRAMMING 

Download Previous Solved Question Papers MCS-011( Solved Question Paper June, 2014 )

Q1

1 (a) Write an algorithm and draw corresponding flowchart to calculate the factorial of a given number. Also write a C program .

ANS:-  https://www.ignouassignmentguru.com/2016/10/Write-an-algorithm-and-draw-corresponding-flowchart-to-calculate-the-factorial-of-a-given-number-Also-write-a-C-program.html

1.(b) Using recursion, generate ‘n’ terms of  fibonacci series (n > 0)

ANS:- https://www.ignouassignmentguru.com/2016/11/using-recursion-generate-n-terms-of-fibonacci-series-n-0.html

1 (c) Using file handling, create a file, insert some characters and count them

ANS:- https://www.ignouassignmentguru.com/2016/11/using-file-handling-create-a-file-insert-some-characters-and-count-them.html

1 (d) using pointers concept reverse a given string.

ANS:- https://www.ignouassignmentguru.com/2016/11/using-pointers-concept-reverse-given.html

Q2

  1. (a) Write a program to find the string length without using strlen 0 function 

ANS:- https://www.ignouassignmentguru.com/2016/11/write-a-program-to-find-the-string-length-without-using-strlen-0-function.html

2 (b) Write a program using C to calculate the Net salary if the basic, TA, DA, allowances and deductions are given, using structures concept.

ANS:- https://www.ignouassignmentguru.com/2016/11/write-program-using-c-to-calculate-net.html

3Q

  1. (a) What is the use of continue statement ? Explain with an example.

ANS:- https://www.ignouassignmentguru.com/2016/11/what-is-the-use-of-continue-statement-explain-with-an-example.html

3(b) Explain any four string functions with example for each.

ANS:- https://www.ignouassignmentguru.com/2016/11/explain-any-four-string-functions-with-example-for-each.html

3(c) How will you write a function with no arguments and with return value ? Give an example.

ANS:- https://www.ignouassignmentguru.com/2016/11/how-will-you-write-a-function-with-no-arguments-and-with-return-value-give-an-example.html

Q4

4 (a) Write a program to swap two values, using cell-by-value method.

ANS:- https://www.ignouassignmentguru.com/2016/11/write-a-program-to-swap-two-values-using-cell-by-value-method.html

  4 (b) Write a program in C to multiply two matrices A and B.

ANS:- https://www.ignouassignmentguru.com/2016/11/write-a-program-in-c-to-multiply-two-matrices-a-and-b.html

Q5

(a) Write a macro to display the string COBOL in the following pattern.

C

CO

COB

COBO

COBOL

ANS:- https://www.ignouassignmentguru.com/2016/11/write-a-macro-to-display-the-string-cobol-in-the-following-pattern-c-co-cob-cobo-cobol.html

5.(b) Define a macro to find maximum among of 3 given numbers using # ifdef, # else.

ANS:- https://www.ignouassignmentguru.com/2016/11/define-a-macro-to-find-maximum-among-of-3-given-numbers-using-ifdef-else.html

LEAVE A REPLY

Please enter your comment!
Please enter your name here