Search Header Logo

List of References

Authored by Daniel Angel

Computers

9th - 12th Grade

Used 10+ times

List of References
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is the correct way to declare an ArrayList of Strings in Java?

ArrayList<String>
ArrayList(String)
ArrayList[String]
ArrayList{String}

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is correct syntax to access an element of an ArrayList in Java?

list.get(index)
list[index]
list.getElement(index)
list.index

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does it mean for a list to be "dynamic"?

You can easily add and remove elements
It has a set size once it has been created
It may contain multiple types of values
You can access it from anywhere in the program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code output?

[one, two, three]

[three, two, one]

[one]

[three]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code output?

[two, three]

[four, five]

[two, five]

[two, four]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following would fill blank<*1> to add a new It to itListOne?

itListOne.add(new It(56));

itListOne.add(new It("56"));

itListOne.add(new 56);

itListOne.add(56);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the following code output?

[5 dog, 3 cat]

[3 cat, 5 dog]

5 dog

No output due to a syntax error

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?