5 years ago in Java Strings

Given the following code fragment:
int A[];
int i = 0;
A = new int A[4];
while (i < 4)
{
A[i] = 10;
i = i + 1;
}
What is the value of A[3]?

[A] 0
[B] 3
[C] 10
[D] unknown
Loading...
Next Question

Overall Stats

Attempted 436
Correct 166
Incorrect 99
Viewed 171

Answers

Guest
Guest
Hackers Defined - 2 years ago

wrong question

v - 3 years ago

how it possible

bruh
bruh - 4 weeks ago

bruh from Guwahati, India is saying 10 is correct answer

Assaad Amine
Assaad Amine - 1 month ago

Assaad Amine from Casablanca, Morocco is saying 10 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying 3 is correct answer

Related Questions

Which is a valid declarations of a String?

  • [A] String s1 = null;
  • [B] String s2 = 'null';
  • [C] String s3 = (String) 'abc';
  • [D] String s4 = (String) '\ufeed';

: A compound statement is:

  • [A] A collection of one or more statements enclosed in braces
  • [B] A statement involving if and else
  • [C] A way of declaring variables
  • [D] a way of setting the value of a variable