Java Unit2 MCQ Test

Java Unit2 MCQ Test

University

•

30 Qs

quiz-placeholder

Similar activities

Robot Drive system and End effectors

Robot Drive system and End effectors

University

•

25 Qs

Java Quiz

Java Quiz

University

•

25 Qs

AI 900 - pt 5

AI 900 - pt 5

University

•

25 Qs

Java Review

Java Review

9th Grade - University

•

25 Qs

UAS DASPRO

UAS DASPRO

University

•

25 Qs

C Programming Concepts

C Programming Concepts

University

•

25 Qs

Round -1

Round -1

University

•

25 Qs

Final de Programación

Final de Programación

University

•

25 Qs

Java Unit2 MCQ Test

Java Unit2 MCQ Test

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Medium

Created by

Prof. Harish T. Gwalani

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?