Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,

I am planning to attend an interview for changing my present company and I don't want to missed any chances and like to be prepared.

It would be helpful for me if you can contribute few questions(In case you have time) that may asked on C++ & MFC


Thanking you,
Abhishek
Posted
Updated 7-May-18 19:18pm

It completely depends on the panel. But i would suggest go with the basics.

I dont know the kind of experience that you have. Nevertheless, You should be knowing the important topics that any C++,MFC person should know.

1. OOPS Concepts
2. Multithreading
3. Doc/View Architecture
4. Virtual Functions
5. Link Lists
6. Data Structures
7. Design Patterns
8. UML
9. Basic C and C++ questions on Datatypes
9. Pointers and References and the list goes on...

All the best.
 
Share this answer
 
Comments
Amar Tivari 25-Apr-12 2:26am    
Normal basic question is ok for me!!I just have experience of 2 years.

Will give two examples which where asked in my interview earlier interview.

Y can't we implement function overloading based on return types?
How to prevent a person from creating a object or deleting a object etc?

Any question is ok for me I just creating a data base so that I can just use it as reference before attending any interview
Chandrasekharan P 25-Apr-12 2:28am    
You should try these links.
http://www.coolinterview.com/type.asp?iType=41
http://www.techinterviews.com/c-interview-questions-and-answers-2
Amar Tivari 25-Apr-12 3:06am    
Thanks a lot
Chandrasekharan P 25-Apr-12 3:07am    
Anytime
First off the best way of preparing for an interview is to go to plenty. Just see what sort of things people want you to know and always ask them for feedback afterwards. Most interviewers are pretty candid about what they think you did well or not.

That being said whenever I interview someone for a job that requires C++ coding there are a couple of questions I always ask when we get to the technical bit of the interview started. They're a good initial barometer of how some much someone knows.

1. Tell me how you'd generally write an exception safe assignment operator for a class?

2. Say you've got a text file of integers. How would you open the file, add one to each number and write them back out to a file?

[Keep getting the candidate to refine their answer until it's down to open a couple of files one other line]

The first one shows they've got some understanding of how exceptions interact with the rest of C++ works and a bit about RAII. All the details about it can be found in the first chunk of "Exceptional C++" by Herb Sutter.

The second one shows if they've ever used the STL and streams in any meaningful way. The final three line solution (without error checking) is something like:

C++
std::ifstream input( "input.txt" );
std::ofstream output( "output.txt" );

std::transform( std::istream_iterator<int>( input ),
                std::istream_iterator<int>(),
                std::ostream_iterator<int>( output, " " ),
                std::bind2nd( std::plus<int>(), 1 ) );


Anyway, no idea if this lot'll help but it's always handy to know!

Cheers,

Ash
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900