How To Exam?

a knowledge trading engine...


Mahatma Gandhi University (MGU) 2006 M.C.A Computer Aplications PROBLEM SOLVING AND COMPUTER PROGRAMMING IN “C” - Question Paper

Saturday, 18 May 2013 11:55Web

M.C.A (AFFILIATED COLLEGES) DEGREE EXAMINATION, FEBRUARY 2006
First Semester
issue SOLVING AND COMPUTER PROGRAMMING IN “C”

Time: 3 Hours Maximum :75 Marks
ans any 5 ques..
All ques. carry equal marks.

1. (a) Why should programs be readable? How should variable names be
chosen to improve readability? (5 marks)
(b) Explain the various levels of programming languages with advantages and disadvantages of every. (5 marks)
(c) Define the term algorithm. provide a suitable example. (5 marks)

2. (a) Explain the importance of flowcharts in program development. (5 marks)
(b) What are subscripted variables in C? Mention their usage. (4 marks)
(c) What do you understand by control flow structure? (4 marks)
(d) Explain the need of implicit kind conversion. (2 marks)

3. (a) Illustrate with an improper example, the use of the XOR operator “ ^”.(4 marks)
(b) Explain different storage classes in C and its suitability with improper examples. (4 marks)
(c) Describe different escape sequences which can be used in the printf() library function. (7 marks)

4. (a) Compare and contrast the subsequent :-
(i) Pass by value and pass by reference (2 marks)
(ii) Local variables and global variables (2 marks)
(iii) Static variables and register variables (2 marks)
(b) Mention the role of parenthesis in C programs. provide illustrations. (5 marks)
(c) Compare the while loop with the do..while loop quoting examples (4 marks)


5. (a) How would you declare a structure in C? provide examples. (5 marks)
(b) Describe the features of C programming language (5 marks)
(c ) Describe the goto statement in C language with an example (5 marks)

6. (a) What a C program to print the prime numbers in the Fibonacci series.(7 marks)
(b) What is a recursive function? How does it help a programmer in developing a program? provide a recursive as well as a non-recursive C function to compute the factorial of a non-negative integer. (8 marks)

7. (a) List a few commonly used library functions in C language, along
with their definition. (5 marks)
(b) Distinguish ranging from direct and indirect recursion. (3 marks)
(c) Explain the use of malloc() function in C with example. (3 marks)
(d) Using a function for swapping the elements, write a program in C to sort the provided array of N integers. (4 marks)

8. (a) Discuss the suitability of C language for system programming. (7 marks)
(b) Declare structure to handle complex numbers. Write functions to add, subtract, multiply and divide 2 complex numbers. The functions should return the outcome. (8 marks)





( 1 Vote )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Mahatma Gandhi University (MGU) 2006 M.C.A Computer Aplications PROBLEM SOLVING AND COMPUTER PROGRAMMING IN “C” - Question Paper