Type conversion function such as float or safe alternative to eval for getting a number as user input
Anonymous Quiz
82%
✅️
18%
❎️
A method that returns the value of an object's instance variable is called a(n)
Anonymous Quiz
15%
mutator
6%
function
18%
constructor
61%
accessor
What graphics class would be best for drawing a square?
Anonymous Quiz
16%
Square
84%
Rectangle
0%
Polygon
0%
Line
What expression would create a line from (2,3) to (4,5)?
Anonymous Quiz
77%
Line (Point (2,3), Point (4,5))
13%
Line (2, 3, 4, 5)
6%
Line ((2,3), (4,5))
3%
Line (2, 4, 3, 5)
A user interface organized around visual elements and user actions is called a(n)
Anonymous Quiz
91%
GUI
0%
application
9%
windower
0%
API
A method that changes the state of an object is called a(n)
Anonymous Quiz
0%
stator
14%
constructor
10%
changor
76%
mutator
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?
Anonymous Quiz
28%
win.setcoords (Point (0,0), Point (10,10))
52%
win.setcoords (0, 0, 10, 10)
17%
win.setcoords (Point (10,10), Point (0,0))
3%
win.setcoords ((0,0), (10,10))
What command would be used to draw the graphics object shape into the graphics window win?
Anonymous Quiz
3%
win.draw(shape)
87%
shape.draw(win)
6%
shape.draw()
3%
win.show(shape)
Which of the following computes the horizontal distance between points
p1 and p2?
p1 and p2?
Anonymous Quiz
26%
p2.getX() - p1.getX()
60%
abs (p1.getX() - p2.getX())
0%
abs (p1-p2)
14%
abs (p1.getY() - p2.getY())
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
بالتوفيق ليكم في الامتحان غداً السيركت، اسأل الله ان يُنير بصيرتكم و ان يرزقكم الصّواب في الجواب يارب العالمين 💜
❤13💘1
This media is not supported in your browser
VIEW IN TELEGRAM