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

mcs-011 June22

This document is the exam for the course MCS-011 Problem Solving and Programming. It contains 5 questions testing various programming concepts in C. Question 1 has 4 parts testing (a) algorithms and flowcharts to calculate factorials, (b) using loops to print a pattern, (c) generating Fibonacci series using recursion, and (d) illustrating enumerated data types, macros, typedef, and goto statements. Questions 2-4 contain parts testing concepts like prime number determination, matrix operations, minimum values, string lengths, functions, and call by reference. Question 5 has parts on break, goto, continue, and file handling with a note on ternary operators. The exam tests a wide range of fundamental C

Uploaded by

kk2760057
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)
51 views3 pages

mcs-011 June22

This document is the exam for the course MCS-011 Problem Solving and Programming. It contains 5 questions testing various programming concepts in C. Question 1 has 4 parts testing (a) algorithms and flowcharts to calculate factorials, (b) using loops to print a pattern, (c) generating Fibonacci series using recursion, and (d) illustrating enumerated data types, macros, typedef, and goto statements. Questions 2-4 contain parts testing concepts like prime number determination, matrix operations, minimum values, string lengths, functions, and call by reference. Question 5 has parts on break, goto, continue, and file handling with a note on ternary operators. The exam tests a wide range of fundamental C

Uploaded by

kk2760057
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

No.

of Printed Pages : 3 MCS-011

MCA (Revised) / BCA (Revised)


Term-End Examination
June, 2022

MCS-011 : PROBLEM SOLVING


AND PROGRAMMING

Time : 3 hours Maximum Marks : 100


(Weightage : 75%)

Note : Question no. 1 is compulsory. Answer any


three questions from the rest.

1. (a) Draw a flowchart and write an algorithm to


calculate the factorial of a given number. 10
(b) Write a program to display string
‘INFINITY’ in the following pattern (using
‘‘LOOP’’ control statement) : 10
I
IN
INF
INFI
INFIN
INFINI
INFINIT
INFINITY
MCS-011 1 P.T.O.
(c) Write a program to generate Fibonacci
series using recursion. 10

(d) Write an interactive C program for each to


illustrate the following concepts : 10

(i) Enumerated data type

(ii) Macros in C

(iii) Typedef

(iv) Goto statement

2. (a) Write an algorithm and draw the


corresponding flowchart to calculate
whether the given number is prime or not. 10

(b) Write a C program to perform the following


operation on matrices :

D = (A*B) + C

where A, B and C are matrices of 3  3 size


and D is the resultant matrix. 10

3. (a) Write a program to find the minimum


marks among the given marks of
20 students. 10

(b) Write a program to find the string length


without using strlen( ) function. 10

MCS-011 2
4. (a) Define function. How are functions
declared in C language ? What are function
prototypes and what is the use of return
statements ? 10

(b) Explain the function ‘‘call by reference’’ in


C language. Give advantages and
disadvantages of it. 10

5. (a) Explain the following statements with the


help of an example for each : 10

(i) Break

(ii) Goto

(iii) Continue

(b) Using File Handling Concept, write a


program to copy one file to another. 5

(c) Write a short note on Ternary Operator


with an illustration. 5

MCS-011 3 P.T.O.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy