Tuesday, 15 January 2013

BPUT previous year question paper Of PROGRAMMING IN C, 1st Semester 2011

Posted by Unknown  |  at  16:11 No comments






BPUT previous year question paper


BPUT.

  • Biju Patnaik University of Technology ,BPUT, Rourkela Is a well-known and famous university in India.

  • Biju Patnaik University of Technology , BPUT , Rourkela has been established by an Act of the Assembly, Government of Odisha in June 2002.

  • Engineering, Pharmacy, Architecture, M.Tech, Fashion designing and MCA and MBA degree etc. are the courses provided under this university.

  • You Can Download all previous year Semester question paper Of BPUT Here For Free.


BPUT previous year question paper

BPUT previous year question paper


Registration No.:

Total number of printed pages—4 B. Tech

BE 2105

First Semester Examination — 2011

PROGRAMMING IN C

Full Marks—70

Time: 3 Hours

Answer Question No. 1 which is compulsory and any five from the rest.

The figures ¡n the right-hand margin indicate marks.

Answer the following questions: 2x10

(a) Find the output of the following program:

Main ()

{

Char *p;

printf(’%d %d ,sizeof(*p),sizeot(p));

J

(b) What would be the output of the following program?

Main ()

(

int ¡=5;

printf(”’?4d%d%d%d%d”,i++,i — —,++i ,— —

) .

(c) Find the output of the following program:

#define int char

Main ()

(

int ¡=65;

printf(”sizeof( i)=%d”,sizeof(i));

)

(d) What value may be returned by the following function when it is called by

15?

recur (int num)

{ ¡f((num/2) !=O) return (recur(nuhlI2)*l Q ÷ num%2);

else return 1;)

(e) void Main ()

{ int i=1;

if(!i) printf(”lndiaBlX»);

else f ¡=0; printf(”C-Program”);

Main (); }

}

(f) What would be the output of the following program?

Main ()

{

inti=O;

for (;i÷+;printf(”%d”,i)) ;

printf(”%d” î);

)

(g) Find the output of the following:

void Main ()

{ ¡nl a[]=(1 ,2,3,4,5,6);

int *ptr = a+2; printf(c/od,*_ —ptr);

}

(h) What will be output if you will compile and execute the following c code?

void main()

int a=15,b=1O,c=5;

¡f(a>b>c)

pri ntf (“True”);

else

printf(”False”);

)

(i) Find the output of the following program:

void Main ()

I

static mt i=5;

if(— —i)

{

Main ();

printf(”%d”,i);

}

I

(j) Find the output of the following program:

void Main ()

{ ini x=1 O,y=20,p,q;

p=add(x,y);

q=add(x,y);

prinff(”%d %d”,p,q);)

add(inta,intb)

(

a÷=a;

returri(a);

return (b); }

2. (a) What are the storage classes? Discuss all storage class using example. 5

(b) Write an algorithm to find the sum of the digits of a given positive integer.

Write the corresponding C-program using recursion. 5

3. (a) Explain all the loop structures available in IC’. 5

(b) Write a program to compute sin series. Sin(x) =x—x3/3!+x5/5!—x77/7!+ x n/n!

4. (a) A palindrome is a string which reads the same forwards and backwards.

For example, MADAM. Write a C-program to check whether a given string is a palindrome or not. 5

(b) Write a C-program to count the number of vowels in a given string.

5. (a) What is a command line argument? Explain with an example. 5

(b) Write a program to store loo records in 1 structure with the help of arrays.

5

6. Write a C-program to create data for 50 students (roll, name, mark1, mark2,

mark3, term mark) using structure and then find the total marks for each student and average mark of all students. 10

7. (a) What are the uses of malloc ()and calloc () functions in C ? In which header file these two functions are defined? What is the full syntax of these functions? 5

(b) Give an example (in C code) of any one of the above functions to allocate memory for a 2 D integer matrix with ‘m’ rows and ‘n’ columns. 5

8. (a) Explain the call by value and call by reference with examples. 5

(b) What kind of file accesses is possible with C-programing[P1]  ? What are the different modes that a file in C can be handled?




BPUT previous year question paper Of PROGRAMMING IN C, 1st Semester 2011 Image Format.


BPUT previous year question paper

BPUT previous year question paper

BPUT previous year question paper

BPUT previous year question paper

BPUT previous year question paper Of PROGRAMMING IN C, 1st Semester 2011 PDF file.


Programming in C

 

First Like us on Facebook to get all the Question, Job, exam, Career related updates.

For more BPUT previous year question paper Visit http://www.careerodisha.in/

About the Author

Write admin description here..

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

© 2013 Career Odisha. WP Theme-junkie converted by BloggerTheme9
Blogger templates. Proudly Powered by Blogger.