IT-OOPRGO21 PRELIM

IT-OOPRGO21 PRELIM

University

•

35 Qs

quiz-placeholder

Similar activities

Midterm Exam - Discrete Math

Midterm Exam - Discrete Math

University

•

35 Qs

Introduction to Computer

Introduction to Computer

University

•

40 Qs

C++ Internal Assessment

C++ Internal Assessment

University

•

40 Qs

Thinking in HTML

Thinking in HTML

University

•

30 Qs

Engineering Eye

Engineering Eye

University

•

30 Qs

Kesegaran sebelum ASAT

Kesegaran sebelum ASAT

9th Grade - University

•

30 Qs

EL for Computers

EL for Computers

University

•

34 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

University

•

35 Qs

IT-OOPRGO21 PRELIM

IT-OOPRGO21 PRELIM

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Medium

Created by

Wendell Cabalhin

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the basic operations that can be performed on a two-dimensional array?

Converting to strings

Creating three-dimensional arrays

Sorting elements

Accessing elements, modifying elements, traversing, adding/removing rows and columns, and performing mathematical operations.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare and initialize a two-dimensional array in Java?

int[3,4] array = new int[][];

int array = new int[3][4];

int array[][] = new int[4][3];

int[][] array = new int[3][4]; // Declaration and initialization

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Array class in Java and what are its main features?

The Array class in Java provides utility methods for array manipulation, including sorting, searching, and filling, but cannot be instantiated.

The Array class can be instantiated like other classes in Java.

The Array class only provides methods for array creation.

The Array class is used for managing collections of objects in Java.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List some common methods provided by the Array class in Java.

split

copyOf, copyOfRange, fill, sort, equals

reverse

merge

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an ArrayList and how does it differ from a regular array?

An ArrayList can only store primitive data types.

A regular array can change its size dynamically.

An ArrayList is a dynamic array that can resize itself, while a regular array has a fixed size.

An ArrayList is a type of linked list.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe the process of adding an element to an ArrayList in Java.

arrayList.addItem(element);

arrayList.insert(element);

Use arrayList.add(element);

arrayList.push(element);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are some key methods of the ArrayList class?

add(), remove(), get(), size(), clear()

update()

insert()

find()

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?

Discover more resources for Computers