AP Computer Science Aeasymcq1 pt

Which statement declares an array of 10 ints?

A.int[] a = new int[10];
B.int a = new int[10];
C.int[] a = new int(10);
D.int[10] a;

Explanation

Core Concept

The declaration creates 10 ints.

Correct Answer

Aint[] a = new int[10];

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →