[go: up one dir, main page]

0% found this document useful (0 votes)
42 views4 pages

Paper Cs MSC

Uploaded by

Otis Milburn
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)
42 views4 pages

Paper Cs MSC

Uploaded by

Otis Milburn
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/ 4

Roll No. .......................................

(70) 8018
Printed Pages—4] 1M.Sc.(CS)3

Master of Science (CS) (First Semester)


Examination, Dec. 2018/Jan. 2019
PROGRAMMING WITH C

/Duration /Hours /Max. Marks

/Min. Pass Marks

Instructions :

1. The Question Paper is divided in five Units. Each unit carries an internal

choice.

2. Attempt one question from each Unit. Thus attempt five questions in all.

3. All questions carry equal marks.

4. Assume suitable data wherever necessary.

5. English version should be deemed to be correct in case of any anomaly in

translation.

6. Candidate should write his/her Roll Number at the prescribed space on the

question paper.

8018 1 P.T.O.
I (Unit I)

(a) ‘C’

Explain various data type available in ‘C’ language with examples.

(b) FOR, WHILE DO...WHILE

Differentiate between FOR, WHILE and DO...WHILE control structure.

(Or)

(a) ‘C’

Explain various operators available in ‘C’ with example.

(b) ‘C’ IF

Explain various types of IF statement in ‘C’ language with examples.

II (Unit II)

(a)

What is function ? What is its need ? Explain user defined and library

function with examples.

(b) ‘C’

Write a ‘C’ program to calculate factorial of a given number using function.

(Or)

(a)

Differentiate between Call by Value and Call by Reference.

8018 2
(b) ‘C’

What is Recursion ? Write a Recursive function program in ‘C’ to calculate

any power of any given number.

III (Unit III)

(a) (Array)

How will you use an Array as function arguments ? Explain by example.

(b) ‘C’

Write a ‘C’ program to search a given element in an array using linear

search method.

(Or)

(Array)

Write a program in ‘C’ for addition of two matrix of order 3 by 3.

(Unit IV)

‘C’

What is Pointer ? How is it declared ? Write a program in ‘C’ to add two

numbers using pointers.

8018 3 P.T.O.
(Or)

With reference to dynamic memory allocation explain the following

functions :

(i) malloc( )

(ii) calloc( )

(iii) realloc( )

(iv) Sizeof( )

(v) File( )

(Unit V)

(a) ‘C’

Explain with example the various file handling functions available in

‘C’ language.

(b) ‘C’

Write a ‘C’ program to create text file.

(Or)

(a)

What is File ? How is it opened and closed ?

(b) file ‘C’

Write a program in ‘C’ language to copy the contents of one file to

another.

8018 4

You might also like