Search Header Logo

CSAwesome Unit 7

Authored by Mykel Searcy

Computers

12th Grade

Used 7+ times

CSAwesome Unit 7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A method that only has a declaration and no method body (no code inside the method)

Variable

Return

Abstract Method

Set

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Automatically wrapping a primitive type in a wrapper class object. For instance if you try to add an int. value to a list, it will automatically be converted to an Integer Object.

Autoboxing

Data Abstraction

ArrayList

Declaration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An ArrayList can hold many objects of the same type. It can grow or shrink as needed. You can add and remove items at any index.

Return

Get

Array Declaration

ArrayList

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To declare an ArrayList use ArrayList<Type> name, where Type is the class name for the type of objects in the list. If you leave off the <Type> it will default to object.

ArrayList

Declaration

Get

Add

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can access and set values in a list using an index. The first element in a list is called list1 is at index 0 list1.get(0). The last element in a list is at the length minus one - list1[list1.size() - 1].

Index

Get

Creation

Add

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Automatically converting a wrapper object like an Integer into a primitive type such as an int.

Autoboxing

ArrayList

Unboxing

Return

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To set the value at an index in a list use listName.set(index.obj).

Set

Add

Autoboxing

Remove

Access all questions and much more by creating a free account

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

Already have an account?