<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date

What is a class? C++
What is a class? C++ Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.
2012-02-20, 2977👍, 0💬

Differentiate between the message and method. C++
Differentiate between the message and method. C++ Message: * Objects communicate by sending messages to each other. * A message is sent to invoke a method. Method * Provides response to a message. * It is an implementation of an operation.
2012-01-09, 2970👍, 0💬

What is the difference between char a[] = “string”; and char *p = “string”;?
What is the difference between char a[] = “string”; and char *p = “string”;? In the first case 6 bytes are allocated to the variable a which is fixed, where as in the second case if *p is assigned to some other value the allocate memory can change.
2012-03-07, 2969👍, 0💬

What is abstraction? C++
What is abstraction? C++ Abstraction is of the process of hiding unwanted details from the user.
2012-02-22, 2968👍, 0💬

Tell how to check whether a linked list is circular C++
Tell how to check whether a linked list is circular C++ Create two pointers, each set to the start of the list. Update each as follows: while (pointer1) { pointer1 = pointer1-&gt;next; pointer2 = pointer2-&gt;next; if (pointer2) pointer2=pointer2-&gt;next ;if (pointer1 == pointer2) { pri...
2012-01-31, 2967👍, 0💬

If this is a complete translation unit, what can be said about the variable "MaxEntries"?
const int MaxEntries = 10; extern int entries[MaxEntries]; If this is a complete translation unit, what can be said about the variable "MaxEntries"? 1) It can only be used within the translation unit shown in the sample. 2) It cannot be used as a case value in a switch statement. 3) It becomes acces...
2012-04-24, 2965👍, 0💬

What is the difference between an object and a class?
What is the difference between an object and a class? Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. - A Class is static. All of the attributes of a class are fixed before, during, and after the execution o...
2012-02-17, 2963👍, 0💬

When should you use multiple inheritance?
When should you use multiple inheritance? There are three acceptable answers: "Never," "Rarely," and "When the problem domain cannot be accurately modeled any other way."
2012-03-19, 2962👍, 0💬

How do I initialize a pointer to a function?
How do I initialize a pointer to a function? This is the way to initialize a pointer to a function void fun(int a) { } void main() { void (*fp)(int); fp=fun; fp(1); }
2012-03-12, 2953👍, 0💬

What is a dangling pointer? C++
What is a dangling pointer? C++ 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. The following code ...
2012-01-06, 2952👍, 0💬

Could you tell something about the Unix System Kernel?
Could you tell something about the Unix System Kernel? The kernel is the heart of the UNIX openrating system, it’s reponsible for controlling the computer’s resouces and scheduling user jobs so that each one gets its fair share of resources.
2012-04-04, 2950👍, 0💬

What problem does the namespace feature solve?
What problem does the namespace feature solve? Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library’s external declarations with a unique namespace tha...
2012-03-22, 2950👍, 0💬

What is the difference between class and structure?
What is the difference between class and structure? Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. The major difference is that all declarations inside a...
2012-02-06, 2949👍, 0💬

What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes lo
char a; char ca[] = {'a','e','i','o','u','y'}; char* pca = ca; pca += 2; a = *pca; What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes long? 1) a = 'u' 2) a = 'e' 3) a = 'i' 4) The code is illegal. Only a pointer can be added to a...
2012-04-20, 2947👍, 0💬

What is Boyce Codd Normal form? C++
What is Boyce Codd Normal form? C++ A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a-&gt;b, where a and b is a subset of R, at least one of the following holds: * a-&gt;b is a trivial functional dependenc...
2012-01-19, 2947👍, 0💬

What do you mean by inheritance? C++
What do you mean by inheritance? C++ Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.
2012-02-14, 2945👍, 0💬

What is the two main roles of Operating System?
What is the two main roles of Operating System? As a resource manager As a virtual machine
2012-01-23, 2938👍, 0💬

What are each of the standard files and what are they normally associated with?
They are the standard input file, the standard output file and the standard error file. The first is usually associated with the keyboard, the second and third are usually associated with the terminal screen. Detemine the code below, tell me exectly how many times is the operation sum++ performed ? ...
2012-04-05, 2937👍, 0💬

In C++, what is the difference between method overloading and method overriding?
In C++, what is the difference between method overloading and method overriding? Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of...
2012-03-27, 2933👍, 0💬

What do you mean by pure virtual functions?
What do you mean by pure virtual functions? A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero. class Shape { public: virtual void draw() = 0; };
2012-02-24, 2927👍, 0💬

Define a constructor - What it is and how it might be called (2 methods).
Define a constructor - What it is and how it might be called (2 methods). Answer1 constructor is a member function of the class, with the name of the function being the same as the class name. It also specifies how the object should be initialized. Ways of calling constructor: 1) Implicitly: automat...
2012-02-03, 2926👍, 0💬

What does extern mean in a function declaration?
What does extern mean in a function declaration? It tells the compiler that a variable or a function exists, even if the compiler hasn’t yet seen it in the file currently being compiled. This variable or function may be defined in another file or further down in the current file.
2012-03-09, 2925👍, 0💬

Is C an object-oriented language?
Is C an object-oriented language? C is not an object-oriented language, but limited object-oriented programming can be done in C.
2012-04-10, 2915👍, 0💬

Explain which of the following declarations will compile and what will be constant ...
Explain which of the following declarations will compile and what will be constant ... Explain which of the following declarations will compile and what will be constant - a pointer or the value pointed at: * const char * * char const * * char * const Note: Ask the candidate whether the first declar...
2012-03-01, 2915👍, 0💬

<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date