Comp 210 MT2 Review

Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

23 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the reason why utilizing getters & setters are preferred to making instance variables public?
Back
It allows for enforcement of formatting / validation when getting & setting data.
2.
FLASHCARD QUESTION
Front
When implementing an interface, to implement a specific method we should use this keyword:
Back
@Override
3.
FLASHCARD QUESTION
Front
Which of the following would be the proper class header for a Java class implementing a simulation of a collection of things that can be compared?
Options:
public class Simulation<T implements Comparable<T>>
public class Simulation implements Comparable
public class Simulation
public class Simulation<T>
Back
public class Simulation<T implements Comparable<T>>
4.
FLASHCARD QUESTION
Front
TRUE OR FALSE: Searching for an element in a doubly linked list has a better average time complexity than searching through a singly linked list.
Back
False
5.
FLASHCARD QUESTION
Front
Assume we have a doubly linked list, and a particular element to be deleted's pointer is on hand (but NOTHING else). How does the time complexity for this deletion compare to if this was a singly linked list?
Back
Doubly: o(1), If Singly: o(n)
6.
FLASHCARD QUESTION
Front
Assume elements are inserted into a BST in exactly the following order: 52, 23, 77, 65, 9. What would the resulting BST look like?
Back
7.
FLASHCARD QUESTION
Front
The best case time complexity of searching a BST is o( _ )
Back
1
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
English IV Final Study Guide Fall '24

Flashcard
•
12th Grade
15 questions
Programming Concepts Flashcard

Flashcard
•
12th Grade
20 questions
Video Editing

Flashcard
•
University
15 questions
Fifth Harmony Presentation

Flashcard
•
University
15 questions
Character Types

Flashcard
•
University
15 questions
Flashcard on King Arthur and the Green Knight

Flashcard
•
12th Grade - University
11 questions
Trees DSAAL

Flashcard
•
University
15 questions
Independent and Dependent Clauses

Flashcard
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University