How To Exam?

a knowledge trading engine...


Mahatma Gandhi University (MGU) 2007 M.Sc Electronic Science Programming In C - Question Paper

Saturday, 18 May 2013 05:00Web

M.Sc. (ELECTRONICS) DEGREE EXAMINATION, JANUARY 2007

Third Semester

PROGRAMMING IN C++

Time : 3 Hours Maximum : 75 Marks

Part A

ans any 6 ques..
every ques. carries two marks.

1. Explain automatic, external and static variables.
2. How can we confirm that a file is opened or not in C++?
3. What is polymorphism?
4. Briefly discuss any 4 file management functions.
5. Give 2 operators that can be overloaded and 2 that can not be overloaded.
6. How does a main function differ from other user described function though it is also a user described function?
7. What is a function template?
8. What is a pointer? provide example.
9. Explain the statements : (a) fopen. (b) getC. (c) fscanf. (d) putW.
(6 X two = 12 marks)

Part B

ans any 3 ques..
every ques. carries five marks.

10. What are the reasons for using pointers?
11. Explain command line arguments.
12. How can we open a file in C++? elaborate the various modes of opening a file?
13. Explain inheritance. Also discuss multiple inheritance and repeated inheritance.
14. Explain class templates with examples.
(3 X five = 15 marks)

Part C

ans all ques..
every ques. carries 12 marks.

15. (a) discuss structures, clauses and union in C++ with the help of suitable examples.
Or
(b) discuss object I/O and file pointers with examples.
16. (a) Write a program to input info about 20 employees as provided beneath :
EMP_No, EMP_NAME, SALARY.
The program should output the details of a particular employee, provided his name.
Or
(b) describe the structure PLAYER that stores the subsequent info :-
name, team, batting.avg.
The program should learn details of 20 players and print team-wise details of the players.
17. (a) Write a program that uses a function using pointers to exchange the values stored in two locations in memory.
Or
(b) Write a program to count the number of vowels in a string.
18. (a) Write a program that reads 100 numbers from user. The program should write all the Fibonacci number in it to a file fibo-dat and all prime numbers to prime-dat. The program may use functions. It should print the content of every file at the end.
Or
(b) Write a program that reads 100 numbers from user. The program uses a function Factorial ( ) to get the factorial of a number. The program should write the factorial of odd numbers in the list to a file ODD.DAT and factorial of even numbers to a file EVEN.DAT. Finally prints the details.




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Mahatma Gandhi University (MGU) 2007 M.Sc Electronic Science Programming In C - Question Paper