Day 3 - Class Object Static Constructor

Day 3 - Class Object Static Constructor

University

50 Qs

quiz-placeholder

Similar activities

Assignment Quiz

Assignment Quiz

University

47 Qs

Chp. 3 Alice Variables

Chp. 3 Alice Variables

12th Grade - University

46 Qs

C# and DotNet Framework

C# and DotNet Framework

University

50 Qs

Event Driven Handouts 1 & 2

Event Driven Handouts 1 & 2

University

45 Qs

Java Test3

Java Test3

University

50 Qs

Day 4 - Inheritance, super, final, abstract, interface

Day 4 - Inheritance, super, final, abstract, interface

University

50 Qs

112 Review

112 Review

University

45 Qs

PF201: SCCPF2012223

PF201: SCCPF2012223

University

50 Qs

Day 3 - Class Object Static Constructor

Day 3 - Class Object Static Constructor

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Karale

Used 1+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create an object in Java?
object o = new()
new Object();
create object()
Object.create()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to declare a static variable?
const
final
static
global

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the return type of a constructor?
void
int
None
It has no return type

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When is a constructor called?
When object is deleted
When class is loaded
When object is created
After main method

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the name of a constructor?
Any name
Same as class
Object
Init

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many constructors can a class have?
Only one
Two
Any number
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?