JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Java Programming
«Prev
Next»
Java Programming
Java Technology
Useful Technology
Acquiring Java SDK
Java Compiler
Tic Tac Toe Applet
Java Applet Viewer
Java TM Interpreter
Java SDK Conclusion
OO Programming
OO Fundamentals
Understanding Classes
Object Communication
Defining Objects
Adding Behavior Methods
OO Programming Conclusion
OO Programming - Quiz
122
Java Programs
Java Api
Applications Applets
Java main() method
Static Class Member
Command Line Arguments
Building String Characters
Standard IO Communication
Application Construction
122
Program Flow
Conditional Branching
Conditional Ternary Operator
Switch Statement
For Loops
foreach Loop
Nested Loops
while Loops
doWhile Loop
Break Statement
Control Flow Conclusion
Programming Fundamentals
Identifiers, Keywords, Literals
Java Comments
Java Data Types
Storing Data Arrays
Manipulating Text
Evaluating Expressions
Numeric Operators
Boolean Assignment Operators
Compound Operators
Java Language Conclusion
Object Classes
Inheritance Fundamentals
Object Oriented Programming in Java - Quiz
Each question is worth one point. Select the best answer for each question.
1.
What are the two common characteristics shared by all objects?
Please select the best answer.
A.
Methods and interfaces
B.
State and behavior
C.
Methods and messages
2.
What really happens when a message is sent to an object?
Please select the best answer.
A.
A method is called on that object.
B.
A member variable is set for that object.
C.
A text string is assigned to the object.
3.
When a class is based on another class, it inherits:
Please select the best answer.
A.
The data and methods for the class
B.
The methods and messages for the class
C.
Only the data for the class
4.
OOP promotes a way of programming that allows programmers to think in terms of:
Please select the best answer.
A.
Data
B.
Procedures
C.
Objects
5.
What is a template, or specification, that defines a type of object?
Please select the best answer.
A.
A class
B.
A prototype
C.
A framework
6.
What Java keyword do you use to define a class?
Please select the best answer.
A.
define
B.
new
C.
class
Your score is 0.0
Submit
Quiz Explanation