Multiple choice technology architecture

Suppose you were programmatically creating a component to control the FileWatch service on a local EasyNomad machine. Which options are correct?

  1. private ServiceController FMServiceController = new ServiceController ('EasyNomad') ;

  2. private ServiceController FMServiceController = new ServiceController ('EasyNomad', 'FileWatch') ;

  3. private ServiceController FMServiceController = new ServiceController ('FileWatch', 'EasyNomad') ;

  4. private ServiceController FMServiceController = new ServiceController(“FileWatch”) ;

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Explanation

ServiceController constructors accept either (serviceName) for the local machine or (serviceName, machineName) for a remote machine. Option C specifies service 'FileWatch' on machine 'EasyNomad', while D uses just the service name for the local machine. Options A and B reverse the parameter order or mismatch service/machine names.