
FontysVenlo - PRC1 - W12
Authored by Team Informatica
Computers
University
Used 651+ times

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?
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What is/are the correct way(s) to implement the following generic interface?
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?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?