Comp 210 MT2 Review

Comp 210 MT2 Review

University

27 Qs

quiz-placeholder

Similar activities

TICS-4B REDES-2

TICS-4B REDES-2

University

24 Qs

IIC2026 2023-2 Competencia I

IIC2026 2023-2 Competencia I

University

24 Qs

Artificial Intelligence

Artificial Intelligence

University - Professional Development

24 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

Pag-ahon

Pag-ahon

University

25 Qs

Quiz 1

Quiz 1

University

23 Qs

Trabalho de Arquitetura

Trabalho de Arquitetura

University

22 Qs

Nuevas Tecnologías - Clase 1 -

Nuevas Tecnologías - Clase 1 -

University

22 Qs

Comp 210 MT2 Review

Comp 210 MT2 Review

Assessment

Quiz

Computers

University

Medium

Created by

Edward Ding

Used 93+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Media Image
Media Image
Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?