Interface + java-visual

Interface + java-visual

Professional Development

88 Qs

quiz-placeholder

Similar activities

Simulasi UKOM DIII Keperawatan

Simulasi UKOM DIII Keperawatan

University - Professional Development

90 Qs

Tahap 2 P3K  Teknis Rajin Belajar 2025 Latsol B

Tahap 2 P3K Teknis Rajin Belajar 2025 Latsol B

Professional Development

90 Qs

Packages + java-visual

Packages + java-visual

Professional Development

84 Qs

QUIZZ on Unit 2

QUIZZ on Unit 2

Professional Development

86 Qs

Pre-starters (final test) 80

Pre-starters (final test) 80

Professional Development

85 Qs

PAF periode 11

PAF periode 11

Professional Development

83 Qs

Psicologia dello sviluppo, dell'educazione e dell'istruzione

Psicologia dello sviluppo, dell'educazione e dell'istruzione

Professional Development

90 Qs

Interface + java-visual

Interface + java-visual

Assessment

Quiz

Education

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

88 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the color of the water bottle in the image?

Red

Blue

Green

Yellow

Answer explanation

The answer can be found in the image, where the code for the water bottle interface defines the color as "Blue". The code is also visible in the image.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the name of the remote resource defined in the image?

PetStore

Pet

CreatePet

IdNotFound

Answer explanation

The answer can be found in the image, where the code defines a remote resource called "PetStore". The code is also visible in the image.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the program?

2000

Have a good day

Static method

None of the above

Answer explanation

The answer can be found in the image, where the code defines a variable called BONUS that is initialized to 2000. The code is also visible in the image.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the purpose of the CallBackInterface interface?

To allow the WorkerClass to notify the MainActivity when it has finished its task.

To allow the MainActivity to control the WorkerClass's behavior.

To allow the WorkerClass to access the MainActivity's data.

To allow the MainActivity to access the WorkerClass's methods.

Answer explanation

The answer is 1 because the CallBackInterface interface defines a single method, callback(), which is called by the WorkerClass when it has finished its task. The MainActivity implements the CallBackInterface interface, so it can receive the notification from the WorkerClass.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the displayInfo() method?

Person Name: JOHN, Person Age: 32

Person Name: JOHN, Person Age: 21

Person Name: InterfaceExamples, Person Age: 32

Person Name: InterfaceExamples, Person Age: 21

Answer explanation

The answer is 1 because the displayInfo() method prints the PersonName and PersonAge variables, which are both initialized to JOHN and 32 in the InterfaceExamples class.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the HTTP method used to add a new pet to the store?

GET

POST

PUT

DELETE

Answer explanation

The answer is 2 because the postPet() method is annotated with the @RestMethod(method = "POST") annotation. This annotation indicates that the postPet() method uses the POST HTTP method.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following classes inherits from the Movable interface?

MovablePoint

MovableCircle

Both MovablePoint and MovableCircle

Neither MovablePoint nor MovableCircle

Answer explanation

The answer is 3 because both the MovablePoint and MovableCircle classes inherit from the Movable interface. The Movable interface defines the moveUp(), moveDown(), moveLeft(), and moveRight() methods, which are implemented by both the MovablePoint and MovableCircle classes.

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?