Java Array Quiz 1 | Java Array Question and Answers | JAVA Test
Finish Quiz
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Let’s Play with our Java Array Test Quiz 1 and clear your fundamentals with us. The below online test is Free for all users so take our free Java Array Quiz 1 from below…. Java Array Test Quiz 1 Question and Answers 2019. Java online Test Quiz 1. Java Array Quiz 1 Free Mock Test 2019. Java Array Test Quiz 1 Question and Answers in PDF. The Java online mock test paper is free for all students. Java Array Test is very useful for exam preparation and getting for Rank. Java Array Test Quiz 1 Question and Answers in English. Java Array Mock test for topic via Array Mode. Here we are providing Java Array Mock Test in English Now Test your self for “Java Array Test in English” Exam by using below quiz…
This paper has 10 questions.
Time allowed is 10 minutes.
The Java Array Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
Given the declaration : int [ ] ar = {1,2,3,4,5}; What is the value of ar[4]?
Correct
Incorrect
-
Question 2 of 10
2. Question
What is the output of the following?
class ChangeIt
{
static void doIt( int[] z )
{
int temp = z[ z.length-1 ] ;
z[0] = temp;
}
}class TestIt
{
public static void main ( String[] args )
{
int myArray = {1, 2, 3, 4, 5} ;ChangeIt.doIt( myArray );
for (int j=0; j
System.out.print( myArray[j] + ” ” ) ;
}
}Correct
Incorrect
-
Question 3 of 10
3. Question
What is the output of the following?
class LowHighSwap
{
static void doIt( int[] z )
{
int temp = z[ z.length-1 ] ;
z[ z.length-1 ] = z[0] ;
z[0] = temp;
}
}class TestIt
{
public static void main ( String[] args )
{
int[] myArray = {1, 2, 3, 4, 5} ;LowHighSwap.doIt( myArray );
for (int j=0; j
System.out.print( myArray[j] + ” ” ) ;
}
}Correct
Incorrect
-
Question 4 of 10
4. Question
What is the output of the following?
class ChangeIt
{
static void doIt( int[] z )
{
int[] A = z ;
A[0] = 99;
}
}class TestIt
{
public static void main ( String[] args )
{
int myArray = {1, 2, 3, 4, 5} ;ChangeIt.doIt( myArray );
for (int j=0; j
System.out.print( myArray[j] + ” ” ) ;
}
}Correct
Incorrect
-
Question 5 of 10
5. Question
What is the output of the following?
class ChangeIt
{
static void doIt( int[] z )
{
int temp = z[ z.length-1 ] ;
z[0] = temp;
}
}class TestIt
{
public static void main ( String[] args )
{
int myArray = {1, 2, 3, 4, 5} ;ChangeIt.doIt( myArray );
for (int j=0; j
System.out.print( myArray[j] + ” ” ) ;
}
}Correct
Incorrect
-
Question 6 of 10
6. Question
What is the output of the following?
class ChangeIt
{
static void doIt( int[] z )
{
z = null ;
}
}class TestIt
{
public static void main ( String[] args )
{
int[] myArray = {1, 2, 3, 4, 5} ;ChangeIt.doIt( myArray );
for (int j=0; j
Correct
Incorrect
-
Question 7 of 10
7. Question
An array holds:
Correct
Incorrect
-
Question 8 of 10
8. Question
What does the following method do?
void blur ( char[] z, String st )
{
if ( z.lengthCorrect
Incorrect
-
Question 9 of 10
9. Question
What type parameter must the following method be called with?
int myMethod ( double[] ar )
{
. . . .
}Correct
Incorrect
-
Question 10 of 10
10. Question
The last value in an array called ar can be found at index:
Correct
Incorrect