Java Constructors Methods

Java Constructors Methods

University

10 Qs

quiz-placeholder

Similar activities

Java Bootcamp Day 4

Java Bootcamp Day 4

University

15 Qs

Rapid Round 2

Rapid Round 2

University

10 Qs

Milking Minds 2 17-01-24

Milking Minds 2 17-01-24

University

15 Qs

CodeVerse_Quizz_Round_01

CodeVerse_Quizz_Round_01

University

15 Qs

C# Cơ bản

C# Cơ bản

University

15 Qs

Java 6

Java 6

University

10 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

Activity 7: Quiz

Activity 7: Quiz

University

10 Qs

Java Constructors Methods

Java Constructors Methods

Assessment

Quiz

Computers

University

Hard

Created by

A Vijay Kumar

Used 483+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many constructors does this Java class have?

0

1

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the job of a Java class's fields?

Used for communication with an object of this class type

Used for calculations when an object is constructed

Allows for import statements in this class

Store the state of an object of this class type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What of the following is the default value of an instance variable?

null

0

Depends upon the type of variable

Not assigned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we have multiple classes in same java file?

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of Constructors?

int

float

void

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this statement is incorrect?

All object of a class are allotted memory for the all the variables defined in the class

If a function is defined public it can be accessed by object of other class by inheritance.

main() method must be made public

All object of a class are allotted memory for the methods defined in the class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This is an example of a non-return method.

True

False

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?