• 1. 
    Is String a primitive data type?

  • Yes
  • No
  • Both
  • 2. 
    Which of the following are good examples of things to store as arrays or lists? I – A to-do list II – A grocery list III – A ball in a game of breakout IV – A list of balls in a game of breakout V – A loop counter variable

  • II only
  • III and V
  • I, II, and IV
  • I, II, III, IV, and V
  • 3. 
    What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };

  • 1
  • 5
  • 6
  • 12
  • 4. 
    What is the name of the company that developed Java?

  • Sun Microsystems
  • IBM
  • The Green Team
  • Microsoft
  • 5. 
    Which of the following is FALSE about arrays on Java

  • A java array is always an object
  • Length of array can be changed after creation of array
  • Arrays in Java are always allocated on heap
  • 6. 
    Which search algorithm is the easiest to understand?

  • Binary
  • Sequential
  • 7. 
    Which feature makes it possible to write programs that can perform many tasks simultaneously.

  • Interpreted
  • Multithreaded
  • Efficient
  • Multi-purpose
  • 8. 
    Find the outputclass Test { public static void main(String args[]) { int arr[2]; System.out.println(arr[0]); System.out.println(arr[1]); }}

  • Compile error
  • Exception
  • Garbage ValueGarbage Value
  • 00
  • 9. 
    It is designed to adapt to an evolving environment.

  • Secure
  • Integrated
  • High-Performance
  • Dynamic
  • 10. 
    Which feature enables Java to develop virus-free, tamper-free systems?

  • Secure
  • Interpreted
  • Encrypted
  • Dynamic
  • 11. 
    Does a programmer always know how long an array will be when the program is being written?

  • Yes---the program will not compile without the length being declared.
  • No---the array object is created when the program is running, and the length might change from run to run.
  • Yes---otherwise the program will not run correctly.
  • No---arrays can grow to whatever length is needed.
  • 12. 
    Java makes an effort to eliminate error-prone situations by emphasizing mainly on compile time error checking and runtime checking.

  • Efficient
  • Dynamic
  • Robust
  • Secure
  • 13. 
    Java is designed for the distributed environment of the internet.

  • Dynamic
  • Distributed
  • Simple
  • Portable
  • 14. 
    Output of following Java program?class Test{ public static void main (String[] args) { int arr1[] = {1, 2, 3}; int arr2[] = {1, 2, 3}; if (arr1 == arr2) System.out.println("Same"); else System.out.println("Not same"); }}

  • Same
  • Not same
  • Error
  • 15. 
    Find the outputclass Test {public static void main(String args[]) {int arr [ ] = new int[2];System.out.println(arr[0]);System.out.println(arr[1]);}}

  • Compile error
  • Exception
  • Garbage ValueGarbage Value
  • 00
  • 16. 
    On what year was Oak renamed as Java

  • 1998
  • 1999
  • 1996
  • 1995
  • 17. 
    Which feature is characterized by Java having no implementation-dependent aspects on any platform?

  • Robust
  • Distributed
  • Multithreaded
  • Portable
Report Question
warning
access_time
  Time