Question 17 Assume that the following code has been executed (same for Questions
ID: 3847411 • Letter: Q
Question
Question 17
Assume that the following code has been executed (same for Questions 17 thru 20):
What value is returned by the following method call?
places.size()
Question 18
Assume that the following code has been executed (same for Questions 17 thru 20):
What value is returned by the following method call?
places.get( "south" )
Question 19
Assume that the following code has been executed (same for Questions 17 thru 20):
What value is returned by the following method call?
places.get( "east" )
Question 20
Assume that the following code has been executed (same for Questions 17 thru 20):
What value is returned by the following method call?
places.get( "north" )
Explanation / Answer
Question 17
Ans: 4
places.size() returns valuye 4.
Question 18:
Ans: A point object located at (0.0, -100.0)
places.get( "south" ) method returns point object located at (0.0, -100.0).
Question 19:
Ans: a Point object located at (100.0, 0.0)
Question 20:
Ans: places.get( "north" ) returns a Point object located at (0.0, 100.0)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.