IGNOU MCS-011 Previous Years Questions
IGNOU MCS-011 Previous Years Questions
IGNOU MCS-011 Previous Years Questions
Term-End Examination
December, 2011
0-•
O
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
MCS - 011 1 P.T.O.
MCS-011 2
(c) Explain the syntax of do-while statement.
Also differentiate do-while from while
statement.
MCS-011 3
No. of Printed Pages : 3
MCA (Revised)
N Term-End Examination
C
December, 2012
MCS-011 1 P.T.O.
2. (a) Explain null pointer assignment. Also give 4
an example of use of null pointer.
(b) Write a macro for the following : 2x3=6
(i) to find square of a given number.
(ii) to find smallest of 3 given number.
(c) Write a program in 'C' to enter two 4 x 4 10
matrices and to display the product of these
matrices. Explain and give suitable
documentation.
MCS-011 2
(c) Differentiate between a structure and a 8
union. Write a structure for a student and
write a 'C' program to display the marks of
the student for five subjects and also
calculate the percentage of marks obtained.
MCS-011 3
No. of Printed Pages : 3 MCS-011
MCA (Revised)
Term-End Examination
December, 2013
-710
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
MCS-011 1 P.T.O.
Explain the concept of Top Down Design 4
Technique.
Give the C expression for following algebraic 6
expression
(a +b)\ 4 c2 —dxe
(i)
m+n
(ii) ab + (e —
)
MCS-011 2
(b) Write a macro to the display string INDIA 6
in following pattern :
I
IN
IND
INDI
INDIA
INDI
IND
IN
I
(c) What is a string ? Write a function in C to 10
find a string length without using strlen( ).
4. (a) What are array of pointers ? How they are 10
declared and initialised ? Using pointers
write a program to read and display list of
names of students.
(b) What is the purpose of using header files in 10
C. Explain functions that are used in C for
reading and writing of characters. Also,
explain string input and output function in
C.
5. (a) Explain shift operators with examples. 4
(b) Explain Random and Sequential Access 4
Files.
(c) Explain the use of following functions
in C : 6x2=12
(i) malloc( ) (ii) fopen( )
(iii) fgets( ) (iv) strcat( )
(v) fputc( ) (vi) fclose( )
MCS-011 3
No. of Printed Pages : 2 MCS-011
MCS-011 1 P.T.O.
2. (a) Write a program that initialises 3 names in
an array of strings and displays them. 5
(b) What is call by value ? Give example. 5
(c) Explain recursion program with a suitable
example. 10
MCS-011 2 14,000
No. of Printed Pages : 3
1 X5 4
I mc s-c• 11
MCA (Revised) / BCA (Revised)
Term-End Examination
December, 2015
MCS-01 1 1 P.T.O.
(d) Explain the use of the following data types
with an example for each : 10
(i) enumerated data type
(ii) type def
MCS-011 2
4. (a) Write a program in 'C' to display the
following output : 10
1
2 2 2
3 3 3 3 3
4 4 4 4 4 4 4
3 3 3 3 3
2 2 2
1
MCS-01 1 3 1 9,000
No. of Printed Pages : 2 mcs- on
MCA (Revised) / BCA (Revised)
Term-End Examination
December, 2016
MCS-011 2 15,000
No. of Printed Pages : 3 mc s o n(s) I
-
MCS-011(S) 3 500
No. of Printed Pages : 2
M C S-01 1 2 12,000
No. of Printed Pages : 3 MCS-011
MCS-011 2
5. (a) Using structures, write a C program to
calculate the Gross salary and Net salary,
if Basic pay, Grade pay, TA and DA and
other allowances and deductions are given
as inputs. 10
MCS-011 3 13,000
No. of Printed Pages : 3 mcS-on I
MCA (Revised)
O Term-End Examination
O June, 2010
O
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
MCS-011 1 P.T.O.
MCS-011 2
Write a macro to demonstrate : 6
#define, #if, #else
preprocessor commands.
Write a program in 'C' to find 6
12 +32+ 52+ 72 +92+ +N2
MCA (Revised)
O Term-End Examination
O June, 2010
O
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
MCS-011 1 P.T.O.
MCS-011 2
Write a macro to demonstrate : 6
#define, #if, #else
preprocessor commands.
Write a program in 'C' to find 6
12 +32+ 52+ 72 +92+ +N2
MCA (Revised)
Term-End Examination
June, 2011
sum = 0;
for(i=1; i <10; i++)
sum + = i;
Write an equivalent program segment using
(i) do - while
(ii) while
MCS-011 1 P.T.O.
(d) What is a syntax - error ? Give an example
of syntax error in a C - program.
MCS-011 2
4. (a) What is a file in C programming ? Explain 10
the use of fopen function in file handling.
Explain different mode in which a file can
be opened.
(b) What is a pointer ? Write a C program 10
using pointer to print the name and price
of the items sold in a retail shop on a specific
date.
MCS-011 3
No. of Printed Pages : 3 MCS-011
MCA (Revised)
Term-End Examination
June, 2011
sum = 0;
for(i=1; i <10; i++)
sum + = i;
Write an equivalent program segment using
(i) do - while
(ii) while
MCS-011 1 P.T.O.
(d) What is a syntax - error ? Give an example
of syntax error in a C - program.
MCS-011 2
4. (a) What is a file in C programming ? Explain 10
the use of fopen function in file handling.
Explain different mode in which a file can
be opened.
(b) What is a pointer ? Write a C program 10
using pointer to print the name and price
of the items sold in a retail shop on a specific
date.
MCS-011 3
No. of Printed Pages : 3 MCS-011
MCA (Revised)
Term-End Examination
June, 2012
fl
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
MCS-011 1 P.T.O.
(d) Differentiate between : 21/2x2=5
(i) Function and sub routine
(ii) Structure and Union with examples
of each.
(e) Give the precedence chart for the operator
in 'C'.
(a) Differentiate between an execution error 4
and a syntax error. Give examples of
execution and syntax errors.
(b) Write and explain the action of 'WHILE' 8
statement. Develop a program to compute
the average of every 3rd integer lying
between 1 and 100.
(c) Write a program in 'C' to copy the contents 8
of one file to another file.
3. (a) Write a program in 'C' to compute the 5
series :
(x) + (x + n) + (x + n2) + (x + n3) +
MCS-011 2
(d) What is a pointer to an array? Differentiate 8
it from an array of pointers. Write a
program using pointer to array to calculate
the sum of n given numbers.
MCS-011 3
No. of Printed Pages : 3 MCS-011
MCA (Revised)
Term-End Examination
June, 2013
(i) Double
MCS-011 1 P.T.O.
(e) Write a program segment to generate the ' 6
following pattern using "for" and
"while loop"
*
**
***
****
ab4c2 — d
(i) m—n
MCS-011 2
3. (a) Write a program to find out square and cube 6
of given number using macros.
(b) What is # define preprocessor in C. How it 4
is implemented and used in C ?
(c) What is a string ? Write a function in C to 10
convert lower case letters to upper case
letters in a given string without using
strupp ?
MCS-011 3
No. of Printed Pages : 2 MCS-011
MCS-011 1 P.T.O.
3. (a) What is the use of continue statement ? 5
Explain with an example.
(b) Explain any four string functions with 10
example for each.
(c) How will you write a function with no 5
arguments and with return value ? Give an
example.
MCS-011 2
No. of Printed Pages : 4 I MCS-011
MCA (Revised) I BCA (Revised)
Term-End Examination
June, 2015
02493
mcs-011: PROBLEM SOLVING AND
PROGRAMMING
MC S-011 P.T.O.
(e) List and explain the precedence of
Arithmetic, Logical and Relational
operators in 'C'. 10
MCS-011 2
(b) Write a program in 'C' to print the
following output 'n' rows. For example, if
n = 3, the following should be output by the
program : 10
1
1 2 1
1 2 3 2 1
1 2 1
1
MCS-011 3 P.T.O.
(b) Write a recursive program in 'C' to check
whether a given string is a palindrome or
not. 10
MCS-011 4 12,000
No. of Printed Pages : 3 mcs-0 111
U
UN
UNI
UNIX
UNIX
UNI
UN
U
MCS-011 2
. (a) Write a program to swap two values of
variables, using pointers. 10
(b) Write a program, using structures to read
and display data for 10 students. 10
Hint : Assumptions can be made wherever
necessary.
MCS-011 3 12,000
No. of Printed Pages : 3 I MCS-011 I
MCA (Revised) / BCA (Revised)
Term-End Examination
1 1 C120 June, 2017
MCS-01 1 10,000
No. of Printed Pages : 4 Imcs-0111
MCS-011 P.T.O.
(c) Write a macro to display string "Cobol" in
the following pattern : 10
C
C
C0B
COBOL
C0BOL
COBOL
C 0 B Of
C 0B
CO
C
(d) Write a program to copy the file contents of
filel to another file, filet. Write the
complete program using files concept of
C programming. 10
MCS-011 2
3. (a) Explain GOTO, BREAK and CONTINUE
statements with an example for each. 10
MCS-011 4 14,000