Don’t worry, unlock all articles / blogs on PrepInsta by just simply logging in on our website
Type atleast 3 characters
Popular Searches
Trending Pages
Notifications Mark All Read
No New notification
InfyTQ Menu9>
PREPINSTA PRIME
Get Hiring Updates right in your inbox from PrepInsta
Question 1
1
5
6
12
Start
Question 2
java.util
ArrayList
java.lang
None of the mentioned
Question 3
int[] arr = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 } for ( int index= 0 ; index < 5 ; index++ ) System.out.print( arr[ index ] + " " );
2 4 6 8
2 4 6 8 10
2 4 6 8 10 1
2 4 6 8 10 1 3 5 7 9
Question 4
int[] arr = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 }; for ( int index= 0 ; index < egArray.length ; index++ ) System.out.print( arr[ index ] + " " );
Question 5
+
+=
&
||
Question 6
CHARAT()
charat()
charAt()
ChatAt()
Question 7
string()
String(void)
String(0)
Question 8
int[] egArray = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 }; for ( int index= 0 ; index < egArray.length ; index = index + 2 ) System.out.print( egArray[ index ] + " " );
4 8 1 5 9
2 6 10 3 7
2 6 10 3 7 0
Question 9
Yes---the program will not compile without the length being declared.
No---the array object is created when the program is running, and the length might change from run to run.
Yes---otherwise the program will not run correctly.
No---arrays can grow to whatever length is needed.
Question 10
int[] egArray = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 }; for ( int index= ________ ; _____________ ; ______________ ) System.out.print( egArray[ index ] + " " );
index = 0; index < egArray.length; index--
index = length; index < 0; index--
index = egArray.length-1; index >= 0; index--
index = length-1; index > 0; index--
Please login to report