1.[2점] 다중 상속 시, super()를 사용하면 모든 부모 클래스에 대해서 초기화를 할 수 있다
X. 다중상속을 받은 클래스에서 super()를 통해 부모 클래스로 접근하면, 순서상 맨 앞 클래스로 접근.

2.[2점] - 상속 내용
class Person:
    def greeting(self,name):
        Person.name=name
        print('안녕하세요. 저는 {}입니다.'.format(#1))
class Student(Person):
    def greeting(self,name,schoolname):
        Person.greeting(self,name)
        print('저는 {} 학생입니다.'.format(#2))

A=Student()
A.greeting('홍길동','세종대학교')

위 코드를 완성시켜
**안녕하세요. 저는 홍길동입니다.
저는 세종대학교 학생입니다.**
이라는 출력을 얻고 싶으면 
#1=Person.name
#2=Person.schoolname 을 입력해 코드를 완성시키면 된다

x.
#1 = Person.name
#2 = schoolname
3.[2점]
class unit:
  def __init__(self,name,subject, student_ID):
    self.name = name
    self.subject = subject
    self.student_ID = student_ID
    print("%s: %s %d"%(self.name,subject, student_ID))

student = unit("세종이","SAI") 넣으면 세종이:SAI 로 출력된다.

X. name, subject, student_ID 모두 입력하지 않았기 때문
4.[2점]강의 내용 중
class Unit:
   def __init__(self, name, hp):
     self.name=name
     self.hp= hp
 class AttackUnit(Unit):
   def __init__(self, name, hp, damage):
      Unit.__init__(self, name, hp)
     self.damage=damage
      print("{0}유닛이 생성 되었습니다. ".format(self.name))
     print("체력: {0}, 공격력 {1}".format(self.hp, self.damage))

   def attack(self, location):
      print("{0}:{1} 방향으로 적군을 공격 합니다. [공격력 {2}]".format(name, location, damage)) 
에서 틀린 곳 두곳을 찾아라

| 답안 |
attack 함수에서 
print("{0}:{1} 방향으로 적군을 공격 합니다. [공격력 {2}]".format(self.name, location, self.damage)) 

5.[2점]
class unit:
def _init_ (self, name, year, location): ~
def money(self, dollar): ~
def job(self, year): ~
선언후 변수 a에다가 a.money(5000)을 하고 print("%d" %a.money)하면 실행이 된다. 
O