Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Java Card.

Read the question and choose the best answer. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
Given the following snippet from a JavaCard applet, which constructors are valid? Assume that the appropriate imports of the JavaCard API are there. public class MyApplet extends Applet { private final OwnerPIN ownerPin; // more code here ... }

public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
super(byteArray, byteOffset, byteLength);
ownerPin = new OwnerPIN((byte) 1, (byte) 8);
ownerPin.update();
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
ownerPin = new OwnerPIN((byte) 1, (byte) 8);
ownerPin.update();
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
ownerPin = new OwnerPIN((byte) 8);
ownerPin.update((byte) 8);
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
super(byteArray, byteOffset, byteLength);
ownerPin = new OwnerPIN((byte) 1, (byte) 8);
ownerPin.update(byteArray, byteOffset, byteLength);
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
ownerPin = new OwnerPIN((byte) 1, (byte) 8);
ownerPin.update(byteArray, byteOffset, byteLength);
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
super(byteArray, byteOffset, byteLength);
ownerPin = new OwnerPIN((byte) 8);
ownerPin.update(byteArray, byteOffset, byteLength);
}



public MyApplet(byte[] byteArray, short byteOffset, byte byteLength) {
ownerPin = new OwnerPIN();
ownerPin.update(byteArray);
}



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!