Interface + java-visual

Interface + java-visual

Professional Development

88 Qs

quiz-placeholder

Similar activities

ÔN TẬP CK2

ÔN TẬP CK2

Professional Development

87 Qs

Learning: Introduction and Different Conceptions

Learning: Introduction and Different Conceptions

Professional Development

83 Qs

General English Quiz

General English Quiz

Professional Development

93 Qs

Philippine History #drills1

Philippine History #drills1

Professional Development

88 Qs

Emprendimiento, Innovación y Creatividad Digital

Emprendimiento, Innovación y Creatividad Digital

Professional Development

90 Qs

Latihan TKB Bank Mandiri FHCI BUMN by Abdul Zaki Asy, S.M

Latihan TKB Bank Mandiri FHCI BUMN by Abdul Zaki Asy, S.M

Professional Development

90 Qs

FIRE CADET THEORY PRACTICE (Mixed chapters)

FIRE CADET THEORY PRACTICE (Mixed chapters)

10th Grade - Professional Development

86 Qs

Science prin level 2 mock test  Quiz

Science prin level 2 mock test Quiz

Professional Development

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