Test
Sin título
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (12)
12. Select how you would run your program to cause it to print: Arg is 2 <br>

- Ao java Myfile 2 2 2
- Bo java Myfile 1 2 2 3 4
- Co java Myfile 1 3 2 2
- Do java MyFile 1 2 2 2
- Eo java Myfile 0 1 2 3
21. What will be the output of the program?<br>

- Ao Pine
- Bo Oak
- Co Tree
- Do Forest
- Eo Oops
33. [html]What does the following code do? <br>void blur(char[] z, String st) {<br> if(z.length < st.length()) retrun; <br> for(int i = 0; i < st.length(); i++) <br> z[i] = st.charAt(i); <br>}
- Ao It determines if the array contains the same characters as the String
- Bo It copies characters from the array to the String
- Co It copies characters from the String to the array;
- Do It creates a new array that contains the same characters as the String
44. Given the declaration of an array : int[] a = {1,2,3,4,5}; What is the value of a[4]?
- A2
- B3
- C4
- D5
- E1
55. An array holds:
- Ao Similar values of same data type
- Bo Different values of same data type
- Co Same values of different data types
- Do Different values of different data types
6[html]Java uses call by value. What is the value that is being passed into the routine by the method call in the following? <br> double rats[] = {1.2 , 2.3, 3.4}; <br> routine(rats);
- Ao A copy of the array rats
- Bo The value of the elements of rats
- Co A reference of the array
- Do 1.2
- Eo 2.3
77. What is the prototype of the default constructor?<br>

- Ao Test()
- Bo public Test()
- Co public Test(void)
- Do Test(void)
8
8. What is the widest valid returnType for methodA in line 3?<br>
- Ao int
- Bo long
- Co byte
- Do double
- Eo void
99. You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?
- Ao java.util.Map
- Bo java.util.Set
- Co java.util.Tree
- Do java.util.List
- Eo java.util.Collection
1011. Let’s assume that you have class C and interface I ? Which of the following is correct statement?
- Ao class C implements I
- Bo class C extends I
- Co interface I extends C
- Do interface I implements C
- Eo class I implements C
1110. You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
- Ao public
- Bo private
- Co protected
- Do transient
- Eo volatile
1212. Which is valid in a class that extends class A?<br>
- Ao public int method1(int a, int b) {return 0; }
- Bo private int method1(int a, int b) {return 0; }
- Co protected static int method1(int a, int b) {return 0; }
- Do public long method1(int a, int b) {return 0; }
- Eo public static int method1(int a, int b) {return 0; }
Información
- Descripción
- Test sobre Sin título, creado por Ai Ka el 14/01/2017.
- Autor
- Ai Ka
- Idioma
- English
- Visitas
- 0
- Historial
- Creado el 14 ene 2017 · actualizado el 15 ene 2017
- Valoración
- Aún sin valoraciones Valora este test