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

What value is printed by the program?

public class ArrayLength {
    public static void main(String[] args) {
        int[] data = new int[7];
        System.out.println(data.length);
    }
}
A

6

B

0

C

8

D

7

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
#1deltasmpserver22 0m 00s 200
#2bommasam00022 1m 31s 109
#3gorkemakyuz20107501 0m 20s -30
Items per page:
10
1 – 3 of 3
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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