FontysVenlo - PRC1 - W12

FontysVenlo - PRC1 - W12

University

9 Qs

quiz-placeholder

Similar activities

Internet

Internet

University

11 Qs

6 - Test Management

6 - Test Management

University

10 Qs

QIS CVML TEST1

QIS CVML TEST1

University

10 Qs

TestOut Desktop Pro Plus 1.1.18 Concept Questions

TestOut Desktop Pro Plus 1.1.18 Concept Questions

7th Grade - University

10 Qs

Information Technology

Information Technology

University

10 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Components of GIS & Levels/Scales

Components of GIS & Levels/Scales

University

12 Qs

Computer Hardware foundation degree 1

Computer Hardware foundation degree 1

University

12 Qs

FontysVenlo - PRC1 - W12

FontysVenlo - PRC1 - W12

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Team Informatica

Used 525+ times

FREE Resource

AI

Enhance your content in a minute

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

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a two-dimensional array have rows of different sizes?

Yes

No

It depends

9.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are valid ways to create multi-dimensional arrays?

int[][] integers = {{1,2,3}, {4,5,6,7}};

String[][][] strings = new String[12][5][];

double[][] doubles = new double[][]{{1.0, 2.0}, {3.0, 4.0}};

byte[][] bytes = new byte[4][5];