Search Header Logo

FontysVenlo - PRC1 - W12

Authored by Team Informatica

Computers

University

Used 651+ times

FontysVenlo - PRC1 - W12
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When do you chose the types for a generic class?

At declaration/initialization

When defining the generic class

You don't

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What types can be used as type parameter?

Reference types

Primitive types

Both primitive and reference types

None

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Why would you use type parameters?

Code re-use

Type checking

Eliminate casts

Looks fancy

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to make a generic storage class?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

What is/are the correct way(s) to implement the following generic interface?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to determine the index of a key in a HashMap?

hashCode()

equals(Objet obj)

index()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to implement a six-sided die?

Media Image
Media Image
Media Image
Media Image

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?