Interface + java-visual

Interface + java-visual

Professional Development

88 Qs

quiz-placeholder

Similar activities

Web Editing

Web Editing

Professional Development

87 Qs

EBC Election and Boundaries Commission Revision Quiz.

EBC Election and Boundaries Commission Revision Quiz.

Professional Development

92 Qs

UNIT - 2 NUMBER SYSTEM

UNIT - 2 NUMBER SYSTEM

Professional Development

92 Qs

Pre-starters (final test) 80

Pre-starters (final test) 80

Professional Development

85 Qs

Marshall Recreation Quiz

Marshall Recreation Quiz

Professional Development

83 Qs

Modulo 1 - Introduzione, Domesticazione e Cinognostica

Modulo 1 - Introduzione, Domesticazione e Cinognostica

Professional Development

91 Qs

UB 23-24

UB 23-24

Professional Development

83 Qs

DII N1D

DII N1D

University - Professional Development

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