3i Infotech Papers: Sample Questions 1149 - 1151 of 1245

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

Question number: 1149

» Languages » Java

Essay Question▾

Describe in Detail

What are the files generated after using IDL to java compiler?

Explanation

If idl file name is My. idl, then when compiled following files will be generated:

  1. My. java

  2. MyHelper. java

  3. MyHolder. java

  4. MyOperations. java

  5. _MyStub. javal

Image of the idl file name

Image of the Idl File Name

Image of the idl file name

Question number: 1150

» Languages » Assembly Language

Essay Question▾

Describe in Detail

Find the output of the following program

  1. int * p, * q;
  2. p = (int * ) 1000;
  3. q = (int * ) 2000;
  4. printf ( “%d” (q-p));

Explanation

Table of find the Output the Program

Table of find the Output the Program

int * p, * q;

Declare pointer p and pointer q

p = (int *) 1000;

p is assigned value of after casing to integer pointer

q= (int *) 2000;

q is assigned value of after casing to integer pointer

printf (“%d” (q-p) );

Subtract

Output

Question number: 1151

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What do you meant by active and passive objects?

Explanation

  • Active Objects: -

    • Active objects instigates a threaded interaction responsible for handling control to other objects that is it is a client.

    • For objects implemented as parallel processes the internal object state may be changed by the object itself and not simply by external calls.

  • Passive Objects: -

    • Passive objects passively wait for the message to be processed waiting for request from another object for its services, that is it is a server.

    • The object is implemented as a parallel process with entry points corresponding to object operations. If no calls are made to it, the object suspends itself.