Presentation is loading. Please wait.

Presentation is loading. Please wait.

Assessment – Java Basics: Part 1

Similar presentations


Presentation on theme: "Assessment – Java Basics: Part 1"— Presentation transcript:

1 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

2 If we do not specify access modifier to any member of class, which of the following is automatically assigned to it? public default protected

3 Java Strings are also objects.
True False

4 What happens with objects which are not referenced?
They are kept in memory They are Garbage Collected They are moved to Secondary memory

5 In Java, String objects are mutable?
True False

6 What is the initial value of any Reference Variable?
1 null

7 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

8 Which of the following initializes an object?
Constructor Garbage Collector Destructor

9 A class is created with which of the following keyword?
struct enum

10 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

11 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

12 The Results


Download ppt "Assessment – Java Basics: Part 1"

Similar presentations


Ads by Google