Multiple Choice
Case Study 2:
1. def createSSandAnimate() :
2. ss = SolarSystem(2, 2)
3.
4. sun = Sun("SUN", 5000, 1000, 5800)
5. ss.addSun(sun)
6.
7. m = Planet("MERCURY", 19.5, 1000, .25, 0, 2, "blue")
8. ss.addPlanet(m)
9.
10. m = Planet("EARTH", 47.5, 5000, 0.3, 0, 2.0, "green")
11. ss.addPlanet(m)
12.
13. m = Planet("MARS", 50, 9000, 0.5, 0, 1.63, "red")
14. ss.addPlanet(m)
15.
16. m = Planet("JUPITER", 100, 49000, 0.7, 0, 1, "black")
17. ss.addPlanet(m)
18.
19. numTimePeriods = 2000
20. for aMove in range(numTimePeriods) :
21. ss.movePlanets()
22.
23. ss.freeze()
24.
-Refer to the session in the accompanying Case Study 2. Which line(s) perform the actual work of the animation?
A) 4-5
B) 10-11
C) 16-17
D) 19-21
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Provide a high-level overview of the steps
Q18: What are some of the primitive and
Q19: Every Python object is an instance of
Q20: In a Python class, _ refers to
Q21: Match each definition with its term.<br>-Refers to
Q23: Match each definition with its term.<br>-Describes a
Q24: Algorithms describe the solution to a problem
Q25: Each object from a particular class has
Q26: Preceding an instance variable name by two
Q27: Which of the following is one of