Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Q1. A. What is unary operator? List out the different
operators involved in the unary operator.
B. What is an adjust field format flag?

Q2. A. Distinguish between a # include and #define.
B. Can a list of string be stored within a two dimensional
array?

Q3. A. Explain how a pointer to function can be declared in
C++?
B. List the merits and demerits of declaring a nested class
in
C++?

Q4. A. What are the syntactic rules to be avoid ambiguity
in multiple
inheritence?
B. Explain the operation of overloading of an assignment
operator.

Q5. A. Explain how the virtual base class is different from
the
conventional base classes of the opps.
B. Explain how an exception handler is defined and invoked
in a
Program.
Q6. A. What is a binary file? List the merits and demerits
of the binary
file usagein C++.
B. Write short notes on Text Manipulation Routines.
C. Write bites in Turbo c++ Header ("Include") Files.




Answers were Sorted based on User's Feedback



Q1. A. What is unary operator? List out the different operators involved in the unary operator. B..

Answer / achal ubbott

1. A unary operator is one which has only one operand. e.g.
post/pre increment operator.

3. A function pointer is declared as following. Rarely used

int (*fp)(int);

where fp is pointer to a function with an integer as
argument and returns an integer value.

Is This Answer Correct ?    21 Yes 6 No

Q1. A. What is unary operator? List out the different operators involved in the unary operator. B..

Answer / rck

5)A.
Virtual Base Class is the concept comes under multipath inheritance.If a class (for ex:class D) dervied from two base classes(class B and class C) which are already derived from a single base class(class A) is called multipath inheritance.
Now the derived class (D) will acquire properties of base class (A) form both classes(B and C) thus leads to ambiguity.In order to avoid that we declare Virtual infront of the base class thus only one copy of the class is derived to the derived class (D).

Is This Answer Correct ?    8 Yes 1 No

Q1. A. What is unary operator? List out the different operators involved in the unary operator. B..

Answer / arun prasad v.s

Nested Classes:
Merits:

Solves one of the problems in Multiple inheritance.

Lets say, Class MyDerived has to implement 2 interfaces IA &
IB, both interfaces having a method Init() with same
signature. If MyDerived implements both, it cannot specify 2
Init() methods with with same signature.

This limitation forces us to use nested classes, where
MyDerived shall have 2 nested classes MyA:public IA &
MyB:public IB and they each have their own implementation of
Init() method.


Demerits:
Still thinking ...:) May be code complexity ?

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More MFC Interview Questions

Types of DLL's

11 Answers   Invensys,


What are the special requirements for dialog box resources used in a form view?

2 Answers  


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


what are the feauters of CObject

4 Answers   Siemens, Wipro,


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


1) How do you Destroy a Dialog Box ?

2 Answers   Honeywell,


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


What is the difference between regular dlls and extended dlls?

2 Answers  


How to update all the views whenver document got updated ?

1 Answers  


What is subclassing?

2 Answers  


What is userdefine Messages in MFC?

1 Answers   HCL,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


Categories