Assessment – Java Basics: Part 1 The quiz contains 10 questions. You will have one attempt to answer each question. You can exit the quiz at any time. If you exit the quiz without completing all 10 questions, on return you will have to start the quiz from the beginning. Scoring 80% or higher means you have understood the topic well. Start www.prolearninghub.com
If we do not specify access modifier to any member of class, which of the following is automatically assigned to it? public default protected www.prolearninghub.com
Java Strings are also objects. True False www.prolearninghub.com
What happens with objects which are not referenced? They are kept in memory They are Garbage Collected They are moved to Secondary memory www.prolearninghub.com
In Java, String objects are mutable? True False www.prolearninghub.com
What is the initial value of any Reference Variable? 1 null www.prolearninghub.com
Identify the incorrect statement regarding static method Accessed using class name.method name Is not a class method Creation of instance not necessary for using static method www.prolearninghub.com
Which of the following initializes an object? Constructor Garbage Collector Destructor www.prolearninghub.com
A class is created with which of the following keyword? struct enum www.prolearninghub.com
A programmer want to print number of command line arguments passed A programmer want to print number of command line arguments passed. How he will achieve this? Using length property of array Using length method of array Using len method of array www.prolearninghub.com
Identify the incorrect statement regarding static variable Belong to a Class A single copy to be shared by all instances of the class Creation of instance is necessary for using static variables www.prolearninghub.com
The Results