| preferred AP College board partner for AP classes
AP Computer Science A/Unit 6: Array
Start Practice TestPractice Test
About Exam
easy Solved by 8 students
Integer Array Instantiation
< Prev
Next >

Which of the following options correctly instantiates an array of 5 integers named testGrades?

A

int testGrades[] = new int(5);

B

int[] testGrades = new int[5];

C

int testGrades = new int[5];

D

int[] testGrades = {5};

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1bommasam00033 1m 24s 216
#2singhris00011 0m 19s 81
#3y.seong202711 1m 06s 34
#4sailajavadlamani3312 1m 44s -14
Items per page:
10
1 – 4 of 4
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy