How To Exam?

a knowledge trading engine...


Cochin University of Science and Techology (CUST) 2011-2nd Sem B.Tech Computer Science and Engineering B tech I & ester(combined) 108 Computer Programming - Question Paper

Sunday, 26 May 2013 08:30Web


B tech Degree I & II semester(combined) exam June 2011 108 Computer Programming

BTS(C) - I & II- 11 -032 - B

B. Tech Degree I &II Semester (Combined)Examination June 2011

IT/CS/EC/CE/ME/SE/EB/EI/EE/FT 108 COMPUTER PROGRAMMING

(2006 Scheme)

Time;3 Hours    Maximum Marks: 100

PART A (Answer ALL questions)

(8x5=40)

I. (a) Write short note on statements i) BREAK ii) CONTINUE

(b)    What is meant by enumerated data types? Write its applications also.

(c)    Write a note on Storage classes.

(d)    Describe the tem 'Recursion*. Write its advantages also.

(e)    Compare the structures and unions.

(0 Describe the concept behind the binary search algorithm.

(g)    Write a note on preprocessor directive.

(h)    How can give command line arguments in a C program? Explain with the help of an example.

PART B

(4x15 = 60)

II.    (a) Describe the various operators available in C language. Also explain its operator

precedence and associativity.    (8)

(b) Explain the usage of multiple branching statement in C language with the help of example. (7)

OR

III.    (a) Write a note on: (i) Type conversion (ii) Formatted I/O    (8) (b) Write a C language program to find the ratio between boys and girls in a class. (7)

IV.    Write a function in C language to exchange the values of two variables. Also the function should print number of times already this function is called. How will you

invoke this function from main program?    (15)

OR

V.    (a) What is meant by life time of variables?    (5)

(b)    Describe various methods of parameter passing in functions.    (5)

(c)    Write a note on function prototyping.    (5)

VI.    Write a C language program to sort a list of names. Also define a function to count

the number of vowels in that set of names.    (15)

OR

VII.    Write a C program to read and store the register number, name, total mark and percentage mark of a set of students using structure Define a union to accept any one of the information and display the list of students which match with given information.    (15)

VIII (a) What are the advantages of using pointers? Write the statements for declaring 1-D and 2-D

arrays using pointers?    (10)

(b) Write a note on Pointer Arithmetic.    (5)

OR

IX. (a) Write a function in C language to exchange any two rows in a two dimensional array    (8)

Also write the statement for invoking the function in main program.

(b) With the help of an example, describe how can pass functions to other functions as

arguments.    (7)











Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Cochin University of Science and Techology (CUST) 2011-2nd Sem B.Tech Computer Science and Engineering B tech I & ester(combined) 108 Computer Programming - Question Paper