|
|
| Register | Invite Your Friends | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
![]() |
![]() |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Nov 2008
Posts: 311
|
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. |
|
|
|
![]() |
| Tags |
| interview, Latest, part, questions |
| Thread Tools | |
|
|