Array

Array

University

10 Qs

quiz-placeholder

Similar activities

Java Quiz 3

Java Quiz 3

University

15 Qs

cp06-01-1D-Array

cp06-01-1D-Array

University

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Java Static

Java Static

University

10 Qs

Single Array

Single Array

9th Grade - University

14 Qs

One Dimensional Arrays

One Dimensional Arrays

9th Grade - University

14 Qs

Java Arrays

Java Arrays

University

10 Qs

Topic 7-1: Array 1D

Topic 7-1: Array 1D

University

9 Qs

Array

Array

Assessment

Quiz

Computers

University

Hard

Created by

Michael Bensi

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to store multiple values of the same data type in a single variable?

Array

Constant

Variable

Class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following symbol is used when declaring an array?

<>

{}

()

[]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following property is used to find out how many elements an array has?

size

width

length

count

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way of creating an array of integers with an initial value?

int num[]= 1,2,3

int[] num= 1,2,3

int[] num={"1,2,3"}

int[] num={1,2,3}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following code: int[] = {7,9,5,6,7,8};

What is the value of age[2]?

9

7

5

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following code: int[] sum={6,8,7,9,3,2,1};

What is the index of 3?

3

2

4

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following code: int[] sum= {5,8,7,9,6,3,1,2,4};

What is the value of sum.length;?

8

7

9

6

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?