TCS Papers: Sample Questions 350 - 351 of 502

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 350

» Basic CS » Networks

Short Answer Question▾

Write in Short

What do you meant by “triple X” in networks?

Explanation

Triple X is a combination of:

  • The function of PAD (Packet Assembler Disassemble) described in a document known as X. 3. X. 3 specifies the parameters for terminal-handling functions such as line speed, flow control, character echo etc. for a connection to an X. 25 host.

  • Standard protocol between the terminal and the PAD called X. 28. X. 28 defines the DTE-C (asynchronous character mode) interface to a PAD, including the commands for making and clearing down connections, and manipulating the X. 3 parameters.

  • Protocol between the PAD and the network called X. 29. X. 29 defines the DTE-P (packet mode) interface to a PAD, i. e. how the PAD encapsulates characters and control information in X. 25 packets.

Question number: 351

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

State the differences between the Dispose () and Finalize ().

Explanation

CLR uses the Dispose and Finalize methods to perform garbage collection of run-time objects of. NET applications.

Difference between the dispose () and finalize ()

Difference between the dispose () and finalize ()

Finalize ()

Dispose ()

The Finalize method is called automatically by the runtime.

The Dispose method is called by the programmer.

CLR has a garbage collector (GC), which periodically checks for objects in heap that are no longer referenced by any object or program.

Dispose is another method to release the memory used by an object. The Dispose method is explicitly called in code to dereference an object from the heap.

It calls the Finalize method to free the memory used by such objects.

Dispose method can be invoked only by the classes that implement the IDisposable interface.

Can be used to free unmanaged resources like files, database connections etc. held by an object before that object is destroyed.

Used to free unmanaged resources like files, database connections etc. at any time.

Implemented with the help of destructor in C++ & C#.

Implemented by IDisposable interface Dispose () method.