Java Quiz 1. An object that has more than one form is referred to as Abstract class Inheritance Interface Polymorphism None 2. If you want your condition to depend upon 2 conditions both being true, what is the proper notation to put between the two Boolean statements | || & && None 3. Can you save the java source file without any name (say ".java")? Yes No None 4. Java runs on which platform Windows Unix/Linux Mac All of the above None 5. Java keywords are written in lowercase as well as upper case True False None 6. Data hiding is also known as Encapsulation Inheritance Data binding None 7. What are the two common characteristics shared by all objects in Java? State and behavior Methods and interfaces Class and Methods Methods and messages None 8. What is the default value of the local variables? 0 null no default value depends on the data type None 9. Annonymous object can be used at the time of object creation only True False None 10. The class which inherits the properties of other is known asi. Super classii. Sub classiii. Derived class ii & iii i & ii i & iii None 11. Which of the following is not a Java keyword try static new integer None 12. An object which has no referrence is known as annonymous object True False None 13. An object could be an algorithm a data container a program anything None 14. Can you compare between the boolean and int primitive data types? Yes No None 15. Which of the following is not a part of OOPs Type checking Polymorphism Multitasking Information hiding All of the above None 16. Runtime polymorphism can be achieved by data members Yes No None 17. When a class is based on another class, it inherits Data Methods Data and methods None of the above None 18. What is the size of a char in Java 4 bits 6 bits 8 bits 16 bits None 19. Which statement is correct The JRE is smaller than the JDK so it needs less Disk space. The JRE is smaller than the JDK so it needs more Disk space. The JDK needs less Disk space as it doesn't contains the JRE. None of the above None 20. Static methods cannot be accessed directly from the class level Yes No None 21. What is the correct syntax for java main method? public static Void main (string [] args) public static void main (string [] args) public static void main (String [] args) public static void main (String [] Args) None 22. The class whose properties are inherited are is known as i. Sub classii. Super classiii. Base class ii & iii i & iii i & ii None of the above None 23. Can we have any number of classes in a Java source file Yes No None 24. Choose the appropriate data type for this value 9.9 String int double boolean None 25. Who is known as the founder of Java James Gosling Guido Van Rossum Doug Cutting None Time's up