Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




Download Model question papers & previous years question papers

Posted By: CONFIDENCE IS THE COMPANION OF SUCCESS       Member Level: Diamond       Posted Date: 17 Apr 2008

2007 Anna University B.E Electrical and Electronics OBJECT ORIENTED PROGRAMMING Question paper



Course: B.E Electrical and Electronics   University: Anna University




B.E./B.TECH. DEGREE EXAMINATION MAY/JUNE 2006
fourth semester
Electrical and Electronics Engineering
EE 237-OBJECT ORIENTED PROGRAMMING
REGULATION 2001
time:Three hours maximum:100 marks
answer all questions.
PART A (10*2=20MARKS)
1.What are the features provided by object based and object oriented languages?

2.What type of abstraction is employed in (a) procedure (b) Object Oriented Programming?

3.Model a mobile phone as a class.

4.Write a function to swap two integer values using reference variables.

5.What are the operators of C++ that cannot be overloaded?

6.Indicate how different types of members of base class are visible in (a) Public and (b) Private derivation.

7.Describe the following function's declaration

virtual void service (int n) = 0;

8.Can you have a class named main in C++? If yes, how do you call its constructor?

9.What is the main purpose of a template in C++? Give an example.

10.Which of the following statements are correct?

int const *pi = & x;

(a) x=10;
(b) *pi=10;
(c) pi ++;
(d) ++*pi;

PART B-(5*16=80 MARKS)

11. (i) Model a delta network (with resistors) as a class.Equip the class with required data and function members. Write a program to test the class and to display te equivalent delta network.(8 marks)

(ii) Simulate a simple electrical system using C++ program. Describe identification of classes and objects. Write a test program to illustrate the design. (8 marks)

12. (a) Explain the following characteristics of object oriented programming with examples.

(i) Data Encapsulation
(ii) Polymorphism
(iii) Genericity
(iv)Inheritance. (4*4=16 marks)
OR
(b) (i) Is there a difference between List x and List x ()? Explain. (6 marks)
(ii) How do member functions, friend functions and non member functions differ? Give a programming example to support your answer. (10 marks)

13 (a) (i) What are the different ways of writing default constructors? Give examples. (8 marks)
(ii) What is a dangling pointer? Give an example. (8 marks)
OR
(b) (i) What are the default arguments? Give an example to illustrate programming syntax. (8 marks)
(ii) Write a C++ program to print the following triangle of numbers.Keep your program as short as possible.Read n as input. (8 marks)

1
2 2
3 3 3
4 4 4 4

14 (a) Assume the following is allowed
Complex c1 (5,4), c2 (-5,4);

c1++; ++c2;
c2=c1 + c2;
c1 +=c2;
c1= -c1;
cout<< c1;
Write a C++ program to perform these operations. (16 marks)
OR
(b) Give an application that fits the following inheritance hierarchy and write the program for the same. Each class should have atleast two data members and two function members.
(16 marks)

15. (a) (i) Explain the need for a virtual destructor? (8 marks)
(ii) Describe dynamic binding and how is it implemented in C++? (8 marks)
OR
(b) (i) Consider the following program segment:

class A {
public :
A (void) {cout << "How";}
~A (void) {cout << "What";}
};
class B : A {
public :
B (void) {cout << "Why";}
~B (void) {cout << "Hello";}
};

What does the declaration B x print? If the main function has the following two statements, what will be the output?

B x; cout << "Done" (6 marks)

(ii) Give the syntax of function template. Write a template function for sorting. Write a test program to illustrate its use. (10 marks)







Return to question paper search

Next Question Paper: CONTROL SYSTEMS

Previous Question Paper: HIGH PERFORMANCE NETWORKS

Related Question Papers:


  • semester


  • Digital Logic Circuits Nov/Dec 2007


  • PM 405 — POLYMER STRUCTURE AND PROPERTY RELATIONSHIP


  • Data Structure nov/dec 2006


  • VI - SEMESTER EE339 - POWER SYSTEM ANALYSIS


  • Categories


    Submit Previous Years University Question Papers and make money from adsense revenue sharing program

    Are you preparing for a university examination? Download model question papers and practise before you write the exam.

    Watch TV Channels



    Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.