MCQ 1511 MarkThe array size is same as the number of values specified in …………… .✓braces Bindex Cdefault value DinitializationAnswerCorrect option: A. braces (A) bracesView full question & answer→
MCQ 1521 MarkThe array variable marks [5] has an index value from ………… .A1 to 5 ✓0 to 4 C0 to 5 D1 to 4AnswerCorrect option: B. 0 to 4 (B) 0 to 4View full question & answer→
MCQ 1531 MarkArray with ……….. dimension is known as 1-D array.Adouble Btriple C(A) and (B) both ✓singleAnswerCorrect option: D. single(D) singleView full question & answer→
MCQ 1541 MarkUsing …………… method of Calendar class we can set the field constants.ASet Bget ✓set DGetAnswerCorrect option: C. set (C) setView full question & answer→
MCQ 1551 Mark………….. subclass of Calendar class is used in our syllabus.AGeoCalendar ✓GregorianCalendar CStandardCalendar DMainCalendarAnswerCorrect option: B. GregorianCalendar (B) GregorianCalendarView full question & answer→
MCQ 1561 MarkDate class facility is available in …………. package of Java.Ajava.utilities Bjava.char ✓java.util Djava.propAnswerCorrect option: C. java.util (C) java.utilView full question & answer→
MCQ 1571 MarkWhat is the meaning of length for string object ?AMethod BAttribute CFunction ✓PropertiesAnswerCorrect option: D. Properties(D) PropertiesView full question & answer→
MCQ 1581 MarkEach character occupies ………… bytes in Java✓2 B4 C6 D1AnswerCorrect option: A. 2 (A) 2View full question & answer→
MCQ 1591 MarkString are enclosed in ………….. brackets.✓double quotes Bsings quotes Ccurly DsquareAnswerCorrect option: A. double quotes (A) double quotesView full question & answer→
MCQ 1601 MarkWhat is a string ?AOne type of a character ✓Series of charactersCSpecial type of character DNone of theseAnswerCorrect option: B. Series of characters(B) Series of charactersView full question & answer→
MCQ 1611 MarkPosition of index start with …………. .✓0 B– 1 C1 D2AnswerCorrect option: A. 0 (A) 0View full question & answer→
MCQ 1621 MarkWhich property is used to count the number of elements in 1-D array ?Atotal ✓length Ctotaldig DnumberAnswerCorrect option: B. length (B) lengthView full question & answer→
MCQ 1631 MarkWhat is the meaning of ‘array within array’ in Java ?A1-D array BMulti array ✓2-D arrayDNone of theseAnswerCorrect option: C. 2-D array(C) 2-D arrayView full question & answer→
MCQ 1641 MarkIn 2-D array, row is taken as …………… array element.✓1-D Binfinite C2-D DmultiAnswerCorrect option: A. 1-D (A) 1-DView full question & answer→
MCQ 1651 MarkMaximum $………..$ dimension can be given to make $2-D $ array.A$[8] [8] $B$[255] [255] $C$[16] [16] $✓There is no limitAnswerCorrect option: D. There is no limitThere is no limitView full question & answer→
MCQ 1661 MarkHow much size of occupied by marks variable by int marks [ ] [ ] = new int [5] [3] ?A15 ✓60 C5 D3AnswerCorrect option: B. 60 (B) 60View full question & answer→
MCQ 1671 MarkSize of ………… is indicated by first bracket in int marks [ ] [ ] = new int [5] [3].✓rows Bcolumn Ccell Dnone of theseAnswerCorrect option: A. rows (A) rowsView full question & answer→
MCQ 1681 MarkHow many values can be stored using int marks [ ] [ ] = new int[5] [3] ?A5 B3 ✓15 D20AnswerCorrect option: C. 15 (C) 15View full question & answer→
MCQ 1691 MarkPair of …………. brackets are used to declare 2-D array in java.A( ) ( ) ✓[ ] [ ] C{ } { } D< > < >AnswerCorrect option: B. [ ] [ ] (B) [ ] [ ]View full question & answer→
MCQ 1701 MarkWhat is the use of static method provided by java.util.Arrays class ?ACompare two arrays BFind the particular element in arrayCSort the array✓All of theseAnswerCorrect option: D. All of these(D) All of theseView full question & answer→
MCQ 1711 Mark………… class method is given when array is used in java.AUsing private static ✓Using public static CUsing protect static DThis is not possibleAnswerCorrect option: B. Using public static (B) Using public staticView full question & answer→
MCQ 1721 Mark…………. Class method is used to display the value of array elements.Aprintln() Bprintf() ✓display() Ddisplayed()AnswerCorrect option: C. display() (C) display()View full question & answer→
MCQ 1731 MarkIf we initialize the values of variables directly then …………. Operator is not needed.✓new Bcreate Carray name Dall of theseAnswerCorrect option: A. new (A) newView full question & answer→
MCQ 1741 MarkIndex value starts with ……….. .✓0 B1 C– 1 D5AnswerCorrect option: A. 0 (A) 0View full question & answer→
MCQ 1751 MarkWhat do we give in the [] after the array name ?AIndex BSubscript ✓both (A) and (B)DNone of these AnswerCorrect option: C. both (A) and (B)(C) (A) or (B)View full question & answer→
MCQ 1761 Mark……………. Method can be used to compare the given value with each element of an array.✓Linear search BRandom search COnly search DNon-linear methodAnswerCorrect option: A. Linear search (A) Linear searchView full question & answer→
MCQ 1771 MarkWhat does ‘length’ refer to for an object of String class ?AAttribute ✓Method CClass variable DClass nameAnswerCorrect option: B. Method (B) MethodView full question & answer→
MCQ 1781 MarkThe change the elements with some other values, ………… method can be used.✓fill Blist Csort DfullAnswerCorrect option: A. fill (A) fillView full question & answer→
MCQ 1791 Mark…………. Bracket is used to declare 1-D array.A( ) B{ } ✓[ ] D< >AnswerCorrect option: C. [ ] (C) [ ]View full question & answer→
MCQ 1801 Mark………. Type of list can be stored in 1-D array.ACharacters BNumbers ✓(A) and (B) both DNone of theseAnswerCorrect option: C. (A) and (B) both (C) (A) and (B) bothView full question & answer→
MCQ 1811 MarkArray can represent ……….. data.Avector Bmatrix Cmulti-dimensional ✓all of theseAnswerCorrect option: D. all of these(D) all of theseView full question & answer→
MCQ 1821 MarkWhat is an array ?✓A collection of homogeneous type of elements BA collection of different type of elementsCA collection representing different variableD(A) or (C)AnswerCorrect option: A. A collection of homogeneous type of elements (A) A collection of homogeneous type of elementsView full question & answer→
MCQ 1831 MarkWhen an array sales [5][12] is declared without specifying initial values, what is the initial value of sales[0][0] ?A0 Bdefault value ✓compilation error D60AnswerCorrect option: C. compilation error (C) compilation errorView full question & answer→
MCQ 1841 MarkWhat will expression sales.length return for an array sales [5][12] ?A5 B12 ✓60 D120AnswerCorrect option: C. 60 (C) 60View full question & answer→
MCQ 1851 MarkWhat does ‘length’ refer to for an object of String class ?AAttribute ✓Method CClass variable DClass nameAnswerCorrect option: B. Method (B) MethodView full question & answer→
MCQ 1861 MarkWhen an array sales [5][12] is declared without specifying initial values, what is the initial value of sales[0][0] ?A0 Bdefault value ✓compilation error D60AnswerCorrect option: C. compilation error (C) compilation errorView full question & answer→
MCQ 1871 MarkHow many ways array object can be created ?A3 B4 ✓2 DOnly oneAnswerCorrect option: C. 2 (C) 2View full question & answer→
MCQ 1881 MarkWhat is the size of second dimension in an array sales [5][12] ?A5 ✓12 C60 D10AnswerCorrect option: B. 12 (B) 12View full question & answer→
MCQ 1891 MarkWhat does 2 suggest in marks [2] ?✓Index of element BValue of element CTotal element DAll of theseAnswerCorrect option: A. Index of element (A) Index of elementView full question & answer→
MCQ 1901 MarkHow many steps are there to create an array ?✓2 B3 C4 D5AnswerCorrect option: A. 2 (A) 2View full question & answer→
MCQ 1911 Mark……….. type of data can be stored in 2-D array.ATabular BMatrix ✓(A) and (B) both DNone of theseAnswerCorrect option: C. (A) and (B) both (C) (A) and (B) bothView full question & answer→
MCQ 1921 MarkBasic variable can store only one value. Such variable is known as ………… .Aconstant variable Bscalar variable Cmodular variable ✓both (A) and (B)AnswerCorrect option: D. both (A) and (B)(D) (A) or (B)View full question & answer→
MCQ 1931 MarkWhat type of value is returned when we use get method of Calendar class with constant DAY_OF_WEEK as an argument ?✓int Bchar Cstring DBooleanAnswerCorrect option: A. int (A) intView full question & answer→
MCQ 1941 MarkWhich of the following refer to the starting index value in array ?✓0 B1 Cnull DAll of theseAnswerCorrect option: A. 0 (A) 0View full question & answer→
MCQ 1951 MarkIf ‘str’ is the object of String class and its content is “Thank GOD”, then what is the value of str.length() ?✓9 B10 C8 D11AnswerCorrect option: A. 9 (A) 9View full question & answer→
MCQ 1961 MarkHow many bytes are used to store integer value using int data type ?A2 B4 ✓8 DOnly oneAnswerCorrect option: C. 8 (C) 8View full question & answer→
MCQ 1971 MarkWhich constant of Calendar class will return Day number within a week ?ADAYBDAY_WEEK✓DAYS_OF_WEEKDDay_Of_WeekAnswerCorrect option: C. DAYS_OF_WEEKCView full question & answer→
MCQ 1981 MarkWhat is used to create a String object which is same as object specified in argument?✓String (String strObj)BString (string literal)CString (char ary[ ], int start, int len)DString ( )AnswerCorrect option: A. String (String strObj)AView full question & answer→
MCQ 1991 MarkIn the following statement for declaring two-dimensional array of Java 5 represents What ?int marks[ ] [ ]=new int[5] [3] ;✓number of rowsBnumber of columnsCarray sizeDnumber of bytesAnswerCorrect option: A. number of rowsAView full question & answer→
MCQ 2001 MarkWhich of the following are used to declare 2D array ?✓Array name and two pairs of [ ]BArray type and array nameCArray name and two pairs of { }DArray type and two pairs of { }AnswerCorrect option: A. Array name and two pairs of [ ]AView full question & answer→