MCQ 2011 MarkWhat will be the index value array if array is initialized with following values ? int marks[ ]={70, 80, 85, 90, 100};A0 to 5✓0 to 4C1 to 5D1 to 4AnswerCorrect option: B. 0 to 4BView full question & answer→
MCQ 2021 MarkWhich of the following is/are the proper example/s of declaring an array with initial values of data elements?Aint marks[ ]={90,70,77);Bint [ ] marks={90, 70, 77);✓Both A & BDint marks [90, 70, 77];AnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 2031 MarkBy using which of the following class we can use various static methods provided by Java?###Sort( ) and Fill( ) are methods of which of the following Java class?AArray.java.data✓java.util.ArraysCutil.Array.javaDArray.java.fillAnswerCorrect option: B. java.util.ArraysBView full question & answer→
MCQ 2041 MarkWhat is used to refer an element of an array ?A{ }BArray content✓Index or subscriptDElement referenceAnswerCorrect option: C. Index or subscriptCView full question & answer→
MCQ 2051 MarkWhich of the following steps are used to create an array ?ADeclare an array objectBCreate an array object✓Both A & BDSpecify the sizeAnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 2061 MarkWhat is the size of second dimension in an array sales [5] [12] ?A5✓12C60D10AnswerCorrect option: B. 12BView full question & answer→
MCQ 2071 MarkWhich number represents PM in AM_PM ?A$0$✓1C12D13AnswerCorrect option: B. 1BView full question & answer→
MCQ 2081 MarkIf 'str' is the object of String class and its content is "Thank GOD", then what is the value of str.length() ?✓9B10C8D11AnswerCorrect option: A. 9AView full question & answer→
MCQ 2091 MarkWhich array class method is used to search an element in an array?ASearch( )✓binarySearch( )Cbinary( )DSearchArray( )AnswerCorrect option: B. binarySearch( )BView full question & answer→
MCQ 2101 MarkWhich constant of Calendar class will return Day of calendar month?ADayBDayOfCal✓DATEDDATECalAnswerCorrect option: C. DATECView full question & answer→
MCQ 2111 MarkHow many ways are there to create an array object?A1✓2C3D4AnswerCorrect option: B. 2BView full question & answer→
MCQ 2121 MarkWhich of the following can be represented by Arrays ?AVectorBMatrixCMulti-dimensional data✓All A, B & CAnswerCorrect option: D. All A, B & CDView full question & answer→
MCQ 2131 MarkWhich constant of Calendar class will return Hours in 12 hour notation ?✓HOURBHourOfTimeCHour_Of_TimeDHOUR_TimeAnswerCorrect option: A. HOURAView full question & answer→
MCQ 2141 MarkWhich Java classes are used to handle strings ?✓String and StringBufferBString and BufferCBuffer and String.JavaDStrings and Buffer.JavaAnswerCorrect option: A. String and StringBufferAView full question & answer→
MCQ 2151 MarkWhat is used to declare-a 1- D array ?###In Java, how can be array elements accessed using index for each dimension ?A{ }✓[ ]C( )D< >AnswerCorrect option: B. [ ]BView full question & answer→
MCQ 2161 MarkWhich arrays are used to store tabular data in the form of rows and columns ?ATwo dimensionalB2 - D✓Both A & BD1 - DAnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 2171 MarkWhat is used as a separator of 1 - D array values ?A; (Semi colon)B+ (Plus)✓, (Comma)D- (Hyphen)AnswerCorrect option: C. , (Comma)CView full question & answer→
MCQ 2181 MarkWhich of the following refer to the starting index value in arrays ?✓$0$B1CnullDAll of theseAnswerCorrect option: A. $0$AView full question & answer→
MCQ 2191 MarkWhich of the following will create a String object with no character?AString (char ary[ ])BString (String strObj)CString (string literal)✓String ( )AnswerCorrect option: D. String ( )DView full question & answer→
MCQ 2201 MarkWhich constant of Calendar class will return Day number in the year?ADayOfYearBDay_Year✓DAY_OF_YEARDDaysOfYearAnswerCorrect option: C. DAY_OF_YEARCView full question & answer→
MCQ 2211 MarkWhat is used to create a String object using 1 - Dary argument starting at ary[start] with len number of characters ?AString (String strObj)BString (string literal)✓String (char ary[ ], int start, int len)DString (char ary[ ])AnswerCorrect option: C. String (char ary[ ], int start, int len)CView full question & answer→
MCQ 2221 MarkWhich method is used to fill the whole or partial array with specified value ?ASortBInsert✓FillDAddAnswerCorrect option: C. FillCView full question & answer→
MCQ 2231 MarkWhich brackets are used to represent values of data elements in 1- D array ?✓{ }B[ ]C( )D< >AnswerCorrect option: A. { }AView full question & answer→
MCQ 2241 MarkWhich of the following are useful when some options are to be performed on various elements of the similar type ?AClass✓ArraysCObjectDMethodsAnswerCorrect option: B. ArraysBView full question & answer→
MCQ 2251 MarkWhat type of value is returned when we use get method of Calendar class with constant DAY_OF_WEEK as an argument ?✓intBcharCstringDbooleanAnswerCorrect option: A. intAView full question & answer→
MCQ 2261 MarkWhat is used to refer an element of an array?A{ }BArray content✓Index or subscriptDElement referenceAnswerCorrect option: C. Index or subscriptCView full question & answer→
MCQ 2271 MarkWhich constant of Calendar class will return Year of calendar?ACalYearBYearOfCal✓YEARDCalendar YearAnswerCorrect option: C. YEARCView full question & answer→
MCQ 2281 MarkWhat is used as a separator of 1 - D array values?A; Semi colonB+ Plus✓, CommaD- hyphenAnswerCorrect option: C. , CommaCView full question & answer→
MCQ 2291 MarkWhich of the following are used to declare 2 - D 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→
MCQ 2301 MarkWhich property of 1 - D array is used to know the size of each row?ADefineBSizeCMeasure✓LengthAnswerCorrect option: D. LengthDView full question & answer→
MCQ 2311 MarkIn which manner, all the elements of an array are stored in memory storage space?ARandomBSeparated✓ContiguousDAny A, B, CAnswerCorrect option: C. ContiguousCView full question & answer→
MCQ 2321 MarkWhich Java classes are used to handle strings?✓String and StringBufferBString and BufferCBuffer and String.JavaDStrings and Buffer.JavaAnswerCorrect option: A. String and StringBufferAView full question & answer→
MCQ 2331 MarkWhat can we use instead of 'array of characters', to save space?✓Array of bytesBArray of numbersCArray of ASCIIDArray of stringsAnswerCorrect option: A. Array of bytesAView full question & answer→
MCQ 2341 MarkWhich method does construct Date object using current system time?ADate (Time)Blong getTime( )✓Date( )DDate (long elapsedTime)AnswerCorrect option: C. Date( )CView full question & answer→
MCQ 2351 MarkWhich method does return a string after appending str with the invoking string?AString toLowerCase( )✓String concat(String str)CString toUpperCase( )Dbyte[] getBytes( )AnswerCorrect option: B. String concat(String str)BView full question & answer→
MCQ 2361 MarkBy using which of the following class we can use various static methods provided by Java?AArray.java.dataBjava.util.ArraysCutil.Array.javaDArray.java.fillAnswerBView full question & answer→
MCQ 2371 MarkWhich number represents AM in AM_PM ?A12B1✓$0$D24AnswerCorrect option: C. $0$CView full question & answer→
MCQ 2381 MarkWhich constant of Calendar class will return same value as DATE ?ADAYBDayOfMonthCDateOfMonth✓DAY_OF_MONTHAnswerCorrect option: D. DAY_OF_MONTHDView full question & answer→
MCQ 2391 MarkWhich methods are used to set the value of the field constants of Calendar class ?AGet✓SetCDisplayDShowAnswerCorrect option: B. SetBView full question & answer→
MCQ 2401 MarkWhich class encapsulate both date and time?ANow ( )BString✓DateDArraysAnswerCorrect option: C. DateCView full question & answer→
MCQ 2411 MarkLength' represents what with String object ?AAttributeBPropertyCClass✓MethodAnswerCorrect option: D. MethodDView full question & answer→
MCQ 2421 MarkWhich method does return an array of characters as bytes from invoking string?✓byte[ ] getBytes( )Bvoid getChars(int targetIndx)CString toLowerCase( )Dchar indexAt(int index)AnswerCorrect option: A. byte[ ] getBytes( )AView full question & answer→
MCQ 2431 MarkWhich of the following method does return true if invoking string is same as str ?AbooleanequalsIgnoreCase (String str)✓boolean equals(String str)CintcompareTo(String str)DintcompareToIgnoreCase(String str)AnswerCorrect option: B. boolean equals(String str)BView full question & answer→
MCQ 2441 MarkWhich operator is used to allocate separate memory, when string objects are created and strings are identical ?ANewStringBStringNewCNewObject✓NewAnswerCorrect option: D. NewDView full question & answer→
MCQ 2451 MarkIn Java, how many bytes are occupied by characters ?AOneBTwo✓ThreeDFourAnswerCorrect option: C. ThreeCView full question & answer→
MCQ 2461 MarkWhich of the following can create a String object with its initial value using ary argument ?AString ( )BString (char ary[], int start, intlen)✓String (char ary[ ])DString (String strObj)AnswerCorrect option: C. String (char ary[ ])CView full question & answer→
MCQ 2471 MarkWhat of the following is a sequence of characters ?AArray✓StringCString BufferDAlphanumeric valuesAnswerCorrect option: B. StringBView full question & answer→
MCQ 2481 MarkWhich method is used to sort entire or part of an array ?AFill( )BPsort( )CAsort( )✓Sort( )AnswerCorrect option: D. Sort( )DView full question & answer→
MCQ 2491 MarkBy using which of the following class we can use various static methods provided by Java ?AArray.java.data✓java.util.ArraysCutil.Array.javaDArray.java.fillAnswerCorrect option: B. java.util.ArraysBView full question & answer→
MCQ 2501 MarkHow many bytes are occupied by int[5] ?✓20B10C5D4AnswerCorrect option: A. 20AView full question & answer→