Question
What kind of object can be used to get text input in a Question 1 options: Text Entry Input Keyboard Question 2 (0.5 points) Aliasing
What kind of object can be used to get text input in a
Question 1 options:
| Text |
| Entry |
| Input |
| Keyboard |
Question 2 (0.5 points)
Aliasing occurs when two variables refer to the same object.
Question 2 options:
True | |
False |
Question 3 (0.5 points)
What command would be used to draw the graphics object
Question 3 options:
| win.draw(shape) |
| win.show(shape) |
| shape.draw() |
| shape.draw(win) |
Question 4 (0.5 points)
Traditionally, the upper-left corner of a graphics window has coordinates (0,0)
Question 4 options:
True | |
False |
Question 5 (0.5 points)
A function that creates a new instance of a class is called an accessor.
Question 5 options:
True | |
False |
Question 6 (0.5 points)
What expression would create a line from (2,3) to (4,5)?
Question 6 options:
| Line(2,3,4,5) |
| Line((2,3), (4,5)) |
| Line(2, 4, 3, 5) |
| Line(Point(2,3), Point(4,5)) |
Question 7 (0.5 points)
Which of the following computes the horizontal distance
Question 7 options:
| abs(p1-p2) |
| p2.getX() - p1.getX() |
| abs(p1.getY() - p2.getY()) |
| abs(p1.getX() - p2.getX()) |
Question 8 (0.5 points)
What command would set the coordinates of win to go from (0,0) in the lower-left corner to (10,10) in the upper-right?
Question 8 options:
| win.setcoords(Point(0,0), Point(10,10)) |
| win.setcoords((0,0), (10,10)) |
| win.setcoords(0, 0, 10, 10) |
| win.setcoords(Point(10,10), Point(0,0)) |
Question 9 (0.5 points)
Instance variables are used to store data inside an object.
Question 9 options:
True | |
False |
Question 10 (0.5 points)
A graphics window always has the title ``Graphics Window.''
Question 10 options:
True | |
False |
Question 11 (0.5 points)
A user interface organized around visual elements and user actions is called a(n)
Question 11 options:
| GUI |
| application |
| windower |
| API |
Question 12 (0.5 points)
What graphics class would be best for drawing a square?
Question 12 options:
| Square |
| Polygon |
| Line |
| Rectangle |
Question 13 (0.5 points)
The statement myShape.move(10,20) moves myShape to the point (10,20).
Question 13 options:
True | |
False |
Question 14 (0.5 points)
The copy method is provided to make a copy of a graphics object.
Question 14 options:
True | |
False |
Question 15 (0.5 points)
A single point on a graphics screen is called a pixel.
Question 15 options:
True | |
False |
Question 16 (0.5 points)
A method that changes the state of an object is called a(n)
Question 16 options:
| stator |
| mutator |
| constructor |
| changer |
Question 17 (1 point)
Using graphics.py allows graphics to be drawn into a Python shell window.
Question 17 options:
True | |
False |
Question 18 (0.5 points)
What color is color_rgb(0,255,255)?
Question 18 options:
| yellow |
| cyan |
| magenta |
| orange |
Question 19 (0.5 points)
A method that returns the value of an object's instance variable is called a(n)
Question 19 options:
| mutator |
| function |
| constructor |
| accessor |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started