JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Java Graphics
«Prev
Next»
Java Language
Packages Interfaces
Understanding Java Packages
Import Package Class
Packaging Java Classes
Java Classes - Quiz
Control Java Class Access
Inside Java Interfaces
Abstract Classes Versus Interfaces
Package Interfaces Conclusion
Java Graphics
Intro Java Graphics
Abstract Window Toolkit
Drawing Graphics Primitives
Drawing Graphical Text
Understanding Java Images
Loading Drawing Images
Draw Java Images
Java Graphics Conclusion
Java Graphics - Quiz
MultiThreaded Programming
Multithreaded Programming Basics
Thread Significance Assessment
Create Use Thread Class
Implement Runnable Interface
Sleeping Threads
Thread Synchronization
wait notify Methods
Multithreaded Programming - Conclusion
Set Daemon Threads
Multithreaded Programming - Quiz
Multithreading Fundamentals - Quiz
Handling Exceptions
Understanding Exceptions
Throwing Exception
Catching Exceptions
Catching Exceptions
Custom Exceptions
finally Clause
Handling Exceptions Conclusion
Java Input Output
Understanding Java Io
Java Streams
InputStreams Read Data
Java Streams Output
Create Stream Objects
Reading Writing Streams
Writing JavaStreams
Working With TextFiles
Input Output Conclusion
Java Graphics Fundamentals - Quiz
Each question is worth one point. Select the best answer for each question.
1.
What method in the Graphics class do you use to draw rectangles?
Please select the best answer.
A.
drawRectangle()
B.
drawRect()
C.
drawSquare()
2.
If you want to display a scanned photograph in a Java applet, what image format is best to use?
Please select the best answer.
A.
JPEG
B.
GIF
C.
Windows bitmap
3.
What method in the Applet class do you use to load an image?
Please select the best answer.
A.
loadImage()
B.
openImage()
C.
getImage()
4.
Which one of the following lines of code properly invokes a method in the Graphics class to draw an image stored in the Image object named img at the position (10, 20)?
Please select the best answer.
A.
drawImage(img, 10, 20);
B.
drawImage(img, 10, 20, this);
C.
paintImage(img, 10, 20);
Your score is 0.0
Submit
Quiz Explanation