MCQ 511 MarkIn which of the following braces array elements can be accessed using index for each dimension?✓ [ ]B {}C <>D ()AnswerCorrect option: A. [ ][ ]View full question & answer→
MCQ 521 MarkWhich type of collection is an array?✓ DifferentB SameC NumericD BooleanAnswerCorrect option: A. DifferentDifferentView full question & answer→
MCQ 531 MarkUsing which of the following class of Java the 1-D array of characters can be defined?✓ stringB charC strD cAnswerCorrect option: A. stringstringView full question & answer→
MCQ 541 MarkWhat does length property return when it is used with only array name?✓ Size of first dimensionB Multiplication of first and second dimensionsC Size of second dimensionD None of theseAnswerCorrect option: A. Size of first dimensionSize of first dimensionView full question & answer→
MCQ 551 MarkFor 2-D array, number of elements is considered as number of rows and each row is a l-D array.” Specify this statement.✓ This statement is true.B This statement is false.C It depends on array.D It depends on version of Java.AnswerCorrect option: A. This statement is true.This statement is true.View full question & answer→
MCQ 561 MarkWhat does length property return for 1-D array?✓ Number of columnsB Number of rowsC Total numberD Total byteAnswerCorrect option: A. Number of columnsNumber of columnsView full question & answer→
MCQ 571 MarkWhat does the length property return for 2-D array?✓ Number of rowsB Number of columnsC Total numberD Total byteAnswerCorrect option: A. Number of rowsNumber of rowsView full question & answer→
MCQ 581 MarkWhich property of 1-D array is used to know the size of each row?✓ lengthB sizeC LenD size ofAnswerCorrect option: A. lengthlengthView full question & answer→
MCQ 591 MarkWhat is the value of nameslO,2] in char names [ ] [ ] = {{‘j’, ‘a’ , ‘v’, ‘a’), {‘c’}, {‘c’, ‘+‘, ‘+‘}} ?A jB a✓ vD avaAnswerCorrect option: C. vvView full question & answer→
MCQ 601 MarkWhat is the value of names[O] in char names [ ] [] = {{j , ‘v’, {c}, +}} ?✓ {‘j’, ‘a’, ‘v’, ‘a’}B {‘c’}C {‘c’, ‘+‘, ‘+‘}D None of theseAnswerCorrect option: A. {‘j’, ‘a’, ‘v’, ‘a’}{‘j’, ‘a’, ‘v’, ‘a’}View full question & answer→
MCQ 611 MarkHow many columns can have rows of 2-D array?A 1OB5C15✓ variable number ofAnswerCorrect option: D. variable number ofvariable number ofView full question & answer→
MCQ 621 MarkWhich array is known as an array of array in Java?A 1-D✓ 2-DC a and b BothD None of theseAnswerCorrect option: B. 2-D2-DView full question & answer→
MCQ 631 MarkBy Which of the following pair of braces each row is initialized by enclosing its elements separated by comma for 2-D array?✓ { }B [ ]C ( )D ” “AnswerCorrect option: A. { }{ }View full question & answer→
MCQ 641 MarkWhat is to be considered as 1-D array element in 2-D array?✓ RowB ColumnsC a or bD None of theseAnswerCorrect option: A. RowRowView full question & answer→
MCQ 651 MarkHow many object elements of 1-D array object is created by m [51[3]?✓5B15C3D2AnswerCorrect option: A. 55View full question & answer→
MCQ 661 MarkThere is no limit on number of dimensions in Java.” Specify this statement.✓ This statement is true.B This statement is false.C It depends on data type.D It depends on Java version.AnswerCorrect option: A. This statement is true.This statement is true.View full question & answer→
MCQ 671 MarkWhich of the following array can only be created by creating an array of array?✓ 2-DB 1-DC 0-DD None of theseAnswerCorrect option: A. 2-D2-DView full question & answer→
MCQ 681 MarkWhat does Java not support directly?✓ Multi-dimensionalB 1-DC 0-DD None of theseAnswerCorrect option: A. Multi-dimensionalMulti-dimensionalView full question & answer→
MCQ 691 MarkHow many bytes of memory location are occupied by an array ‘m’ of int m [ ] [ ] =new int [5][31]?A15✓60C5D3AnswerCorrect option: B. 6060View full question & answer→
MCQ 701 MarkWhat is the physical view of int m[ ] [ ]=new int[5] [3]?✓ Contiguous memory locations for 15 integersB TableC Contiguous memory locations for 5 integersD None of theseAnswerCorrect option: A. Contiguous memory locations for 15 integersContiguous memory locations for 15 integersView full question & answer→
MCQ 711 MarkWhat is the logical view of int m[ ] [] = new int 151 [31?✓ Table with 5 rows and 3 columnsB 5 integer valuesC 15 integer valuesD Table with 5 columns and 3 rowsAnswerCorrect option: A. Table with 5 rows and 3 columnsTable with 5 rows and 3 columnsView full question & answer→
MCQ 721 MarkWhich of the following is a statement to declare an array named ‘m’ to store integer values in 5 rows and 3 columns?A int m ( ) ( ) = new int [5][3];✓ int m [ ] [ ] =new int [5][3];C int m [ ] [ ] =new int [3][5];D None of theseAnswerCorrect option: B. int m [ ] [ ] =new int [5][3];int m [ ] [ ] =new int [5][3];View full question & answer→
MCQ 731 MarkWhat does a pair of square brackets specify which is used to declare 2-D array in Java?✓ Rows and columnsB Columns and rowsC Columns and columnsD Rows and rowsAnswerCorrect option: A. Rows and columnsRows and columnsView full question & answer→
MCQ 741 MarkHow many pairs of square brackets are used to declare 2-D array in Java?A Three✓ TwoC FourD OneAnswerCorrect option: B. TwoTwoView full question & answer→
MCQ 751 MarkWhich of the following tabular arrangement is used to store 5 students’ marks in 3 tests?✓ 5 rows and 3 columnsB 3 rows and 5 columnsC 4 rows and 3 columnsD 4 rows and 2 columnsAnswerCorrect option: A. 5 rows and 3 columns5 rows and 3 columnsView full question & answer→
MCQ 761 MarkWhich of the following arrays is used to store tabular data in the form of rows and columns?A 3-D✓ 2-DC 1-DD MulltiAnswerCorrect option: B. 2-D2-DView full question & answer→
MCQ 771 MarkWhich of the following search method compares element by element in a serial fashion?✓ LinearB BinaryC RandomD None of theseAnswerCorrect option: A. LinearLinearView full question & answer→
MCQ 781 MarkWhich method is available in array class to search an element of given value?A search ()B find ()✓ binary search ()D binary ()AnswerCorrect option: C. binary search ()binary search ()View full question & answer→
MCQ 791 MarkTo which of the following elements, value 5 is assigned by fill (list, 2, 6, 5) method?A list [2] to list [6]B list [2] and list [6]✓ list [2] to list [6-1]D list [51 and list [6jAnswerCorrect option: C. list [2] to list [6-1]list [2] to list [6-1]View full question & answer→
MCQ 801 MarkWhich statement is used to assign value 7 to all elements of list array?✓ fill(list, 7)B fill (7, list)C fill (list. 7)D fill(7. list)AnswerCorrect option: A. fill(list, 7)fill(list, 7)View full question & answer→
MCQ 811 MarkWhich arguments are given in fill method to fill partial array from element at start to (last-i) with the specified value?✓ Array, start, last, valueB Array, value, start, lastC Array, value, last, startD Start, last, value, arrayAnswerCorrect option: A. Array, start, last, valueArray, start, last, valueView full question & answer→
MCQ 821 MarkWhat does the fill method assign to all array elements when the method is invoked with two arguments namely array and value?A1B0C - ✓ Specified valueAnswerCorrect option: D. Specified valueSpecified valueView full question & answer→
MCQ 831 MarkHow to invoke fil0 method?A With two argumentsB With four arguments✓ a and b bothD None of theseAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 841 MarkHow many types are there to invoke fil0 method?✓ TwoB ThreeC FourD OneAnswerCorrect option: A. TwoTwoView full question & answer→
MCQ 851 MarkWhich method is used to fill the whole or partial array with the specified value?A impolite ()✓ fill ()C value ()D None of theseAnswerCorrect option: B. fill ()fill ()View full question & answer→
MCQ 861 MarkWhich elements can be sorted by java.util.Arrays.sort(list,1,5)?✓ list [1] to list [5-1]B list [1] to list [5]C list [O] to list [5]D list [O] to list [5-1]AnswerCorrect option: A. list [1] to list [5-1]list [1] to list [5-1]View full question & answer→
MCQ 871 MarkWhich of the following syntax is there to Store partial array from element at index start to element at index last-i?✓ Array, start, lastB Array, last, startC Start, last, arrayD Last, start, arrayAnswerCorrect option: A. Array, start, lastArray, start, lastView full question & answer→
MCQ 881 MarkIf we give start and last position with sort method then what will it sort?✓ Partial (Starting to last-i position)B EntireC Only three elementsD None of theseAnswerCorrect option: A. Partial (Starting to last-i position)Partial (Starting to last-i position)View full question & answer→
MCQ 891 MarkWhat does sort method sort when we use only array as an argument?✓ An entire part of an arrayB Last ten elements an of arrayC First ten elements of an arrayD Partial arrayAnswerCorrect option: A. An entire part of an arrayAn entire part of an arrayView full question & answer→
MCQ 901 MarkWhich method can we use to sort array partly or fully?A srt0B st0✓ sort0D arrsor0AnswerCorrect option: C. sort0sort0View full question & answer→
MCQ 911 MarkWhich of the following class contains methods sort () and fil0?✓ java.util.ArraysB java.util.methodC java. ArraysD java. MethodAnswerCorrect option: A. java.util.Arraysjava.util.ArraysView full question & answer→
MCQ 921 MarkMethods of which of the following class does Java allow to use to perform operations on Array?A Arr✓ ArraysC ArysD Java ArrayAnswerCorrect option: B. ArraysArraysView full question & answer→
MCQ 931 MarkWhich method of class java.util.Arrays is used to perform various operations on array?✓ StaticB InstanceC PrivateD All of theseAnswerCorrect option: A. StaticStaticView full question & answer→
MCQ 941 MarkWhich class is provided by Java to use various static methods?✓ java.util.ArraysB java. ArraysC java. MethodD java.util. methodAnswerCorrect option: A. java.util.Arraysjava.util.ArraysView full question & answer→
MCQ 951 MarkWhich of the following operations can be performed on array?A Compare two arraysB Copy all the elements of one array to anotherC Sort elements of array, Search specified element in array✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 961 MarkWhich operation do we need to use repeatedly to find an average of numbers in the program?A Subtract number to sum✓ Add number to sumC Divide number by 2D None of theseAnswerCorrect option: B. Add number to sumAdd number to sumView full question & answer→
MCQ 971 MarkWhich statement is used to assign value 56 to the fourth element of an array named ‘m’?✓ m [3] = 56;B m [4] =56;C m (3) =56;D m (4) = 56;AnswerCorrect option: A. m [3] = 56;m [3] = 56;View full question & answer→
MCQ 981 MarkBy using which of the following every element of an array is referred?A NameB Symbol✓ IndexD None of theseAnswerCorrect option: C. IndexIndexView full question & answer→
MCQ 991 MarkWhich type of variable every element of an array is?✓ DifferentB SameC It depends on data typeD None of theseAnswerCorrect option: A. DifferentDifferentView full question & answer→
MCQ 1001 MarkWhat will be the result if an array object is not created and we try to access the elements of an array?✓ Error messageB Help messageC Alert messageD None of theseAnswerCorrect option: A. Error messageError messageView full question & answer→