Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

K. K.

WAGH POLYTECHNIC, NASHIK – 3


Department of Information Technology & Computer Technology
MSBTE Class Test-II, March - 2008
Semester :- Second Master : ‘C’ Course :- IF / CM
Subject :- Programming in ‘C’ Subject Code :- 9017
Duration :- 1 Hour Max. Marks :- 20
= = = = = = = = = = = = =
Instructions to candidate:-
1) All questions are compulsory.
2) Illustrate your answers with neat sketches/flowcharts wherever necessary.
3) Use of Non-programmable Electronics Calculator is permissible.
4) Figures to the right indicate full marks of respective questions.
5) Assume suitable additional data, if necessary.
Q.1 Attempt any Two. (2 × 2) 04
a) Explain recursion with example (Explanation: 01Mark, Example: 01Mark).
b) Define:
i. Function prototype (01Mark).
ii. Scope and Visibility of variables (01Mark).
c) Declare a structure to store the data of 60 students of FYIF, which will
contain information like name, age and marks (Creation: 01M, Declaration: 01M)

Q.2 Attempt any Two. (4 × 2) 08


a) Write a program to find length of a string by using pointers.
b) Write a program to find largest number from given array.
(Correct programs: 04 Marks).
c) Distinguish between call by value and call by reference with appropriate
example. (02 Points: 02 Marks, Example: 02 Marks).

Q.3 Attempt any Two. (4 × 2) 08


a) What is the use of strcmp ( ), strlen ( ), strcat ( ), strcpy ( ) function?
(01 Mark each).
b) Write a program to find subtraction of two 3 X 4 matrices. Take input from user.
(Correct program: 04 Marks).
c) Explain the use of * and & operators related to pointer with appropriate example
(Explanation: 02 Marks, Example: 02 Marks).

CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)

You might also like