ArrayList Quize

Descripción

OCA Java 7 SE (Arrays) OCA Java SE 7 Test sobre ArrayList Quize, creado por alim586 el 19/06/2015.
alim586
Test por alim586, actualizado hace más de 1 año
alim586
Creado por alim586 hace más de 9 años
28
0

Resumen del Recurso

Pregunta 1

Pregunta
You can increase and decrease the size of an Array
Respuesta
  • True
  • False

Pregunta 2

Pregunta
Which of the properties are the properties of an ArrayList?
Respuesta
  • It implements the interface List
  • It maintains it insertion
  • It doesn't allow duplicate value to be added to it
  • It allows null values to be added

Pregunta 3

Pregunta
What happens when you create the following object of an ArrayList? ArrayList<String> anArrList = new ArrayList<>();
Respuesta
  • the no-argument constructor defined in the class ArrayList.java, constructs an empty list with an initial capacity of ten
  • the no-argument constructor defined in the class ArrayList.java, construct an empty list with an no capacity
  • Non of the above

Pregunta 4

Pregunta
Which of the statements are true ?
Respuesta
  • ArrayList defines a instance variable of type List to store all it's individual elements
  • ArrayList defines a instance variable of type Array to store all it's individual elements
  • The capacity of the ArrayList is the length of this instance variable
  • All are true

Pregunta 5

Pregunta
The reference to the instance variable that stores the element of the ArrayList is: elementData
Respuesta
  • True
  • False

Pregunta 6

Pregunta
The method addAll (Collection<? extends E> c) appends all the elements in the specified collection's to the end of this list, in the order they're returned by the specified iterator.
Respuesta
  • True
  • False

Pregunta 7

Pregunta
An Array can accept duplicate object values
Respuesta
  • True
  • False

Pregunta 8

Pregunta
What does clone method defined in the class ArrayList doe ? Which of the statements are true?
Respuesta
  • It creates a new instance of the ArrayList to be cloned
  • It copies the element references, but not the objects
  • Both of the answers are true
  • Non of the above
Mostrar resumen completo Ocultar resumen completo

Similar

Java Week 5 Object Oriented Programming
Troy Bowlin
Comparing objects for equality
alim586
Java Practice 1
Ummm No
ArrayList
alim586
ArrayList cards
alim586
Computer science unit 2
Somto Ibeme
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict
Java Core. Basics
Gadget
Programming Review
Shannon Anderson-Rush