Statistics for Code COMP90015

Click here to take the quiz!

General Stats

  • This quiz has been taken 4 times
  • The average score is 15 of 47

Answer Stats

HintAnswer% Correct
}end
100%
}end
100%
}end
100%
}end
100%
}end
100%
}end
100%
}end
100%
}end
100%
}end
100%
Look up remote object on registryObjectClass object = (ObjectClass) registry.lookup(“name”);
100%
RMI interfacepublic interface InterfaceClass extends Remote{
100%
Bind RMI object to registryRegistry.bind(“name”, object);
100%
Create registryRegistry registry = LocateRegistry.createRegistry(port);
100%
Get registryRegistry registry = LocateRegistry.getRegistry(host, port);
100%
void method() throws RemoteException;
100%
catch(IOException e) {
0%
} catch (RemoteException e){
0%
Handle socket errorscatch(UnknownHostException e){
0%
Extending thread class (MyThread, runThread())class MyThread extends Thread{
0%
Implementing Runnable (MyThread, runThread())class MyThread implements Runnable{
0%
Implementing interfaceclass ObjectClass implements InterfaceClass {
0%
Close socketclient.close();
0%
Create socket object for clientclient = new Socket( server, port);
0%
DataInputStream is;
0%
DataOutputStream os;
0%
Handle();
0%
handle();
0%
handle();
0%
is.close();
0%
Create IO streams for communicationis = new DataInputStream(client.getInputStream());
0%
Instantiate and start a thread (one line)new MyThread().start();
0%
ObjectClass.method();
0%
os.close();
0%
os = new DataOutputStream(client.getOutputStream());
0%
os.writeBytes("message");
0%
@ Override
0%
public void method() throws RemoteException{start}end
0%
public void run(){
0%
public void run(){
0%
runThread();
0%
runThread();
0%
server = new ServerSocket(port);
0%
Open server socketServerSocket server;
0%
Wait for client requestSocket client = server.accept();
0%
Perform communicationString line = is.readLine();
0%
Set Priority of a threadThreadName.setPriority(priority)
0%
Handle an errorTry {
0%

Score Distribution

Percentile by Number Answered

Percent of People with Each Score

Your Score History

You have not taken this quiz