Data Structures and Algorithms - Prefinal Quiz

Quiz
•
Education
•
University
•
Hard

Marilou Bartolome
Used 20+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
It is a type of queue where elements are processed based on their order either natural or custom.
Priority Queue
Array List
Min Heap
Max Heap
2.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Which of the following creates an empty set in Java?
a = set()
Set a = new HashSet ();
A = set [ ]
Set a = new TreeSet ();
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which statement determine whether a map contains the value "Pre-final" with the PF identifier?
thisMap.containsKey("Pre-final");
thisMap.containsValue("PF");
thisMap.containsKey("PF");
thisMap.containsValue("Prefinal");
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
It is a complete binary tree where the value of each parent node is either higher or lower than the value of its child nodes.
Priority Queue
Heap
Array List
Queue
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Priority Queues can be implemented in Java using the PriorityQueue class from the ___________ package.
java.scanner
Java.io
java.linkedlist
java.util
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
A collection of elements where each element is unique.
HashSet
TreeSet
Set
LinkedHashSet
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
This stores its elements in a hash table without a guaranteed order upon iteration.
Set
HashSet
TreeSet
LinkedHashSet
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Preguntas sobre Tablas Hash

Quiz
•
University
10 questions
AOOP UNIT-5 Test

Quiz
•
University
10 questions
OSG-I/O_P1

Quiz
•
University
15 questions
EDUCATIONAL PSYCHOLOGY

Quiz
•
University
15 questions
Data Structure

Quiz
•
University
15 questions
Code Queen

Quiz
•
University
10 questions
PRUEBA DE JAVA MASTERY

Quiz
•
University
20 questions
Python Assessment-2

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade