Java Unit2 MCQ Test

Java Unit2 MCQ Test

University

30 Qs

quiz-placeholder

Similar activities

Javascript Quiz

Javascript Quiz

University

30 Qs

Battle With DSA

Battle With DSA

University

30 Qs

Programming Language Fundamentals (new)

Programming Language Fundamentals (new)

University

30 Qs

Test_Array&String

Test_Array&String

University

30 Qs

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

University

30 Qs

Technical  Quiz

Technical Quiz

University

30 Qs

Java Programming Quiz

Java Programming Quiz

University

25 Qs

programming quiz

programming quiz

University

25 Qs

Java Unit2 MCQ Test

Java Unit2 MCQ Test

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Harish T. Gwalani

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is used to create an object in Java?
new
class
method
object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return type of a constructor?
int
void
class type
no return type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to refer to the current object in Java?
super
self
this
current

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a type of method overloading?
Same method name
Different return type
Different parameter type
Same parameter order

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct declaration of an integer array?
int arr() = new int[5];
int arr[] = new int[5];
arr = int[5];
array int arr[5];

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a constructor do?
Initializes object
Deletes object
Prints object
Copies object

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you differentiate constructors?
Return type
Parameter list
Method name
Access specifier

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?