Search Header Logo

List interface

Authored by ANIL KUMAR

Computers

Professional Development

List interface
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is List an interface in Java?

A) Represents unordered data.
B) Provides positional access.
C) Allows only unique elements.
D) Inherits from ArrayList.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the List interface?

A) Ensure uniqueness of elements.
B) Allow unordered collections.
C) Maintain a sequence of elements.
D) Provide only sequential access.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you make a List of interface in Java?

A) No, interfaces cannot be listed.
B) Yes, using the List interface.
C) Only with ArrayList class.
D) List is not for collections.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the List interface and its classes in Java?

A) Defines only unordered collections.
B) Represents a static array.
C) Facilitates ordered collections.
D) Inherits from the Collection class.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the types of List interface?

A) HashSet, TreeMap, TreeSet, HashMap
B) ArrayList, LinkedList, Stack, Vector
C) PriorityQueue, HashTable, LinkedHashMap, ArrayDeque
D) LinkedHashSet, HashList, ArrayStack, DoubleLinkedList

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is ArrayList an interface?

A) Yes, ArrayList is an interface.
B) No, ArrayList is a class.
C) ArrayList is an extension of List.
D) ArrayList is a type of Set.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Collection vs List interface?

A) Collection is a child of List.
B) Collection manages Lists only.
C) List offers index-based access.
D) List is a subset of Collection.

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?