Comp 210 MT2 Review

Quiz
•
Computers
•
University
•
Medium
Edward Ding
Used 93+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Choose all of the following which describe instances of abstraction.
Select all that apply.
Looking at the raw binary data of a certain program.
Only needing to know how to steer, brake, and accelerate to drive a car.
Creating a String in Java.
Using Windows to utilize a computer to surf the web.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following implementations & instantiations of a 'Dog' object adhere to encapsulation?
Select all that apply.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the reason why utilizing getters & setters are preferred to making instance variables public?
It simplifies the code & class complexity.
It is more efficient in terms of computational efficiency.
It allows you to utilize the "this" keyword, so that we return the instance values.
It allows for enforcement of formatting / validation when getting & setting data.
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Assume this interface is written.
If we created a class: public class Human implements Organism,
which of the following must be implemented in human?
Select all that apply.
eat()
getAge()
setAge()
move()
private int age;
5.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
When implementing an interface, to implement a specific method we should use this keyword:
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Assume a development team is creating a Java class implementing a simulation of a collection of things. The team wants any future users of this class to use anything they want to store in the class, so long as one thing can be compared to another.
Which of the following would be the proper class header for this simulation?
public class Simulation<T implements Comparable<T>>
public class Simulation implements Comparable
public class Simulation
public class Simulation<T>
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
BUG-OFF

Quiz
•
University
25 questions
C++ with DS

Quiz
•
University
30 questions
Battle With DSA

Quiz
•
University
32 questions
Data Structures Challenge

Quiz
•
University
28 questions
ALGO - Lesson 4 (Data Structure)

Quiz
•
University
30 questions
Data Structures Quiz

Quiz
•
University
30 questions
Data Structures and Algorithms Quiz

Quiz
•
University
25 questions
QUIZ

Quiz
•
University
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