Question types

9. WORKING WITH ARRAY AND STRNIG question types

331 questions across 1 question group — pick any mix to generate a Computer paper with step-by-step answer keys.

331
Questions
1
Question groups
5
Question types
Sample Questions

9. WORKING WITH ARRAY AND STRNIG questions

One sample from each question group in this chapter. Select any group above to see the full set with answer keys.

Q 1MCQ1 Mark
Which value is returned if the value of an element given in binary Search () method is not found in an array?
  • -1
  • B
    0
  • C
    1
  • D
    Index Position

Answer: A.

View full solution
Q 2MCQ1 Mark
Which value is returned if the value of an element given in binary Search () method is found in an array?
  • A
    —1
  • B
    0
  • C
    1
  • Index Position

Answer: D.

View full solution
Q 3MCQ1 Mark
Is array name a reference variable referring to memory location where its elements are stored?
  • Yes
  • B
    No
  • C
    Depend on the type of an array
  • D
    Depend on the length of an array

Answer: A.

View full solution
Q 4MCQ1 Mark
Array is treated as an object of the following class.
  • Arrays
  • B
    D
  • C
    1-D
  • D
    Java Arrays

Answer: A.

View full solution
Q 5MCQ1 Mark
By using which of the following array of arrays can we practically get multi- dimensional arrays?
  • 1-D
  • B
    2-D
  • C
    3-D
  • D
    All of these

Answer: A.

View full solution

Generate a 9. WORKING WITH ARRAY AND STRNIG paper free

Pick question groups from the list above, set marks and difficulty, and export a branded PDF with step-by-step answer keys. First 3 chapters free — no signup.

Download App