C++ Programming Interview Questions and Answers

C++ Programming Questions and Answers:

1 :: STL Containers - What are the types of STL containers?

There are 3 types of STL containers:

1. Adaptive containers like queue, stack
2. Associative containers like set, map
3. Sequence containers like vector, deque
3/5 Rating (1 vote)
Is This Answer Correct?    3 Yes 0 No
Place Your Answer

2 :: RTTI - What is RTTI in C++?

Answer1.
RTTI stands for "Run Time Type Identification". In an inheritance hierarchy, we can find out the exact type of the objet of which it is member. It can be done by using:

1) dynamic id operator
2) typecast operator

Answer2.
RTTI is defined as follows: Run Time Type Information, a facility that allows an object to be queried at runtime to determine its type. One of the fundamental principles of object technology is polymorphism, which is the ability of an object to dynamically change at runtime.
3/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

3 :: Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?

Answer1.
In assignment operator, you are assigning a value to an existing object. But in copy constructor, you are creating a new object and then assigning a value to that object. For example:

complex c1,c2;
c1=c2; //this is assignment
complex c3=c2; //copy constructor



Answer2.
A copy constructor is used to initialize a newly declared variable from an existing variable. This makes a deep copy like assignment, but it is somewhat simpler:

There is no need to test to see if it is being initialized from itself.
There is no need to clean up (eg, delete) an existing value (there is none).
A reference to itself is not returned.
4/5 Rating (1 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

4 :: If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor screen. What would you do to find out what is going wrong?

I would use the ping command to check whether the machine is still alive(connect to the network) or it is dead.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

5 :: Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over?

Straight-through is type of wiring that is one to connection, Cross- over is type of wiring which those wires are got switched
We use Straight-through cable when we connect between NIC Adapter and Hub. Using Cross-over cable when connect between two NIC Adapters or sometime between two hubs.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

Rate This Category:
4/5 Rating (1 vote)
Place Your Question



Top: C++ Programming Interview Questions and Answers
C++ Programming Interview Questions and Answers

Top Frequently Asked C++ Programming Question
Frequently Asked C++ Programming Job Interview Question


Top Frequently opened Computer Programming Job Interview categories
Most popular Computer Programming Job Interview categories

Comments About C++ Programming Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about C++ Programming Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 20th of May 2012

    Webmaster Said

    Tell us what you feel about C++ Programming Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on C++ Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding C++ Programming Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: C++ Programming Interview Questions and Answers
Comments on C++ Programming Interview Questions and Answers

 
Top of Link batk to C++ Programming Interview Questions and Answers
Link batk to C++ Programming Interview Questions and Answers