Edit Game
MCQ Revision
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public



 Save

Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






 Save   18  Close
What is the output of arr[0][2] if arr = {{1,2,3}, {4,5,6}}?
3
What is the output of arr[0][0] if arr = {{9, 8}, {7, 6}}?
9
What is the index of the last row in int[5][3]?
4
How many total elements are there in int[3][4]
12
What will arr[2][1] return if arr = {{1,2}, {3,4}, {5,6}}?
6
What is the output of arr[arr.length - 1]? (If arr = {2, 4, 6, 8})
8
Which searching technic required sorted array.
Binary Searching
True or False : Linear Search is faster then Binary Search
False
Write the syntax to initialize an array with values 10, 20, 30.
int a [ ] = {10,20,30}
True or False: The size of an array can be changed after declaration.
False
What will be the output of the following code snippet? int[] arr = {1, 2, 3, 4, 5}; System.out.println(arr.length);
5
What is the output of the following code segment in Java? int[] array = {1, 2, 3}; System.out.println(array[3]);;
Error : ArrayOutofBound
The ith element in the array has an index _________
i-1
char ch[ ] = {‘X’, ‘Y’, ‘Z’, ‘W’}; System.out.print(ch[0] + 50);
138
Assertion :An array can store elements of different data types. Reason: An array is a user-defined data type with multiple values of the same data type but a different memory index.
Assertion is false, Reason is true.
The java statement System. out. println(x[x. length]) results in:
run time error
Calculate the total memory (in bytes) required to store a double array of size 6.
48
What is the highest index of any array with 100 elements?
99