Free latest PlacementPapers, Interview Questions ....  
Invite Your Friends

Go Back   Free latest PlacementPapers, Interview Questions .... > INTERVIEW QUESTIONS ( FRESHERS & EMPLOYEES ) > Programming > C++(Cpp)


  



Reply

 

LinkBack Thread Tools
Old 09-12-08, 12:27 PM   #1 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 311
Default Latest C++ Interview Questions - Part 3




61. the following code results in class eg { void ml( ) {int i = 6; for {int i=5: i< 10;i ++ } { if{i==6} continue; system.out.println {i} ; } } ; } 1. syntax / compilation error 2. 5 6 7 8 9 3. 6 7 8 9 4. 5 7 8 9


62. What is Smart Pointer?

63. Suppose there is a txt file with following format:Student name Grades in subjectsX ABA+CDA+Y B+CAA+AAthere can be many students with there grades in various subjects. (number of subjects are unknown)Possible values of grade are: A, A+, B, B+, C, D now suppose the file gets corrupted and all '+' are replaced by 'A'Write a program to restore the file


64. Can we use static variables in file2 if they are defined in file1 ? If yes, then how ?


65. I want C++ code forCreate method inside Principal mentor class called assignAssociates to assign associate mentors from faculty.txt to a course. Create a file named associates.txt store CourseId,FacultyId,Role. Overload assignAssociates function with arguments. Overloading Method1 with three arguments courseId,FacultyId,Role. Overloading Method2 with two arguments courseId,FacultyId. ( Section 6.17 from chapter 6. ) Overload methods compactly and conveniently by using function templates. Crea


66. what is importance of const. pointer in copy constructor?


67. How to create an object such that it should not call constructor by default.


68. What are Polymorphic Classes?


69. What are inline functions?


70. Difference between a "assignment operator" and a "copy constructor"
71. what is defference between constructor and destructor


72. What errors are caught at compile time vs link time?


73. What is the difference between a pointer and a reference?


74. What are the types of STL containers?


75. What is public, protected, private?


76. What is the difference between Function and Member function?
77. it possible to inherit the private member in drived class?


78. How can double dimensional arrays be dynamically initialized in C++?


79. what is memory leaking in c++ ?


80. What is an object?
81. What is virtual class and friend class?


82. What do you mean by binding of data and functions?


83. What is function overloading and operator overloading?


84. Difference between realloc() and free()?


85. What do you mean by inline function?


86. What is RTTI?


87. What happens to the member pointers when an exception occures in constructor, while allocating memory ? how can we over come this ?


88. 1.why constructor can't be virtual?2.what's the difference between destuctor and virtual destructor?


89. What is difference between followin intialization.int iVar1;int iVar2 = int();and which one of two should we prefer always and why?


90. What is difference between Constant Object and Constant variable
__________________
Sai
Prepaid Mobile Recharge Online - Airtel, Vodafone, Idea, BSNL Cellone, Reliance Mobile, Tata Indicom.
sai6606 is offline   Reply With Quote
Reply

Tags
interview, Latest, part, questions

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT +6.5. The time now is 05:58 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Please Do Not post, copyrighted/internal contents.We are not responsible for any kind of copyrighted material.
If you have objection to any content, please let us know to remove it ASAP.
admin@placementpapers.us