Test8

Test8

University

80 Qs

quiz-placeholder

Similar activities

Mock test 2

Mock test 2

University

75 Qs

DTIN Cert Tutorial

DTIN Cert Tutorial

University

80 Qs

Câu hỏi về lập trình web

Câu hỏi về lập trình web

University

82 Qs

Quiz-1-Sec-e

Quiz-1-Sec-e

University

80 Qs

TCS NQT Coding Test-10

TCS NQT Coding Test-10

University

75 Qs

NETW2

NETW2

University

80 Qs

Networking Midterms

Networking Midterms

University

85 Qs

JRRI_Programming_Quiz_EASY_Set1

JRRI_Programming_Quiz_EASY_Set1

University

82 Qs

Test8

Test8

Assessment

Quiz

Computers

University

Hard

Created by

Prof. Harish T. Gwalani

FREE Resource

80 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of an object?
MyClass obj = new MyClass();
obj MyClass = new();
MyClass = obj;
new MyClass obj();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static members are shared among:
All instances
One object only
Local classes
None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword refers to the current object?
super
this
self
instance

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which modifier makes a member private to its class?
public
protected
default
private

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?