Test 1 (class,object,constructor,this)

Test 1 (class,object,constructor,this)

University

50 Qs

quiz-placeholder

Similar activities

AWD - Prelim Exam

AWD - Prelim Exam

University

49 Qs

Java Programming Quiz

Java Programming Quiz

University

50 Qs

Visual basic Quiz PGDCA

Visual basic Quiz PGDCA

University

50 Qs

MIDTERM ITC-103

MIDTERM ITC-103

University

50 Qs

EPA-11-DEC-2021 On Java

EPA-11-DEC-2021 On Java

University

50 Qs

Java Test4

Java Test4

University

50 Qs

VB.NET BASIC QUIZ

VB.NET BASIC QUIZ

University

50 Qs

Programming

Programming

12th Grade - University

45 Qs

Test 1 (class,object,constructor,this)

Test 1 (class,object,constructor,this)

Assessment

Quiz

Computers

University

Hard

Created by

Prof. Wadhwani

Used 4+ 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?