Mapping Clients  «Prev  Next»

IDL Interface Inheritance Mapping - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 

1. Which answer is the operations interface that would be generated for the Heat Warning Weather Service in the following IDL?
module weather
{
 interface WeatherService
     {
  string getReport(in string city);
     };
 interface HeatWarningWeatherService:WeatherService
 {
  boolean issueWarning(in string city);
 };
};

Please select the best answer.
  A.
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherService
{
 public boolean issueWarning(java.lang.String city);
}

  B.
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherServiceOperations
{
 public java.lang.String getReport(java.lang.String city);
public boolean issueWarning(java.lang.String city); }

  C.
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherServiceOperations
{
 public boolean issueWarning(java.lang.String city);
}


2. Which answer is the signature interface that would be generated for the Heat Warning Weather Service in the following IDL?
module weather
{ 
 interface WeatherService
     {
  string getReport(in string city);
     };
 interface HeatWarningWeatherService:WeatherService
 {
  boolean issueWarning(in string city);
 };
};

Please select the best answer.
  A.
package weather;
public interface HeatWarningWeatherService
 extends HeatWarningWeatherServiceOperations, 
  org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
weather.WeatherService
{
}

  B.
package weather;
public interface HeatWarningWeatherService
 extends HeatWarningWeatherServiceOperations, 
  org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
weather.WeatherService
{
 public boolean issueWarning(java.lang.String city);
}

  C.
package weather;
public interface HeatWarningWeatherService
 extends HeatWarningWeatherServiceOperations, 
  org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity,
weather.WeatherServiceOperations
{
}


3. Which answer is the operations interface that would be generated for the Heat Warning Weather Service in the following IDL? module weather
{ 
 interface WeatherService
     {
  string getReport(in string city);
     };
 interface HeatWarningWeatherService:WeatherService
 {
  readonly attribute double warningThreshold;
  boolean issueWarning(in string city);
 };
};

Please select the best answer.
  A.
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherServiceOperations
{
 public boolean issueWarning(java.lang.String city);
}

  B.
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherService
{
 public double warningThreshold();
 public boolean issueWarning(java.lang.String city);

  C.
}
package weather;
public interface HeatWarningWeatherServiceOperations
 extends weather.WeatherServiceOperations
{
 public double warningThreshold();
 public boolean issueWarning(java.lang.String city);
}


Correct answers:

Your Score: 0