Topic 2: Arrays and Data Structures

Topic 2: Arrays and Data Structures

12th Grade

11 Qs

quiz-placeholder

Similar activities

T_4.2 Identifier, Data Types, Operators & Expressions

T_4.2 Identifier, Data Types, Operators & Expressions

12th Grade - University

10 Qs

Advanced SQL

Advanced SQL

KG - University

10 Qs

CSP Vocab Practice 1

CSP Vocab Practice 1

10th - 12th Grade

16 Qs

Pretest หน่วยที่ 4

Pretest หน่วยที่ 4

KG - University

15 Qs

Lecture 4.4 Part 1

Lecture 4.4 Part 1

12th Grade

10 Qs

Berpikir Komputasional

Berpikir Komputasional

12th Grade

11 Qs

ws5-bmi-m6-0163

ws5-bmi-m6-0163

7th - 12th Grade

10 Qs

SDD HSC Quiz 5A Q1-10

SDD HSC Quiz 5A Q1-10

12th Grade

10 Qs

Topic 2: Arrays and Data Structures

Topic 2: Arrays and Data Structures

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

najihah ibrahim

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary operation performed on an array?

Store and retrieve

Sort and filter

Add and remove

Display and hide

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many dimensions can an array have?

Only one

Only two

Two or three

One, two, three, or more

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, how do you declare an array of 150 grades of real numbers?

int[] grades = new int[150];

float grades = new float[150];

double[] grades = new double[150];

double grades[150];

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a sparse matrix primarily consist of?

A mix of zeros and non-zeros

Only non-zero elements

Only positive numbers

Only zero elements

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the formula to calculate the number of elements in an array A[l:u]?

u + l + 1

u + l

u - l + 1

u - l

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to initialize a two-dimensional array in Java?

int[][] arr = new int[5][5];

int arr[5][5];

int arr = new int[5][5];

int[5][5] arr;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the address calculation for a one-dimensional array A[i] in memory?

α + i

α - i

α * i

α / i

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?