
Java Objects Basics Quiz
Authored by VIKAS BANDARU
Computers
University
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
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
21 questions
Pemodelan & Simulasi Sistem PRAK
Quiz
•
University
15 questions
The Genius of Alan Turing
Quiz
•
10th Grade - University
15 questions
C++ Switch and If Else Statements
Quiz
•
University
20 questions
Data Science (Data Preparation & Visualitation)/Pandas Python
Quiz
•
University
18 questions
Lenguaje de Definición de Datos
Quiz
•
University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
20 questions
CETA'S Quizzard
Quiz
•
University
20 questions
Information Management - QUIZ
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade