K. K. Wagh Polytechnic, Nashik –3 Department of Information Technology Academic Year: 2006 – 2007
Date: 16th March 2007
Subject: Programming in C (CPR – 9017)
Class : FYIF
Questions for PST 1. Determine the largest of three numbers entered through keyboard without using logical operators. 2. Enter marks of five subjects. Find the grade (A, B, C) according to the average of marks obtained. 3. Write a menu driven program for the following options. a. Find whether the number is odd or even. b. Find whether it is negative or positive. c. Exit. 4. Program to find first ten fibonacci numbers. e.g. 1 1 2 3 5 8 13…. 5. Sort the elements of the array in ascending order by taking user input 6. Calculate sum of all elements fron the array by taking user input. 7. Read two 3 X 3 matrices and print their addition. 8. Read two strings from user. Compare them for equality. Copy first string in other and print lenth of all strings. 9. Write function for exchanging values of two variables. 10. Write a function to find product of two numbers.
Mr. Kute T. B. (Subject teacher).
Mr. Katkade G.B. (Head of Department)
CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)