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

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, 2673👍, 0💬

What is semaphore? C++
What is semaphore? C++ Semaphore is a special variable, it has two methods: up and down. Semaphore performs atomic operations, which means ones a semaphore is called it can not be inturrupted. The internal counter (= #ups - #downs) can never be negative. If you execute the “down” method when the int...
2012-04-09, 3261👍, 0💬

What is deadlock? C++
What is deadlock? C++ Deadlock is a situation when two or more processes prevent each other from running. Example: if T1 is holding x and waiting for y to be free and T2 holding y and waiting for x to be free deadlock happens.
2012-04-09, 3497👍, 0💬

What is a Makefile? C++
What is a Makefile? C++ Makefile is a utility in Unix to help compile large programs. It helps by only compiling the portion of the program that has been changed. A Makefile is the file and make uses to determine what rules to apply. make is useful for far more than compiling programs.
2012-04-06, 3735👍, 0💬

What’s the meaning of ARP in TCP/IP?
What’s the meaning of ARP in TCP/IP? The "ARP" stands for Address Resolution Protocol. The ARP standard defines two basic message types: a request and a response. a request message contains an IP address and requests the corresponding hardware address; a replay contains both the IP address, sent in ...
2012-04-06, 2898👍, 0💬

Give 4 examples which belongs application layer in TCP/IP architecture?
Give 4 examples which belongs application layer in TCP/IP architecture? FTP, TELNET, HTTP and TFTP
2012-04-05, 2939👍, 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, 2699👍, 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, 2730👍, 0💬

What is output equal to in Bitwise Operations - ...
What is output equal to in Bitwise Operations - ... What is output equal to in Bitwise Operations - Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively), what is output equal to in? output = (X & Y) | (X & Z) | (Y & Z);
2012-04-04, 3191👍, 0💬

Differences of C and C++ Could you write a small program that will compile in “C” but not in “C++”?
Differences of C and C++ Could you write a small program that will compile in “C” but not in “C++”? In C, if you can a const variable e.g. const int i = 2; you can use this variable in other module as follows extern const int i; C compiler will not complain. But for C++ compiler u must write extern...
2012-04-03, 3067👍, 0💬

Virtual Destructor - What is the need for “Virtual Destructor”?
Virtual Destructor - What is the need for “Virtual Destructor”? Destructors are declared as virtual because if do not declare it as virtual the base class destructor will be called before the derived class destructor and that will lead to memory leak because derived class’s objects will not get fre...
2012-04-03, 3155👍, 0💬

STL Containers - What are the types of STL containers?
STL Containers - What are the types of STL containers? There are 3 types of STL containers: 1. Adaptive containers like queue, stack 2. Associative containers like set, map 3. Sequence containers like vector, deque
2012-04-02, 4743👍, 0💬

What is RTTI? C++
What is RTTI? C++ Answer1. RTTI stands for "Run Time Type Identification". In an inheritance hierarchy, we can find out the exact type of the objet of which it is member. It can be done by using: 1) dynamic id operator 2) typecast operator Answer2. RTTI is defined as follows: Run Time Type Informati...
2012-04-02, 3322👍, 0💬

Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?
Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"? Answer1. In assignment operator, you are assigning a value to an existing object. But in copy constructor, you are creating a new object and then assigning a value to that object. For example: compl...
2012-03-30, 2842👍, 0💬

If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor scree
If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor screen. What would you do to find out what is going wrong? I would use the ping command to check whether the machine is still alive(connect to the network) or it is dead.
2012-03-29, 2774👍, 0💬

Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- throug
Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over? Straight-through is type of wiring that is one to connection, Cross- over is type of wiring which those wires are got switched We use Straight-through cab...
2012-03-29, 2836👍, 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 int main() { int MAX=4; int total =0; int average=0; int numb; cout&lt;&lt;"Please enter your input from 5 to 9"; cin&gt;&gt;numb; if((numb &lt;5)&amp;&amp;(n umb&gt;9))cout&lt;&lt;...
2012-03-28, 4746👍, 0💬

What are the defining traits of an object-oriented language?
What are the defining traits of an object-oriented language? The defining traits of an object-oriented langauge are: * encapsulation * inheritance * polymorphism
2012-03-28, 2771👍, 0💬

What methods can be overridden in Java?
What methods can be overridden in Java? In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static, and private.
2012-03-27, 2762👍, 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, 2727👍, 0💬

What is the difference between Mutex and Binary semaphore?
What is the difference between Mutex and Binary semaphore? semaphore is used to synchronize processes. where as mutex is used to provide synchronization between threads running in the same process.
2012-03-26, 2863👍, 0💬

Will it execute or not? C++
Will it execute or not? C++ void main() { char *cptr = 0?2000; long *lptr = 0?2000; cptr++; lptr++; printf(” %x %x”, cptr, lptr); }Will it execute or not? Answer1 For Q2: As above, won’t compile because main must return int. Also, 0×2000 cannot be implicitly converted to a pointer (I assume you mea...
2012-03-26, 2978👍, 0💬

Will the following program execute? C++
Will the following program execute? C++ Will the following program execute? void main() { void *vptr = (void *) malloc(sizeof(void)); vptr++; } Answer1 It will throw an error, as arithmetic operations cannot be performed on void pointers. Answer2 It will not build as sizeof cannot be applied to void...
2012-03-23, 3032👍, 0💬

Are there any new intrinsic (built-in) data types?
Are there any new intrinsic (built-in) data types? Yes. The ANSI committee added the bool intrinsic type and its true and false value keywords.
2012-03-23, 2803👍, 0💬

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