
C4 Week10Monday
Quiz
•
Other
•
Professional Development
•
Medium

Ahmetcan türk
Used 7+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Declare and construct an ArrayList with an initial capacity of 20 references to Object.
Object list(20) = new ArrayList() ;
ArrayList list[20] = new ArrayList() ;
ArrayList[Object] list = new ArrayList(20) ;
ArrayList<Object> list = new ArrayList<Object>(20) ;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following code:
ArrayList<String> list = new ArrayList<String>(10) ;
list.add( "Ann" );
list.add( "Bob" );
list.add( "Eve" );
After the code has executed, what is the capacity of list? What is its size?
3, 3
3, 10
10, 3
10, 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following code:
ArrayList<String> list = new ArrayList<String>(10) ;
list.add( "Andy" );
list.add( "Bart" );
list.add( "Carl" );
list.add( 0, "Eve" );
What element will be at index 2 of the list?
Eve
Andy
Bart
carl
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following code:
ArrayList<String> list = new ArrayList<String>() ;
list.add( "Andy" );
list.add( "Bart" );
list.add( "Carl" );
list.add( "Doug" );
list.add( "Elmo" );
Which of the following will replace the element "Carl" with "Zoltan" ?
list[2] = "Zoltan" ;
list.set( "Zoltan", "Carl" );
list.add( "Zoltan", list.indexOf("Carl") );
list.set( list.indexOf("Carl"), "Zoltan" );
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
-Contains no duplicate elements.
-Can contain at most one Null value.
-Elements are not key-value pairs.
-Accessing an element can be almost as fast as performing a similar operation on an array.
Which of these classes provides the specified features?
LinkedList
TreeMap
HashSet
LinkedHashMap
HashMap
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Journées Régionales Etudes Bordeaux
Quiz
•
Professional Development
10 questions
Sosialiasi PR & Monita
Quiz
•
Professional Development
10 questions
SovOps Quiz
Quiz
•
Professional Development
10 questions
November Download (+) Quiz
Quiz
•
Professional Development
10 questions
Verificación - notas internas
Quiz
•
Professional Development
10 questions
Google Docs
Quiz
•
8th Grade - Professio...
10 questions
Room status code
Quiz
•
11th Grade - Professi...
10 questions
ST2023 Hari 1
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
