
Assignment 3
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
D. CSE2481
Used 3+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If the initial capacity of an ArrayList is set to 10, what will be the new capacity of the ArrayList when 11th element is added
10
15
20
30
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the difference between a List and a Set in Java Collections?
List allows duplicate elements, while a Set does not
A List does not allow duplicate elements, while a Set does
A List is ordered, while a Set is not
A List is not ordered, while a Set is
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which Java Collection class provides a sorted order?
List
Set
Map
Queue
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the difference between ArrayList and LinkedList in Java?
ArrayList is an ordered collection while LinkedList is an unordered collection.
ArrayList is faster for insertion and removal operations while LinkedList is faster for random access operations.
C.
ArrayList uses a doubly linked list data structure while LinkedList uses an array data structure.
There is no difference between ArrayList and LinkedList in Java.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true about HashMap in Java?
HashMap allows null keys and null values.
HashMap is a synchronized collection.
HashMap maintains insertion order of its elements.
HashMap is an ordered collection.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
Map<String, Integer> ages = new HashMap<>();
ages.put("John", 25);
ages.put("Emma", 30);
ages.put("Michael", 35);
ages.remove("John");
System.out.println(ages.containsKey("John"));
true
false
null
Compilation error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The collection_______________________
extends Collections class
extends Iterable interface
implements Serializable interface
implements Traversable interface
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Data Analytics vs. Data Science vs. Data Engineering
Quiz
•
Professional Development
19 questions
Cardinalidade Banco de dados
Quiz
•
Professional Development
20 questions
Sorting - IV year
Quiz
•
Professional Development
15 questions
Sec+ CH.1 Review Test
Quiz
•
Professional Development
20 questions
City & Guilds Level 3 Apprenticeship Coding and Logic
Quiz
•
Professional Development
20 questions
Ch.8 - Introducing Python
Quiz
•
6th Grade - Professio...
15 questions
Typography
Quiz
•
Professional Development
15 questions
เกมส์ชวนคิด
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
