0% found this document useful (0 votes)
11 views3 pages

June - 2019 MCS-011

The document is an examination paper for the MCA/BCA program focusing on Problem Solving and Programming, with a maximum score of 100. It includes various programming tasks such as writing algorithms, flowcharts, and C programs for different operations, including arithmetic, matrix multiplication, and file handling. Students are required to answer a compulsory question and any three additional questions from the provided options.

Uploaded by

iamshovanhalder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

June - 2019 MCS-011

The document is an examination paper for the MCA/BCA program focusing on Problem Solving and Programming, with a maximum score of 100. It includes various programming tasks such as writing algorithms, flowcharts, and C programs for different operations, including arithmetic, matrix multiplication, and file handling. Students are required to answer a compulsory question and any three additional questions from the provided options.

Uploaded by

iamshovanhalder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

70582

m
No. of Printed Pages : 3 mcs-on

.co
MCA (Revised)/BCA (Revised)
(MCA/BCA)
Term-End Examination

u
June, 2019

ur
MC9-011 : PROBLEM SOLVING AND
PROGRAMMING

tG
Time : 3 Hours
en Maximum Marks : 100
(Weightage : 75%)
Note : Question No. 1
is compulsory. Answer any
three questions from the rest.
m

1. (a) Write an algorithm to find largest and


ign

smallest number among' three numbers


given as input. Also draw flowchart for this
algorithm. 10
(b) Explain the use of break and
ss

continue
statements with the help of a program. 10
(c) Write a program to generate the following
A

pattern : 10
1
OU

1 2
1 2 3
N

1 2 3 4
1 2 3 4 5
IG

(A.4) P. T. 0.

1
[2] MCS-011

(d) Write a menu-driven program using switch

m
statement to perform the following
arithmetic operations on two variables : 10

.co
(i) Add
(ii) Subtract

u
(iii) Multiplication

ur
(iv) Division

2. (a) Write a C program using array of pointers

tG
to strings to read name of your five friends
and display them. 10
en
(b) Write a C program to calculate simple
interest. If principal amount, rate of
m
interest and duration are given as input.10

(Note : SI = P xR x T
ign

100

3. (a) Write a C program to create two matrices


A and B of size 3 x 3 and find
ss

A x B. 10
(b) Explain the following with the help of an
A

example for each : 10


OU

(i) Static variable


(ii) Global variable
N

(iii) Register variable


(iv) Local variable
IG

(A-4)
[ 3 ]

4. (a) Write a C program to create a macro to

om
evaluate : 5
f(x)=3x 3 +2x2 +x
(b) Write a C program which display the

u.c
number of lines in a given file. 10
(c) Define recursion. With the help of a small
C program segment and explain it. 5

ur
5. (a) Explain the use of the following file

tG
functions : 4 x 2 12 = 10
(i) fseek())
en
(ii) rewind())
fte110
m
(iv) fwrite( )
(b) Write a program to check whether a given
ign

string is a palindrone or not. 10


ss
UA
NO

MCS-011 1 0 , 000
IG

(A-4)

You might also like