Database

Database

12 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following methods is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed?

  1. setLength()
  2. length()
  3. capacity()
  4. startWith()
  5. ensureCapacity()
Question 2 Multiple Choice (Single Answer)

Which of the following methods is used to extract a single character from a string?

  1. getChars()
  2. getBytes()
  3. toCharArray()
  4. charAt()
  5. equalsIgnoreCase()
Question 3 Multiple Choice (Single Answer)

Which of the following thread group methods returns the number of threads in a group, along with the group, for which this thread is a parent?

  1. int activeGroupCount()
  2. final void destroy()
  3. final int getMaxPriority()
  4. int activeCount()
  5. none of these
Question 4 Multiple Choice (Single Answer)

Which of the following package methods returns the name of the invoking package?

  1. String getName()
  2. String getImplementationTitle()
  3. String getImplementationVersion()
  4. String getImplementationVendor()
  5. String getSpecificationTitle()
Question 5 Multiple Choice (Single Answer)

The ___________ method determines whether the string in the question ends with a specified string or not.

  1. endWith()
  2. int hashCode()
  3. arraycopy()
  4. int exitValue()
  5. int hashCode()
Question 6 Multiple Choice (Single Answer)

___________ technique places orders into groups with similar characteristics.

  1. Sequential pattern
  2. Clustering
  3. Prediction
  4. Either 1 or 3
  5. None of these
Question 7 Multiple Choice (Single Answer)

Which of the following techniques involves mapping a set of input values to a single output value?

  1. Association
  2. Sequential pattern
  3. Clustering
  4. Prediction
  5. None of these
Question 8 Multiple Choice (Single Answer)

The _____________ of the server must be such that the server can handle the requirements of an ever-growing amount of data in the data warehouse.

  1. capacity
  2. performance
  3. scalability
  4. either 1 or 2
  5. none of these
Question 9 Multiple Choice (Single Answer)

The _______________ method searches for the first occurrence of a character or substring.

  1. equals()
  2. indexOf()
  3. startWith()
  4. endWith()
  5. lastIndexOf()
Question 10 Multiple Choice (Single Answer)

Which of the following methods displays the call stack for threads?

  1. void checkAccess()
  2. void destroy()
  3. void interrupt()
  4. static void dumpStack()
  5. void run()
Question 11 Multiple Choice (Single Answer)

If we want to convert all the characters in a String object into a character array, we use the _________ method.

  1. toCharArray()
  2. regionMatches()
  3. trim()
  4. replace()
  5. endWith()
Question 12 Multiple Choice (Single Answer)

Which of the following requirements of the database server must be good enough to support the user's performance expectation during analysis?

  1. Performance
  2. Capacity
  3. Scalability
  4. Open interface
  5. None of these