Test 1 (class,object,constructor,this)

Test 1 (class,object,constructor,this)

University

50 Qs

quiz-placeholder

Similar activities

Java Quiz OOP

Java Quiz OOP

University

45 Qs

OOP Quiz

OOP Quiz

University

50 Qs

Quiz 1 PBO

Quiz 1 PBO

University

48 Qs

Quiz PBO Pra UAS

Quiz PBO Pra UAS

University

50 Qs

XIRPL2_PASQUIZZ

XIRPL2_PASQUIZZ

1st Grade - Professional Development

50 Qs

JAVA REVIEW QUIZ

JAVA REVIEW QUIZ

University

48 Qs

Recursion in C/Java/Python

Recursion in C/Java/Python

University

50 Qs

Java Exception Handling and String Handling

Java Exception Handling and String Handling

University

49 Qs

Test 1 (class,object,constructor,this)

Test 1 (class,object,constructor,this)

Assessment

Quiz

Computers

University

Hard

Created by

Prof. Wadhwani

Used 5+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a class in Java?
A variable
A method
A blueprint of objects
An object

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an object in Java?
A variable
An instance of a class
A method
A loop

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used to create an object in Java?
new
create
alloc
malloc

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is a correct way to create an object?
Student s = Student();
Student s = new Student;
Student s = new Student();
Student s();

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can a class have multiple objects?
No
Yes
Only one
Depends on JVM

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the `main` method represent?
A class
An object
A constructor
An entry point of the program

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the access modifier commonly used for class variables?
public
private
protected
all of the above

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?