Java Objects Basics Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
VIKAS BANDARU
Used 11+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In Objects-First learning, what is the blueprint that defines state and behaviour for objects?
Answer explanation
A class defines the fields (state) and methods (behaviour); objects are instances.
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In Circle, which of the following are part of the state?
Answer explanation
State is stored in fields; draw()/moveRight() are behaviours (methods).
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Guess the concept name: “A block of code defined in a class that can make an object act and may change its fields.”
Answer explanation
Behaviours are methods; they can change the object’s state.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Immediately after Circle c = new Circle(); (no other calls), what is c.color?
Answer explanation
The default constructor sets color = "blue".
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After Square s = new Square(); s.moveLeft(); s.moveUp();, what are (xPosition, yPosition)?
Answer explanation
Start (310,120). Left → x=290; Up → y=100.
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which actions directly change state without needing extra information?
Answer explanation
moveRight()/moveDown() have fixed deltas; makeVisible() flips isVisible. Others need parameters.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Guess the meaning: In this chapter’s context, “state change” primarily means…
Answer explanation
State is represented by field values; changing them changes the state.
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
Already have an account?
Similar Resources on Wayground
18 questions
C++ Procedurale Best of
Quiz
•
University
20 questions
Tryout TIK level 6.1
Quiz
•
6th Grade - University
20 questions
UTS - Struktur Data
Quiz
•
University
20 questions
Web Development and Programming
Quiz
•
University
20 questions
ICT QUIZ
Quiz
•
University
15 questions
OS Quiz-1
Quiz
•
University
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
15 questions
C Programming - Unit 1 MCQ
Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
