Test8

Test8

University

80 Qs

quiz-placeholder

Similar activities

UH2 PBO Sem 2 2021/2022 SMKN9 Medan

UH2 PBO Sem 2 2021/2022 SMKN9 Medan

11th Grade - University

75 Qs

Exception Handling Package Interface Test

Exception Handling Package Interface Test

University

81 Qs

CMP128 Java Ch. 11-07-05-04 Exam #2 Study Guide Quiz

CMP128 Java Ch. 11-07-05-04 Exam #2 Study Guide Quiz

University

84 Qs

BDA Test - 1

BDA Test - 1

University

80 Qs

Python Quiz AX-7

Python Quiz AX-7

University

81 Qs

PYTHON CERT REVIEWER

PYTHON CERT REVIEWER

University

75 Qs

IAS 2 FINAL EXAMINATION

IAS 2 FINAL EXAMINATION

University

85 Qs

Midterm Exam (BSIS 2-A)

Midterm Exam (BSIS 2-A)

University

75 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?