This document is the question paper for a class test in Programming in C from K. K. Wagh Polytechnic in Nashik, India. It contains 3 questions with multiple parts each. Question 1 has parts on recursion with an example, function prototypes, and declaring a student data structure. Question 2 has parts on finding the length of a string using pointers, finding the largest number in an array, and explaining call by value vs call by reference with examples. Question 3 has parts on the uses of common string functions, subtracting two matrices taken from user input, and explaining the * and & operators related to pointers with an example.
This document is the question paper for a class test in Programming in C from K. K. Wagh Polytechnic in Nashik, India. It contains 3 questions with multiple parts each. Question 1 has parts on recursion with an example, function prototypes, and declaring a student data structure. Question 2 has parts on finding the length of a string using pointers, finding the largest number in an array, and explaining call by value vs call by reference with examples. Question 3 has parts on the uses of common string functions, subtracting two matrices taken from user input, and explaining the * and & operators related to pointers with an example.
This document is the question paper for a class test in Programming in C from K. K. Wagh Polytechnic in Nashik, India. It contains 3 questions with multiple parts each. Question 1 has parts on recursion with an example, function prototypes, and declaring a student data structure. Question 2 has parts on finding the length of a string using pointers, finding the largest number in an array, and explaining call by value vs call by reference with examples. Question 3 has parts on the uses of common string functions, subtracting two matrices taken from user input, and explaining the * and & operators related to pointers with an example.
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)