Asked by carolette mckenzie on Jun 05, 2024
Verified
Which of the following sets the window width to 100 pixels and the height to 200 pixels?
A) setSize(100, 200) ;
B) setSize(200, 100) ;
C) setDims(100, 200) ;
D) set(200, 100) ;
Pixels
The smallest units of a digital image, representing a single point of color.
Window Width
Window width refers to the horizontal dimension of a window or display screen, often expressed in pixels.
- Understand the primary features and approaches involved in Java window creation.
Verified Answer
ZK
Zybrea KnightJun 09, 2024
Final Answer :
A
Explanation :
The method "setSize" specifically sets the width and height of the window, and the arguments passed in are in the correct order for setting the width to 100 and height to 200. The other choices either have the dimensions in the wrong order or use a method that does not exist (setDims or set).
Learning Objectives
- Understand the primary features and approaches involved in Java window creation.