How To Exam?

a knowledge trading engine...


Punjab Technical University 2006 M.C.A PROGRAMMING IN C - Question Paper

Tuesday, 16 April 2013 02:00Web

M.C.A. DEGREE exam - PROGRAMMING IN C - ques. Paper


Paper III - PROGRAMMING IN C


Time: 3 hours Maximum: 100 marks


PART A ans ALL ques.. (8 x five =40 marks)


1. (a) When should parantheses be included within an expression? In what order the operations are
carried out within an expression that contains nested parantheses?
Or
(b) discuss about the following:
(i) Break
(ii) continue on


2. (a) How can the getchar and put character function be used to learn and write multicharacter
strings?
Or
(b) What is the purpose of the goto statement? Summarize the syntactic rules associated with
the goto statement.


3. (a) What is the relationship ranging from formal arguments and true arguments? How they can be
declared within a function?
Or
(b) In what way is the initialization of an external variable more restricted than the
I initialization of an automatic variable? discuss.


4. (a) What advantage is there in using function. prototypes within a program?
Or
(b) What is the purpose of the following:
(i) Header file
(ii) Static function in a multifile program.


5. (a) How is an array name interpreted? When it is passed to a function? discuss with example.
Or
(b) How a multidimensional array described in terms of a pointer? discuss.

6. (a) discuss the processing of an array with suitable example.
Or
(b) Write the short notes on pointers and ine dimensional arrays.


7. (a) How can an entire structure be passed to a function and returned from a function? explain
in detailed manner.
Or
(b) In what sense can unions, structures and arrays be intermoved? discuss.


8. (a) Write short notes on
(i) fopen, fclose
(ii) fread, :fwrite.
Or
explain about the purpose of library function feof?


PART B ans ALL ques.. (5 x 12 =60 marks)


9. (a) Briefly discuss about the different kinds of operators involved in formation of expressions?
Or
(b) discuss in detail about the subsequent.
(i) If else statement
(ii) Switch statement ..
(iii) continue on statement
(iv) Break statement.


10. (a) Write a complete C program to create an array of names and inserted in alphabetical order,
interactively.
Or
(b) Write a C program that includes a recursive function to determine the value of the nth
Fibonacci . number Fn.


11. (a) Write a C program that will enter a line of text, store it in an array and then write it out
backwards. presume that the length of the line will not exceed 80 characters.
Or
(b) discuss in detail about arrays of pointers and use it for finding product of 2 into arrays.


12. (a) Write a C program that reads several various names and addresses, rearrange the names
into alphabetical order, and then writes out the alphabetlized list. Make use of structure
variables within the program.
Or
(b) define the term union. How does a union differ from structure? discuss.



13. (a) define the term standard data files and storage classes. discuss w~th a suitable C
program.
Or
. (b) Briefly discuss about the following:
(i) Creating a stream-oriented data file.
(ii) Processing a stream-oriented data file.


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjab Technical University 2006 M.C.A PROGRAMMING IN C - Question Paper