Languages [3i Infotech Placement]: Sample Questions 445 - 447 of 546

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

Question 445

Edit

Describe in Detail

Essay▾
  1. main ()
  2. {
  3.     show ();
  4. }
  5. voidshow ()
  6. {
  7.     printf ( “I'm the greatest” );
  8. }

Explanation

  • Compiler error: Type mismatch in redeclaration of show.
  • In a program
    Table Showing the Program
    1. main ()
    2. {
    3.     show ();
    4. }
    When the compiler sees the function show it doesn՚t know anything about it.

    So the default return type (i.e. … int) is assumed.

    1. voidshow ()
    2. {
    3.     printf ( “Imthegreatest” );
    4. }
    However, when compiler sees the actual definition of show mismatch occurs.

    Since it is declared as void.

    Hence the error.

  • This type of mistakes solutions are as bellows:
    1. Declare void show () in main () .
    2. Define show () before main () .
    3. Declare extern void show () before the use of show () .

Question 446

Languages
Edit

Appeared in Year: 2004

Write in Short

Short Answer▾

How can a EJB pass it՚s reference to another EJB?

Explanation

EJB has two client interfaces:

Client Interface

Remote interface:

  • Specifies business methods that the clients of the object can invoke.

Home interface:

  • Home interface defines EJB life cycle methods, a method to create and retrieve a reference to the object.

Question 447

Edit

Describe in Detail

Essay▾

EDI useful in

Explanation

  • EDI stands for Electronic data interchange.
  • Electronic data interchange is computer to computer exchange of business documents between companies replacing faxing and mailing of paper documents.
Understanding of Electronic Data Exchange
  • Use message standards, ensuring that participants use common language.
  • Sender uses internal computer files to assemble the data needed for the transaction.

Developed by: