<< < 113 114 115 116 117 118 119 120 121 122 123 > >>   Sort: Date

What do you mean by binding of data and functions?
What do you mean by binding of data and functions? Encapsulation.
2012-02-16, 2871👍, 0💬

What is an adaptor class or Wrapper class? C++
What is an adaptor class or Wrapper class? C++ A class that has no functionality of its own. Its member functions hide the use of a third party software component or an object with the non-compatible interface or a non-object-oriented implementation.
2012-01-09, 2871👍, 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, 2869👍, 0💬

What is a node class? C++
What is a node class? C++ A node class is a class that, * relies on the base class for services and implementation, * provides a wider interface to the users than its base class, * relies primarily on virtual functions in its public interface * depends on all its direct and indirect base class * can...
2012-01-13, 2869👍, 0💬

Referring to the sample code above, on which one of the following lines does an initializer list occur?
1: class Foo { 2: int size; string name; double value; 3: 4: public: 5: Foo() : size(0), name("unknown"), value(0.0) { 6: } 7: Foo(int s) { 8: size = s; name = "unknown"; value = 0.0; 9: } 10: Foo(int s = 0, string n = "unknown", double v=0) { 11: size = s; name = n; value = v; 12: } 13: }; Referrin...
2012-04-26, 2867👍, 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, 2867👍, 0💬

What is scalability and performance?
What is scalability and performance? Performance is a measure of "how fast can you perform this task." and scalability describes how an application behaves as its workload and available computing resources increase.
2012-08-16, 2865👍, 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, 2865👍, 0💬

Can you call one constructor from another if a class has multiple constructors?
Can you call one constructor from another if a class has multiple constructors? Yes. Use this() syntax.
2012-09-06, 2864👍, 0💬

What are the conditions that have to be met for a condition to be an invariant of the class?
What are the conditions that have to be met for a condition to be an invariant of the class? * The condition should hold at the end of every constructor. * The condition should hold at the end of every mutator (non-const) operation.
2012-01-12, 2862👍, 0💬

What is polymorphism? Explain with an example?
What is polymorphism? Explain with an example? "Poly" means "many" and "morph" means "form". Polymorphism is the ability of an object (or reference) to assume (be replaced by) or become many different forms of object. Example: function overloading, function overriding, virtual functions. Another exa...
2012-02-24, 2860👍, 0💬

What is use of a cursor variable? How it is defined?
What is use of a cursor variable? How it is defined? Cursor variable is used to mark a work area where Oracle stores a multi-row query output for processing. It is like a pointer in C or Pascal. Because it is a TYPE, it is defined as TYPE REF CURSOR RETURN ;
2011-11-01, 2860👍, 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, 2858👍, 0💬

If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
If I do not provide any arguments on the command line, then the String array of Main method will be empty or null? It is empty. But not null.
2013-05-06, 2855👍, 0💬

What is a COPY CONSTRUCTOR and when is it called?
What is a COPY CONSTRUCTOR and when is it called? A copy constructor is a method that accepts an object of the same class and copies it’s data members to the object on the left part of assignement: class Point2D{ int x; int y; public int color; protected bool pinned; public Point2D() : x(0) , y(0) {...
2012-02-14, 2855👍, 0💬

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321]. quicksort ((data + 222), 100);
2012-02-20, 2853👍, 0💬

In the derived class, which data member of the base class are visible?
In the derived class, which data member of the base class are visible? In the public and protected sections.
2012-01-23, 2853👍, 0💬

Is delete a keyword in Java?
Is delete a keyword in Java? No, delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.
2013-06-26, 2851👍, 0💬

Array creation
How to create array in javascript
2013-12-19, 2848👍, 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, 2848👍, 0💬

What is the software Life-Cycle?
What is the software Life-Cycle? The software Life-Cycle are 1) Analysis and specification of the task 2) Design of the algorithms and data structures 3) Implementation (coding) 4) Testing 5) Maintenance and evolution of the system 6) Obsolescence
2012-04-12, 2844👍, 0💬

What’s the output of the following program? Why?
What’s the output of the following program? Why? #include &lt;stdio.h&gt; main() { typedef union { int a; char b[10]; float c; } Union; Union x,y = {100}; x.a = 50; strcpy(x.b,\"hello\"); x.c = 21.50; printf(\"Union x : %d %s %f \n\",x.a,x.b,x.c ); printf(\"Union y :%d %s%f \n\",y.a,y.b,y.c)...
2012-02-27, 2842👍, 0💬

Name some major differences between C++ and Java.
Name some major differences between C++ and Java. C++ has pointers; Java does not. Java is platform-independent; C++ is not. Java has garbage collection; C++ does not. Java does have pointers. In fact all variables in Java are pointers. The difference is that Java does not allow you to manipulate th...
2012-04-10, 2841👍, 0💬

Write a program that ask for user input from 5 to 9 then calculate the average
Write a program that ask for user input from 5 to 9 then calculate the average #include "iostream.h" int main() { int MAX = 4; int total = 0; int average; int numb; for (int i=0; i&lt;MAX; i++) { cout &lt;&lt; "Please enter your input between 5 and 9: "; cin &gt;&gt; numb; while ...
2012-01-27, 2839👍, 0💬

<< < 113 114 115 116 117 118 119 120 121 122 123 > >>   Sort: Date