C4 Week10Monday

C4 Week10Monday

Professional Development

5 Qs

quiz-placeholder

Similar activities

Quiz Workshop E-Progress

Quiz Workshop E-Progress

Professional Development

10 Qs

Picture Round

Picture Round

Professional Development

10 Qs

HEM Chapter 4

HEM Chapter 4

Professional Development

8 Qs

BP Internal Training - 12.2021 - 1

BP Internal Training - 12.2021 - 1

Professional Development

10 Qs

Sharing Session Day 3

Sharing Session Day 3

1st Grade - Professional Development

10 Qs

Level 8 Assessment Review

Level 8 Assessment Review

Professional Development

10 Qs

SAP B1 Technical -1

SAP B1 Technical -1

Professional Development

10 Qs

Niche Case

Niche Case

Professional Development

10 Qs

C4 Week10Monday

C4 Week10Monday

Assessment

Quiz

Other

Professional Development

Medium

Created by

Ahmetcan türk

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?