TWO-DIMENSIONAL ARRAYS

TWO-DIMENSIONAL ARRAYS

University - Professional Development

5 Qs

quiz-placeholder

Similar activities

Javascript

Javascript

Professional Development

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

BCA

BCA

University

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Prework Etapa 1 - Bogotá

Prework Etapa 1 - Bogotá

University

10 Qs

Jaringan Nirkabel - Pertemuan 3

Jaringan Nirkabel - Pertemuan 3

University

10 Qs

UAS SISTEM PENDUKUNG KEPUTUSAN SUSULAN

UAS SISTEM PENDUKUNG KEPUTUSAN SUSULAN

University

10 Qs

7. Quiz Berpikir Komputasional

7. Quiz Berpikir Komputasional

7th Grade - University

10 Qs

TWO-DIMENSIONAL ARRAYS

TWO-DIMENSIONAL ARRAYS

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

Shaikha Alkaabi

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements correctly declares a two-dimensional integer array?

int Matrix[ ][ ] = new int[5][4];

int Matrix[ ] = new int[5,4];

int Matrix[ ][ ] = int[5][4];

int Matrix[ ]; Matrix = new int[5,4];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many columns does a have if it is created as follows

int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

{ {3, 2, 1}, {2, 4, 4} }

{ {4, 4, 2}, {2, 4, 4} }

{ {6, 4, 2}, {2, 4, 6} }

{ {3, 2, 1}, {1, 4, 8} }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements assigns the letter S to the third row and first column of a two-dimensional array named strGrid?

strGrid[0][2] = "S";

strGrid[1][3] = "S";

strGrid[3][1] = "S";

strGrid[2][0] = "S";

strGrid[0][0] = "S";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Examine the following:

double[][] values =

{ {1.2, 9.0, 3.2},

{9.2, 0.5, 1.5, -1.2},

{7.3, 7.9, 4.8} } ;


what is in values[2][1] ?

7.3

7.9

9.2

There is no such array element.

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