Quiz
ArrayList Quize
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (8)
1You can increase and decrease the size of an Array
- AVerdadeiro
- BFalso
2Which of the properties are the properties of an ArrayList?
- AIt implements the interface List
- BIt maintains it insertion
- CIt doesn't allow duplicate value to be added to it
- DIt allows null values to be added
3What happens when you create the following object of an ArrayList?
ArrayList<String> anArrList = new ArrayList<>();- Athe no-argument constructor defined in the class ArrayList.java, constructs an empty list with an initial capacity of ten
- Bthe no-argument constructor defined in the class ArrayList.java, construct an empty list with an no capacity
- CNon of the above
4Which of the statements are true ?
- AArrayList defines a instance variable of type List to store all it's individual elements
- BArrayList defines a instance variable of type Array to store all it's individual elements
- CThe capacity of the ArrayList is the length of this instance variable
- DAll are true
5The reference to the instance variable that stores the element of the ArrayList is: elementData
- AVerdadeiro
- BFalso
6The 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.
- AVerdadeiro
- BFalso
7An Array can accept duplicate object values
- AVerdadeiro
- BFalso
8What does clone method defined in the class ArrayList doe ? Which of the statements are true?
- AIt creates a new instance of the ArrayList to be cloned
- BIt copies the element references, but not the objects
- CBoth of the answers are true
- DNon of the above
Informações
- Descrição
- OCA Java 7 SE OCA Java SE 7 (Arrays) Quiz sobre ArrayList Quize, criado por alim586 em 19-06-2015.
- Autor
- alim586
- Idioma
- English
- Visualizações
- 33
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz