C interview questions – page 18
2,130 questions. Tap “Show answer” to check yourself.
-
Write a class for finding next element in preorder traversal of a binary tree. You can't modify the basic structure of tree. Also discuss about your algorithm.
-
What are the two flaws in c++ ??(i.e. cite examples where c++ violates OOPS concept)?
-
Write short notes on Text Manipulation Routines.
-
In C++, how would you initialize a static member of a class with return value of some function?
-
What are the syntactic rules to be avoid ambiguity in multiple inheritence?
-
Difference between NULL string and empty string
-
Referring to the sample code above ,if an object of class my...
-
Write bites in Turbo c++ Header (?Include?) Files.
-
Define a class to represent a bank account. In the class, include the following members:Data members: name of the depositor, account number, type of account, and balance amount in the account.Member functions: to assign initial values, to deposit an amoun
-
Class A {}; A obj ; what is sizeof(obj)....explain ANS
-
How do u ensure an object of a class can not be created?
-
What is exception handling and how is it different from error handling? Why is exception handling used instead of error handling in some cases and vice versa.
- Advertisement
-
As an electric engineer choose a suitable electric engine to work in an electric metro. the power of engine is velated to the maximum speed of the metro as folloe:0<v_max<=50km/hr. ip=0,5v_max^(2)50<v_max<=100km/hr. ip=0,25 v_max^(2,5)+200100<v_max. ip=2v
-
In C++, when do you use a pointer or reference?
-
Can static functions be virtual?
-
Friend class? when to use?
-
What is a binary file? List the merits and demerits of the binary file usage in C++.
-
What is the difference between OOP (Object Oriented Programming) and POP (Procedure Oriented Programming)?
-
Why the six operators can't be overloaded?
-
What does fp point to?
-
Virtual constructors and destructors?
-
Which of following operator can't be overloaded.
-
Define copy constructor? What is the use of copy constructor?
-
Why main() is a userdefined function
- Advertisement
-
. Can a list of string be stored within a two dimensional array?
-
Why main have 3 signatures? And how it works?
-
What's the difference between virtual methods in C++ and Java?
-
You have given a structure which has two member, One which stores the time and other stores the function pointer. Your function has to call the function stored in the function pointer after the time given in the structure elapses. Design t...
-
Help me to write a c++ program using strings that does the following tasks 1)Removes multiple spaces between words. 2)find the longest word in a text. 3)extract the number of integers in the text. 4)extract the number of doubles.5)extract the number of wo
-
Why is it that the return type shld be different for Function overloading.