Search Header Logo

Arrays Java

Authored by THILLAI KUMAR

Computers

1st Grade

Used 495+ times

Arrays Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Arrays are used to store multiple values in a single

variable, instead of declaring separate variables for

each value.

true

false

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To declare an array, define the variable type

with________brackets:

curly

square

double quotes

no

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To create an array of integers, you could write:

int[] myNum = {10, 20, 30, 40};

int[] myNum = {10.3, 20.5, 34.3, 40.5};

double[] myNum = {10, 20, 30, 40};

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array consists of its

data type

size

index

value

all of above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

double[] marks= new double[7];

length of above array is_____

6

7

unknown

6 and 7

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?