FontysVenlo - PRC1 - W12

FontysVenlo - PRC1 - W12

University

9 Qs

quiz-placeholder

Similar activities

Data Warehouse - Foundations

Data Warehouse - Foundations

University

10 Qs

Digital Technology Office 365 - 29May2020

Digital Technology Office 365 - 29May2020

University - Professional Development

13 Qs

Tutorium 2

Tutorium 2

University

10 Qs

Topic 4 Array

Topic 4 Array

University

10 Qs

SAS PG2 - Reading Raw Data Files

SAS PG2 - Reading Raw Data Files

University

13 Qs

U3.4. CallableStatements (JDBC)

U3.4. CallableStatements (JDBC)

University

14 Qs

COMPUTER NETWORKS

COMPUTER NETWORKS

University

11 Qs

UTILITY PROGRAM

UTILITY PROGRAM

University

10 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];