
Interface + java-visual
Quiz
•
Education
•
Professional Development
•
Practice Problem
•
Hard
ANIL KUMAR
FREE Resource
Enhance your content in a minute
88 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
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
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
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
