3i Infotech Placement: Sample Questions 961 - 963 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 961

Edit

Describe in Detail

Essay▾

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
The Idl File Name

Question 962

Edit

Describe in Detail

Essay▾
  1. main ()
  2. {
  3.     inti =3;
  4.     switch (i)
  5.     {
  6.         default:Printf ( “zero” );
  7.         case1:Printf ( “one” );
  8.         break;
  9.         case2:Printf ( “two” );
  10.         break;
  11.         case3:Printf ( “three” );
  12.         break;
  13.     }
  14. }

Explanation

In a program

Table Shows the Program
int i = 3Integer variable i = 3
switch (i)

{

default: Printf ( “zero” ) ;

case 1: Printf ( “one” ) ;

break;

case 2: Printf ( “two” ) ;

break;

case 3: Printf ( “three” ) ;

break;

}

The switch corresponding case 3 (since i = 3) is selected

And as there is a break statement after it.

It comes out of the loop

And answer is three

Question 963

Edit

Describe in Detail

Essay▾

When does a name clash occur?

Explanation

  • A name clash occurs when a name “a” is defined in more than one place.
  • For example, two different class libraries could give two different classes the same name.
  • Program using many class libraries at the same time might be unable to compile or link because of name clashes.
Avoiding Name Clashes

Developed by: