"""10 — Answer Keys"""
import sys; sys.path.insert(0, '.')
from _helpers import *

doc = new_doc()
heading(doc, "CEVAP ANAHTARLARI", 14)

subhead(doc, "DENEME 1 — KOLAY")
add_table(doc, ["Soru","Cevap","Açıklama"],
    [["1","C","She → has got (He/She/It + has got)"],
     ["2","A","I → have got (I/You/We/They + have got)"],
     ["3","D","Can you...? yetenek sorusu"],
     ["4","B","Hastanede çalışan, hasta iyileştiren → doctor"],
     ["5","A","185 cm → tall (uzun boylu)"],
     ["6","C","Balık uçamaz → can't fly"],
     ["7","B","Arabası yok → hasn't got (He + hasn't)"],
     ["8","C","Yardımsever → kind"],
     ["9","A","Have you got...? (you → have)"],
     ["10","C","Yangın söndüren → firefighter"],
     ["11","B","Düz değil → curly (kıvırcık)"],
     ["12","D","Can'den sonra yalın fiil: fly (flying/flies ❌)"],
     ["13","A","She → Has she got...?"],
     ["14","C","Şarkıcı iyi şarkı SÖYLER → sing"],
     ["15","B","Yeni insanlarla konuşan → friendly"]]
)

doc.add_paragraph()
subhead(doc, "DENEME 2 — ORTA")
add_table(doc, ["Soru","Cevap","Açıklama"],
    [["1","D","Has he got...? → Yes, he has."],
     ["2","B","parents (çoğul) → have got"],
     ["3","C","Can...? → No, he can't. (3 yaşında, yapamaz)"],
     ["4","A","Hayvanları tedavi eden → vet"],
     ["5","D","10 km koşan → strong (güçlü)"],
     ["6","B","Have they got...? → No, they haven't."],
     ["7","C","Can'den sonra yalın fiil: cook (cooks ❌)"],
     ["8","A","Yeni insanlarla konuşmayan → shy"],
     ["9","C","He is tall and has got dark hair (has = has got)"],
     ["10","B","Restoranda yemek servisi → waiter"],
     ["11","D","Saçı az olan → bald"],
     ["12","C","Can she...? → Yes, she can."],
     ["13","B","Suçlu yakalayan polis → brave (cesur)"],
     ["14","D","Have you got...? → Yes, I have."],
     ["15","A","Uçak uçuran → pilot"]]
)

doc.add_paragraph()
subhead(doc, "DENEME 3 — ZOR")
add_table(doc, ["Soru","Cevap","Açıklama"],
    [["1","A","Is she...? → cevap sahiplik: has got (kalıp çakışması)"],
     ["2","B","Does he work...? → cevap yetenek: can cook"],
     ["3","D","Has...got...? → cevap meslek: is an engineer"],
     ["4","C","She → has / can (can'den sonra yalın: work)"],
     ["5","D","Özne: She / Fiilden sonra nesne: her"],
     ["6","B","80 yaş → can't run / ama can walk"],
     ["7","C","your best friend (tekil) → Has she got...?"],
     ["8","A","your parents (çoğul) → Have they got...?"],
     ["9","D","İtfaiyeci → brave / strong vücut"],
     ["10","C","Gazetede çalışan → journalist / can write"],
     ["11","B","Sıfat + isim: beautiful girl / curly hair"],
     ["12","A","Hiç yemek yapamaz → can't cook"],
     ["13","D","Herkese hediye alan → kind (nazik)"],
     ["14","C","Tembelin zıttı → hardworking (çalışkan)"],
     ["15","A","blonde hair + blue eyes (sıfat tekil, isim çoğul)"]]
)

doc.add_page_break()
heading(doc, "OKUMA PARÇALARI — CEVAP ANAHTARI")
subhead(doc, "Okuma 1 — Kolay (My Friend Tom)")
body(doc, "1.C  2.C  3.C  4.B  5.D")
subhead(doc, "Okuma 2 — Orta (The Yılmaz Family)")
body(doc, "1.B  2.C  3.C  4.C  5.B")
subhead(doc, "Okuma 3 — Zor (People in My Neighbourhood)")
body(doc, "1.C  2.D  3.B  4.C  5.D  6.C")

doc.add_paragraph()
subhead(doc, "Şık Dağılımı Özeti")
add_table(doc, ["Test","A","B","C","D"],
    [["Deneme 1 Kolay","4","4","4","3"],
     ["Deneme 2 Orta","3","4","4","4"],
     ["Deneme 3 Zor","4","3","4","4"],
     ["Toplam (45 soru)","11","11","12","11"]])

doc.save("10_AnswerKeys.docx")
print("✅ 10_AnswerKeys.docx")
