473,395 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Interview questions in C++ and OO

Hello All

I am recently going for an interview in C++ and would like to know
where can i find some of the tricky questions in C++. I am through with
all that available on parashift and is looking for some more questions
on the topic.

Thanks
Shabbir Bhimani

Jul 23 '05 #1
6 3957
> Hello All

I am recently going for an interview in C++ and would like to know
where can i find some of the tricky questions in C++. I am through with all that available on parashift and is looking for some more questions on the topic.

Thanks
Shabbir Bhimani

I'd recommend reading (first) "The C++ programming language" by
Stroustrup and actually learning the language, instead of just
memorizing answers to "some of the tricky questions in C++". Once you
know the language, those questions may not seem so tricky anymore.

Jul 23 '05 #2
I have already learnt the language and have cleared 2 levels of
interview and as I have time would like to learn more and become more
confident.

Thanks
Shabbir Bhimani

Jul 23 '05 #3
When or why would you need to use pure virtual functions.
When or why would you need to use friend.

Give examples of both.

Read Code Complete. IT's a good conversational piece.


"shabbir" <sh************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I have already learnt the language and have cleared 2 levels of
interview and as I have time would like to learn more and become more
confident.

Thanks
Shabbir Bhimani

Jul 23 '05 #4
"shabbir" <sh************@gmail.com> wrote in message news:<11**********************@o13g2000cwo.googleg roups.com>...
Hello All

I am recently going for an interview in C++ and would like to know
where can i find some of the tricky questions in C++. I am through with
all that available on parashift and is looking for some more questions
on the topic.

Thanks
Shabbir Bhimani


"Language Lawyer" interview questions are often covered in the Herb
Sutter books (Exceptional C++ etc.) (see also www.gotw.ca/gotw) and
the Scott Meyers books.
They are a useful supplement to experience, but you need practice as
well as knowledge in order to be a good developer.
Jul 23 '05 #5
When or why would you need to use pure virtual functions.
Pure virtual functions are needed when more than one derived classes
have the dissimilar functionality of the same behavior of the class.

Eg;-
Animal class <-- Base
Dog / Cat <-- Derived

Dog and cat both make a sound but the behavior of the function sound is
different and so it can be pure virtual function in Animal class.

When or why would you need to use friend.
Friend functions are best used when we need a bridge between more than
one class.

Thanks
Shabbir Bhimani

Jul 23 '05 #6

shabbir wrote:
Hello All

I am recently going for an interview in C++ and would like to know
where can i find some of the tricky questions in C++. I am through with all that available on parashift and is looking for some more questions on the topic.

Thanks
Shabbir Bhimani


Check out the following links:
http://axter.com/CPP_Interview_questions.htm
http://axter.com/C_interview_questions.htm

http://www.duke.edu/web/ACM/interview.html

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
0
by: freesoftwarepdfs | last post by:
Ultimate list of Interview question website.....Do not miss it http://www.questpond.com http://msdotnetsupport.blogspot.com/2007/01/net-interview-questions-by-dutt-part-2.html...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.