08.03.2015 Views

Paper - COMPUTERSCIENCE 1MCA2 : computer ... - Surana college

Paper - COMPUTERSCIENCE 1MCA2 : computer ... - Surana college

Paper - COMPUTERSCIENCE 1MCA2 : computer ... - Surana college

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I llllllllilil ilil llilililtfl lllt PG - 481<br />

I Semester M.C,A. Degree Examination, FebruarylNlarch 2011<br />

(Y2K5 Scheme)<br />

<strong>COMPUTERSCIENCE</strong><br />

<strong>1MCA2</strong> : <strong>computer</strong> Programming and Problem solving<br />

Time : 3 Hours<br />

Max. Marks : g0<br />

Instruction : Answer any ftve questions choosircg atleast two from each<br />

Part.<br />

PART _ A<br />

1. a) Explain the salient features of C-language. 8<br />

b) Explain the general structure of a c-program with an example. I<br />

2. a) Discuss formatted and unformatted I/O functions supported by C-language<br />

with suitable examples.<br />

b) Give an account of type conversion in C with suitable illustrative program. I<br />

I<br />

3. a) Explain decision making and branching statements in C with their general<br />

syntax.<br />

b) Write a C-program to find out the largest and the second largest of three<br />

numbers.<br />

4. a) Develop an algorithm to find the sum of the digits a number till the sum<br />

reduces to a single digit.<br />

b) What is a flowchart ? Discuss the symbol used. Draw a flowchart to find the<br />

sum of the first n natural numbers.<br />

I<br />

I<br />

I<br />

I<br />

PART _ B<br />

5. a) What is a function ? List the advantages offered by functions.<br />

b) Write a C-program to find the sum of the digits of an integer using a recursive<br />

function.<br />

P.T.O.


PG - 481<br />

I il|ililtilil lilrllilllllrilr illl<br />

6. a) Explain the need for arrays. Write a C-program to search for a value in a list<br />

of values.<br />

I<br />

b) Explain the procedure of sorting atable of,values.rswwise implement it in C. 8<br />

7 , t) Explain'the concept of array of sf+retr*res- Give"an example pregram to<br />

illusffateit. 8<br />

b) Justify that array of pointers to strings optimizes memory space usage.Write<br />

a C-program to sort a list of strings using array of pointers to strings. 8<br />

8. Write short notes on : (4x4=16)<br />

a) Bitwise operators<br />

b) Storage classes<br />

c) Command line arguments<br />

, d) TextfileV/sbinaryfile.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!