Beruflich Dokumente
Kultur Dokumente
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following correctly accesses the sixth element stored in an array of 10 elements?
Select one:
a. stringArray[5];
b. intArray[10];
c. None of these
d. intArray[7];
e. intArray[6];
Question 2
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following correctly accesses the sixth element stored in an array of 10 elements?
Select one:
a. intArray[10];
b. intArray[6];
c. None of these
d. stringArray[5];
e. intArray[7];
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
From the array int[] intArray = { 1, 2, 3, 5, 6, 7 };, what is the value of intArray[3]?
Select one:
a. 7
b. 4
c. 5
d. None of the choices
e. 6
Question 4
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. 0000000000
b. 1235678910
c. The given code is not valid
d. None of the choices
e. 012356789
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
int[] intArray = { 1, 2, 3, 5, 6, 7 };
Select one:
a. 12356
b. None of these
c. The given code is not valid
d. 765321
e. 123567
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. int intArray[];
b. int[][] intArray;
c. int intArray[][];
d. int[] intArray;
e. All of these
Question 7
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. int[][][][] intArray;
b. int intArray[][][];
c. int[][][] intArray;
d. int[][] intArray;
e. All of these
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. 6
b. 7
c. 5
d. None of the choices
e. 4
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
What is the index number of the last element of an array with 30 elements?
Select one:
a. 30
b. 29
c. None of these
d. 31
e. 0
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. None of the choices
b. 5
c. 7
d. 6
e. 4
Question 1
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. public class Person apply [InterfaceName] {}
b. public class Person extends [InterfaceName] {}
c. public class Person use [InterfaceName] {}
d. public class Person implements [InterfaceName] {}
e. None of these
Question 2
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. public static void setName(){}
b. public final void setName(){}
c. public void setName(){}
d. None of these
e. public no_override void setName(){}
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. public class interface [InterfaceName] {}
b. public interface [InterfaceName] {}
c. interface: [InterfaceName]
d. public [InterfaceName] {}
Question 4
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. class Person{}
b. public abstract class Person {}
c. public class Person {}
d. None of these
e. public final class Person {}
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Question 7
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. public abstract class Person {}
b. public class Person {}
c. None of these
d. public final class Person {}
e. class Person{}
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct way to call the constructor of the parent class?
Select one:
a. super()
b. this()
c. super.call()
d. this.call()