Day 2 - Java Test (class, object, static)

Day 2 - Java Test (class, object, static)

University

50 Qs

quiz-placeholder

Similar activities

Cycle 1 Java Programming Quiz

Cycle 1 Java Programming Quiz

University

50 Qs

Quiz-1(EJAVA)

Quiz-1(EJAVA)

University

50 Qs

JAVA Internship Assessment 2025

JAVA Internship Assessment 2025

University

50 Qs

Data Communication and Network

Data Communication and Network

11th Grade - University

50 Qs

Java Test3

Java Test3

University

50 Qs

Chp. 3 Alice Variables

Chp. 3 Alice Variables

12th Grade - University

46 Qs

Unit 4 - Coding and Logic | End of LO1 and LO2 Ax.

Unit 4 - Coding and Logic | End of LO1 and LO2 Ax.

12th Grade - University

45 Qs

object oriented analysis and design test2

object oriented analysis and design test2

University

50 Qs

Day 2 - Java Test (class, object, static)

Day 2 - Java Test (class, object, static)

Assessment

Quiz

Computers

University

Hard

Created by

Prof. Karale

Used 2+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of an object reference in Java?
0
null
undefined
empty

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to create an object in Java?
create
class
new
object

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does a constructor do in Java?
Destroys an object
Allocates memory
Initializes an object
Calls methods

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to define a class in Java?
define
struct
class
object

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is called automatically when an object is created?
init()
constructor
main()
finalize()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many constructors can a class have?
Only one
Two
Unlimited
None

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?