MCQ 3011 MarkWhich of the following is treated as an object of Array class in Java?AObject✓ArrayCMethodDClassAnswerCorrect option: B. ArrayBView full question & answer→
MCQ 3021 MarkWhich type of sort will be performed, when we use only array as an argument?APartial arrayBEven elements of arrayCOnly characters of array✓Entire arrayAnswerCorrect option: D. Entire arrayDView full question & answer→
MCQ 3031 MarkWhich statement is used to change value of an array element, like variables ?✓AssignmentBNewCVoidDMain( )AnswerCorrect option: A. AssignmentAView full question & answer→
MCQ 3041 MarkWhich operator is not needed, when an array is initialized while creating ?APlusBVoid✓NewDStaticAnswerCorrect option: C. NewCView full question & answer→
MCQ 3051 MarkWith which values array is initialized, as array is an object ?AClass name✓Default valuesCParameters of bracketsDObject nameAnswerCorrect option: B. Default valuesBView full question & answer→
MCQ 3061 MarkWhich combination is not possible to specify simultaneously, while declaring an array ?ASize of dimensions and square brackets✓Size of dimensions and initial valuesCInitial values and array variableDSize of array and square bracketsAnswerCorrect option: B. Size of dimensions and initial valuesBView full question & answer→
MCQ 3071 MarkWhich of the following are declared as static and can be referred without any object in the class?AObject methodsB{ }CIndex✓Class methodsAnswerCorrect option: D. Class methodsDView full question & answer→
MCQ 3081 MarkWhich of the following contains reference to memory location where the array elements are stored ?ASquare bracketsBDatatypeCMemory location✓Array nameAnswerCorrect option: D. Array nameDView full question & answer→
MCQ 3091 MarkFrom which value Index start?✓$0$B1C2D3AnswerCorrect option: A. $0$AView full question & answer→
MCQ 3101 MarkWhich of the following contains reference to memory location where the array elements are stored?AObject nameBMethod name✓Array nameDData typeAnswerCorrect option: C. Array nameCView full question & answer→
MCQ 3111 MarkWhich of the following is a reference variable?AObject nameBVariable✓Array nameDMethod nameAnswerCorrect option: C. Array nameCView full question & answer→
MCQ 3121 MarkWhich of the following specifies the position of an element in an array ?AArray content✓IndexCReference variableDDatatypeAnswerCorrect option: B. IndexBView full question & answer→
MCQ 3131 MarkHow many bytes are occupied by new int [5]; ?✓20B10C5D4AnswerCorrect option: A. 20AView full question & answer→
MCQ 3141 MarkIn Java how many bytes storage spaces are occupied by integer datatype ?A10B6C2✓4AnswerCorrect option: D. 4DView full question & answer→
MCQ 3151 MarkWhich of the following is/are proper example/s of an array ?Aint marks[ ] = new int[5];Bint[ ] marks = new int[5];✓Both A & BDmarks[ ];AnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 3161 MarkWhich is the proper syntax of declaring an array ?A<data type><array name> [ ];B<data type> [ ] <array name>;✓Both A & BD<array name>AnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 3171 MarkWhat can be declared in place of individual variables like marks1, marks2, marks3, marks 4, marks5?✓marks [5]Bmarks[0-5]Cmarks[1-5]Dmarks[0-4]AnswerCorrect option: A. marks [5]AView full question & answer→
MCQ 3181 MarkWhich of the following can be seen as a collection of one or more scalar variables?AMatrix✓VectorCData typeDObjectAnswerCorrect option: B. VectorBView full question & answer→
MCQ 3191 MarkWhat is array with single dimension known as ?AMatrixB2-DCBoth A & B✓1-DAnswerCorrect option: D. 1-DDView full question & answer→
MCQ 3201 MarkWhich of the following ways are used to create an array ?AUsing new operator and specifying sizeBDirectly initializing the content of array✓Both A & BDDeclare an array objectAnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 3211 MarkHow many steps are there for creating an array ?A1✓2C3D4AnswerCorrect option: B. 2BView full question & answer→
MCQ 3221 MarkWhich of the following is used to identify each element of Array variable ?ACharacterBNumber✓Index positionDStringAnswerCorrect option: C. Index positionCView full question & answer→
MCQ 3231 MarkIn which manner, all the elements of an array are stored in memory storage space ?ARandomBSeparated✓ContiguousDAny of A, B & CAnswerCorrect option: C. ContiguousCView full question & answer→
MCQ 3241 MarkWhich kind of information can be represented by 2 - D data structure ?ACharacters & NumbersBVectorsCObjects✓TablesAnswerCorrect option: D. TablesDView full question & answer→
MCQ 3251 MarkWhich kind of information can be stored in 1- D?ACharactersBNumbers✓Both A & BDMatrixAnswerCorrect option: C. Both A & BCView full question & answer→
MCQ 3261 MarkWhich of the following is a one dimensional data structure ?AMatrix✓VectorCClassDMethodAnswerCorrect option: B. VectorBView full question & answer→
MCQ 3271 MarkWhich of the following are useful to represent vector, matrix and other multi- dimensional data?AVectors✓ArraysCMatrixDObjectsAnswerCorrect option: B. ArraysBView full question & answer→
MCQ 3281 MarkWhich of the following is a variable representing a collection of homogeneous type of elements ?AMethodBObject✓ArrayDClassAnswerCorrect option: C. ArrayCView full question & answer→
MCQ 3291 MarkWhat does 'length' refer to for an object of String class ?Aattribute✓methodCclass variableDclass nameAnswerCorrect option: B. methodBView full question & answer→
MCQ 3301 MarkWhen an array sales [5] [12] is declared without specifying initial values, what is the initial value of sales [0] [0] ?✓$0$Bdefault valueCcompilation errorD60AnswerCorrect option: A. $0$AView full question & answer→
MCQ 3311 MarkWhat will expression sales.length return for an array sales [5] [12] ?A5B12✓60D120AnswerCorrect option: C. 60CView full question & answer→