Btech 1st Year Be2105 Programming in C 2017 PDF
Btech 1st Year Be2105 Programming in C 2017 PDF
com
109 109 109 109 109 109 109 109
Registration no:
Max Marks: 70
Q.CODE: Y723
Answer Question No.1 which is compulsory and any five from the rest.
The figures in the right hand margin indicate marks.
109
Q1109 Answer109 the following questions:
109 109 109 109
(2 x 10) 109
return 0;
}
int fun(int i)
{
return (i++);
}
109 109 109 109 109 109 109 109
1 Page
http://www.bputonline.com http://www.bputonline.com
Q2 a) Why “switch” Statement is used? Design a Menu based program for (5)
addition, subtraction, multiplication and division of two complex
numbers.
109 109 109 109 109 109 109 109
b) Write a ‘C’ Program to print all Prime integers in between a given (5)
range. The Upper Limit and Lower Limit for that range are to be given
by the user through keyboard.
Q4 a) Write a program to find the Least Common Multiple and Highest (5)
Common Factor of two numbers. Use separate function for LCM and
HCF calculations.
b) Write a ‘C’ Program that takes a string as single parameter and returns (5)
the integer ‘1’ if the string is “Palindrome”, otherwise ‘0’ should be
109 109
returned.109 109 109 109 109 109
109
Q6109 a) Write a 109
Program using 109
Structure to enter
109
the Name, Roll
109
No. and Six 109 (5) 109
Subjects marks for each student. Find the total and average marks of
each student and also the average marks in each subject in a class of
30 students.
b) Differentiate between “Function to Pointer” and “Pointer to Function”. (5)
Explain each concept with suitable example.
109 109 109 109 109 109 109 109
Q7 a) Write a Program in ‘C’ to create two text files. Provide user defined (5)
function that accepts the names of the above two files as arguments
and return ‘1’,if the number of characters are same in both files or else
it will return ‘0’ .
b) Write a Program for the addition of two integers using Command Line (5)
Argument.
109 109 109 109 109 109 109 109
http://www.bputonline.com http://www.bputonline.com