What's New-Given Below
technicalsymposium
technicalsymposium
technicalsymposium

Free Semester Study Materials/Lecture Notes

technical symposium

Training Info
Admissions Info
Courses Info
Scholarships Info

GATE Info
UPSC Info
Job Info
Materials Info
technical symposium
technical symposium
technical symposium

1. Name the operators that cannot be overloaded.?
sizeof, ., .*, .->, ::, ?

2. What is a dangling pointer?
A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed.

3. How do I call a C function from C++? Just declare the C function ``extern "C"'' (in your C++ code) and call it (from your C or C++ code)

4. Is C a subset of C++?
In the strict mathematical sense, C isn't a subset of C++. There are programs that are valid C but not valid C++ and even a few ways of writing code that has a different meaning in C and C++. However, C++ supports every programming technique supported by C. Every C program can be written in essentially the same way in C++ with the same run-time and space efficiency. It is not uncommon to be able to convert tens of thousands of lines of ANSI C to C-style C++ in a few hours. Thus, C++ is as much a superset of ANSI C

5. What is inheritance?
Inheritance is property such that a parent (or super) class passes the characteristics of itself to children (or sub) classes that are derived from it. The sub-class has the option of modifying these characteristics in order to make a different but fundamentally related class from the super-class.

6. What are instance variables?
These represent an object's private memory. They are defined in an object's class.

7. What is a super-class?
Given a class, a super-class is the basis of the class under consideration. The given class is defined as a subset (in some respects) of the super-class. Objects of the given class potentially posses all the characteristics belonging to objects of the super-class.

8. What is an object in C++?
An object is a package that contains related data and instructions. The data relates to what the object represents, while the instructions define how this object relates to other objects and itself.

9. What is polymorphism?
Polymorphism refers to the ability of an object to respond in a logically identical fashion to messages of the same protocol, containing differing types of objects. Consider 1 + 5 and 1 + 5.1. In the former, the message "+ 5" is sent to an object of class integer (1). In the later, the message "+ 5.1" is sent to the same integer object. The form of the message (its protocol) is identical in both cases. What differs is the type of object on the right-hand side of these messages. The former is an integer object (5) while the later is a floating point object (5.1). The receiver (1) appears (to other objects) to respond in the same way to both messages. Internally, however, it knows that it must treat the two types of objects differently in order to obtain the same overall response.

10. What is operator overloading?
It is the process of, and ability to redefine the way an object responds to a C++ operator symbol. This would be done in the object's class definition.

11. Define Copy Constructor.
A copy constructor is invoked when you initialize a new object of a class using an existing object. This will happen when:
• You pass a copy of an object as argument to a function (i.e. when passing by value).
• When you return an object from a function
• Or initialize an object during declaration using another object.
If we don’t specify a copy constructor, the compiler already has a default copy constructor.


12. What is the difference between overriding and overloading?
An overrided method redefines an existing method in a superclass to specify a new behavior. Overloading means that you have multiple methods with the same name but with a different parameter list.

13. What is inline function?
When you call the function, execution of the program jumps to those instructions, and when the function returns, execution jumps back to the next statement in the calling function. Performance degradation occurs in jumping into and out of functions. When a function is small, the program can be speeded-up using inline functions. The use of inline functions avoids have the program jump into and out of the same function over and over again.If a function is declared with the keyword 'inline', the compiler does not create a real function; it copies the code from the inline function directly into the calling function. No jump is made.

14. List down the advantages of class templates
• One C++ Class Template can handle different types of parameters.
• Compiler generates classes for only the used types. If the template is instantiated for int type, compiler generates only an int version for the c++ template class.
• Templates reduce the effort on coding for different data types to a single set of code.
• Testing and debugging efforts are reduced.
15. Write a short notes on recursion with example.
Recursion is defined as a function calling itself. It is in some ways similar to a loop because it repeats the same code, but it requires passing in the looping variable and being more careful. Many programming languages allow it because it can simplify some tasks, and it is often more elegant than a loop. void recurse()
{
recurse();
}
void main()
{
recurse();
}

16. Is it possible to accept command line argument in C++?
Yes, In C++ it is possible to accept command line arguments. To do so, you must first understand the full definition of int main(). It actually accepts two arguments, one is number of command line arguments, the other is a listing of the command line arguments. Ex.
int main( int argc, char *argv[])
17. Explain typecasting.
Typecasting is making a variable of one type, such as an int, act like another type, a char, for one single operation. To typecast something, simply put the type of variable you want the actual variable to act as inside parentheses in front of the actual variable. (char)a will make 'a' function as a char.

18. What’s the difference between public, private and protected?
• A member (either data member or member function) declared in a private section of a class can only be accessed by member functions and friends of that class
• A member (either data member or member function) declared in a protected section of a class can only be accessed by member functions and friends of that class, and by member functions and friends of derived classes
• A member (either data member or member function) declared in a public section of a class can be accessed by anyone

19. What are some advantages/ disadvantages of using friend functions?
Member functions and friend functions are equally privileged. The major difference is that a friend function is called like f(x), while a member function is called like x.f(). Thus the ability to choose between member functions (x.f()) and friend functions (f(x)) allows a designer to select the syntax that is deemed most readable, which lowers maintenance costs. The major disadvantage of friend functions is that they require an extra line of code when you want dynamic binding.

20. What’s the difference between the keywords struct and class in c++?
The members and base classes of a struct are public by default, while in class, they default to private.


DOWNLOAD FULL QUESTION PAPER IN WORD FORMAT


Technicalsymposium.com - Stop Searching Here-Get All Our Contents Just in One Click


Job Announcements
job details Chennai Software Companies-HR Email idjob details
job details Bangalore Software Companies Details-Part-I job details
job detailsBangalore Software Companies Details-Part-I job details
View all Government and Software Jobs job detailsjob detailsjob details



Scholarships Details
job detailsIntern Required at Intel job details
job detailsEngineering Internship at Intel job details
job detailsEngineering Internship at Intel job details
View all Scholarships and internships job detailsjob detailsjob details



Premier Institutions Admission Procedures
job details IIT Admission Procedures job details
job detailsNIT Admission Proceduresjob details
job detailsIIM,IIIT,IISC Admission Procedures job details
View all Premier Institutions Admission Procedures job detailsjob detailsjob details
All Departments Lecture Notes
job detailsBE(CSE) Lecture Notes job details
job detailsBE(ECE) Lecture Notesjob details
job detailsBE(Mech) Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Automobile Engineering-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Bio-Medical-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details
Biotechnology-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Civil Engineering-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Computer Science Engineering-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details
ECE-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



EEE-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Information technology-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details
MBA-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



MCA-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details



Mech Engineering-Lecture Notes
job detailsIII Sem Lecture Notes job details
job detailsV Sem Lecture Notesjob details
job detailsVII Sem Lecture Notesjob details
View all Departments Lecture Notes job detailsjob detailsjob details
Indian Economic Service-Question Papers
job details2010 Questions job details
job details2010 Questionsjob details
job details2010 Questionsjob details
View all Economic Service-Question Papers job detailsjob detailsjob details



GATE-Question Papers
job details2011 GATE-Question Papers job details
job details2010 GATE-Question Papersjob details
job details2009 GATE-Question Papersjob details
View all GATE-Question Papers job detailsjob detailsjob details



IES-Question Papers
job details2010 IES-Question Papersjob details
job details2010 IES-Question Papersjob details
job details2010 IES-Question Papersjob details
View all IES-Question Papersjob detailsjob detailsjob details
JAM-Question Papers
job details2011-Question Papers job details
job details2010-Question Papersjob details
job details2009-Question Papersjob details
View all JAM-Question Papers job detailsjob detailsjob details



UPSC-Main Question Papers
job details2010 UPSC-Main Question Papers job details
job details2009 UPSC-Main Question Papersjob details
job details2008 UPSC-Main Question Papersjob details
View all UPSC-Main Question Papers job detailsjob detailsjob details



UPSC-Prelims Question Papers
job details2010 UPSC-Prelims Question Papers job details
job details2009 UPSC-Prelims Question Papers job details
job details2008 UPSC-Prelims Question Papers job details
View all UPSC-Main Question Papers job detailsjob detailsjob details



Free Computer Lab Codings
job detailsC Program For ARRAY REVERSE. job details
job detailsC Program For ASCII VALUE. job details
job detailsC Program For BINARY SEARCH. job details
View all Free Computer Lab Codingsjob detailsjob detailsjob details




Free Semester study Materials
job detailsCOMPUTER ARCHITECTURE- TWO MARKS job details
job detailsComputer Networks Question Bank. job details
job detailsC Plus Plus Important question.job details
View all study Materials & Lecture Notesjob detailsjob detailsjob details
Anna University Syllabus-I-IV Semester
job detailsCommon Syllabus- SEMESTER I job details
job detailsCommon Syllabus- SEMESTER II job details
job details B.E CIVIL ENGINEERING job details
View all Branches Syllabus in Anna Universityjob detailsjob detailsjob details



Anna University Syllabus-V-VIII Semester
job details B.E. CIVIL job details
job detailsB.E. CSE job details
job detailsB.E. ECE job details
View all Branches Syllabus in Anna University job detailsjob detailsjob details
Anna University Syllabus-ME,MCA All Semester
job details M.E. CAD / CAM job details
job details M.C.A. job details
job details M.E. APPLIED ELECTRONICS job details
View all Branches Syllabus in Anna University job detailsjob detailsjob details
Entrance Exam Syllabus
job detailsGate Syllabus-Aerospace Engineeringjob details
job detailsGate Syllabus-Agricultural Engineeringjob details
job detailsGate Syllabus-Architecture and Planning job details
View all Entrance Exam Syllabusjob detailsjob detailsjob details



Competitive Exam Syllabus
job detailsIndian Economic Service Syllabus
job detailsIES-Civil Engineering Syllabus job details
job detailsIES-ECE Syllabusjob details
View all Competitive Exam Syllabusjob detailsjob detailsjob details



IT interview questions
job detailsAptitude Ablity-Part I. job details
job detailsAptitude Ablity-Part II. job details
job detailsAptitude Ablity-Part III job details
View all interview questionsjob detailsjob detailsjob details
Competitive Exam Papers
job detailsUPSC-AGRICULTURE Question Paper job details
job detailsUPSC-Animal Husbandry Question Paper job details
job detailsUPSC-BOTANY Question Paper
View all Competitive Exam Papersjob detailsjob detailsjob details



Entrance Exam Questions
job detailsJAM-Botony Question job details
job detailsJAM-botony 2006 Question job details
job detailsJAM-botony 2007 Question job details
View all Entrance Exam Questionsjob detailsjob detailsjob details



University Question Papers
job detailsAlagappa University Question Papers job details
job detailsAnna University- Questions job details
job detailsAnnamalai University-Questions. job details
View all University Question Papersjob detailsjob detailsjob details
Education loan Details
job detailsAndhra Bank-Loan Procedure
job detailsState Bank of India-Loan Procedurejob details
job detailsBank of Baroda -Loan Procedurejob details
View all Education loan Detailsjob detailsjob detailsjob details



All Certification Details
job detailsMicrosoft-Certificationjob details
job detailsCitrix-Certification job details
job detailsCisco Systems-Certification job details
View all Certification Detailsjob detailsjob detailsjob details



Famous Bio-graphy Details
job detailsAaamir Khan Biography job details
job detailsA.P.J.Abdul Kalam Biography job details
job detailsBill Gates Biography job details
View all Bio-graphy Detailsjob detailsjob detailsjob details

Hosting by Yahoo!

About-Us    Contact-Us    Site-map

©copyright 2009 All rights are reserved to technicalsymposium.com