from common import *
def mk(sub,seed): return Bank(sub,seed=seed)
# ---------- LITERATURE ----------
L=mk("literature_in_english",151)
L.ptext("""Things Fall Apart|Chinua Achebe
Death and the King's Horseman|Wole Soyinka
The Lion and the Jewel|Wole Soyinka
Weep Not, Child|Ngugi wa Thiong'o
The Joys of Motherhood|Buchi Emecheta
Efuru|Flora Nwapa
The Gods Are Not to Blame|Ola Rotimi
Hamlet|William Shakespeare
Macbeth|William Shakespeare
Romeo and Juliet|William Shakespeare
Othello|William Shakespeare
Julius Caesar|William Shakespeare
Oliver Twist|Charles Dickens
Animal Farm|George Orwell
Gulliver's Travels|Jonathan Swift
Paradise Lost|John Milton
Pride and Prejudice|Jane Austen
Arrow of God|Chinua Achebe
No Longer at Ease|Chinua Achebe
A Man of the People|Chinua Achebe
So Long a Letter|Mariama Bâ
Purple Hibiscus|Chimamanda Ngozi Adichie
Half of a Yellow Sun|Chimamanda Ngozi Adichie
The River Between|Ngugi wa Thiong'o
The Beautiful Ones Are Not Yet Born|Ayi Kwei Armah
Mine Boy|Peter Abrahams
The Palm-Wine Drinkard|Amos Tutuola
Jagua Nana|Cyprian Ekwensi
The Trials of Brother Jero|Wole Soyinka
The Raft|J. P. Clark-Bekederemo""",qfwd="Who wrote '{k}'?",qrev="Which of the following works was written by {v}?",topic="Authors and Works")
L.ptext("""Simile|A comparison using 'like' or 'as'
Metaphor|A direct comparison without 'like' or 'as'
Personification|Giving human attributes to non-human things
Hyperbole|Deliberate exaggeration for effect
Irony|Expressing the opposite of what is meant
Alliteration|Repetition of initial consonant sounds
Onomatopoeia|Words whose sound suggests their meaning
Oxymoron|Combination of contradictory terms
Euphemism|Using mild words for unpleasant ideas
Pun|A play on words
Paradox|A seemingly self-contradictory statement that reveals truth
Apostrophe|Direct address to an absent person or object
Soliloquy|A character speaking thoughts aloud while alone on stage
Monologue|A long speech by one character to others
Protagonist|The main character of a work
Antagonist|The character who opposes the protagonist
Tragedy|A serious drama with a sorrowful ending
Comedy|A drama with a happy ending
Elegy|A poem of mourning for the dead
Ode|A lyric poem praising a person or thing
Sonnet|A 14-line poem
Ballad|A narrative poem often meant to be sung
Stanza|A group of lines in a poem
Couplet|Two consecutive rhyming lines
Flashback|A scene that returns to an earlier time
Foreshadowing|Hints about events to come
Setting|The time and place of a story
Plot|The sequence of events in a story
Theme|The central idea of a work
Dramatic irony|The audience knows more than the characters""",qfwd="The literary term for '{v}' is",qrev=None,topic="Literary Terms") if False else None
L.pairs([tuple(x.split("|")) for x in """Simile|A comparison using 'like' or 'as'
Metaphor|A direct comparison without 'like' or 'as'
Personification|Giving human attributes to non-human things
Hyperbole|Deliberate exaggeration for effect
Irony|Expressing the opposite of what is meant
Alliteration|Repetition of initial consonant sounds
Onomatopoeia|Words whose sound suggests their meaning
Oxymoron|Combination of contradictory terms
Euphemism|Using mild words for unpleasant ideas
Paradox|A seemingly self-contradictory statement that reveals truth
Apostrophe|Direct address to an absent person or object
Soliloquy|A character speaking thoughts aloud while alone on stage
Protagonist|The main character of a work
Antagonist|The character who opposes the protagonist
Tragedy|A serious drama with a sorrowful ending
Comedy|A drama with a happy ending
Elegy|A poem of mourning for the dead
Ode|A lyric poem praising a person or thing
Sonnet|A 14-line poem
Ballad|A narrative poem often meant to be sung
Stanza|A group of lines in a poem
Couplet|Two consecutive rhyming lines
Flashback|A scene that returns to an earlier time
Foreshadowing|Hints about events to come
Setting|The time and place of a story
Plot|The sequence of events in a story
Theme|The central idea of a work""".splitlines()],qrev="The literary term for '{v}' is",qfwd="Which of these best defines {k}?",topic="Literary Terms")
L.qa("""The three main genres of literature are|Prose, poetry and drama|Novel, essay and letter|Tragedy, comedy and epic|Fiction, history and science
A play is meant to be|Performed on stage|Sung only|Read silently only|Painted
A book written in prose is usually|A novel|A sonnet|An ode|A couplet
Poetry that tells a story is|Narrative poetry|Lyric poetry|Dramatic monologue|Elegy
A person who narrates a story is the|Narrator|Protagonist|Playwright|Critic
The point at which the conflict in a plot reaches its peak is the|Climax|Exposition|Resolution|Prologue
The opening part of a play which sets the scene is the|Exposition|Climax|Denouement|Epilogue
The final unravelling of a plot is the|Denouement|Exposition|Rising action|Prologue
A poem of fourteen lines is a|Sonnet|Ballad|Limerick|Haiku
The repetition of vowel sounds in nearby words is|Assonance|Alliteration|Consonance|Rhyme
Shakespeare's play about a Danish prince is|Hamlet|Macbeth|Othello|King Lear
The protagonist of 'Things Fall Apart' is|Okonkwo|Obierika|Ezeudu|Nwoye
In 'Things Fall Apart', Okonkwo's village is|Umuofia|Mbanta|Abame|Iguedo
In 'Things Fall Apart', Okonkwo's son who joined the Christians is|Nwoye|Ikemefuna|Obiageli|Ezinma
In 'The Lion and the Jewel', the Bale of Ilunjinle is|Baroka|Lakunle|Sidi|Sadiku
In 'The Lion and the Jewel', the jewel is|Sidi|Sadiku|Lakunle|Baroka
In Shakespeare's 'Macbeth', Macbeth is persuaded to kill Duncan by|Lady Macbeth|The Porter|Banquo|Macduff
The first line of a poem's stanza rhymes ABAB. This pattern is called|Alternate rhyme|Couplet rhyme|Blank verse|Free verse
Verse without rhyme but with regular metre is|Blank verse|Free verse|Couplet|Limerick""",topic="Literature in English")
print("literature_in_english",L.save())

# ---------- CRS ----------
Cr=mk("christian_religious_studies",161)
Cr.ptext("""Noah|Built the ark and survived the flood
Abraham|Father of faith who was called to leave Ur
Isaac|The son promised to Abraham and Sarah
Jacob|Later renamed Israel and father of twelve sons
Joseph|Sold into Egypt by his brothers
Moses|Led the Israelites out of Egypt
Joshua|Led the Israelites into Canaan
Samuel|Anointed Saul and David as kings
David|Killed Goliath and became king of Israel
Solomon|Built the temple in Jerusalem
Elijah|Challenged the prophets of Baal on Mount Carmel
Daniel|Was thrown into the lions' den
Jonah|Was swallowed by a great fish
Esther|Saved the Jews from Haman's plot
Job|Suffered but remained faithful to God
Paul|Converted on the road to Damascus
Peter|Denied Jesus three times
Judas Iscariot|Betrayed Jesus for thirty pieces of silver
Zacchaeus|A tax collector who climbed a sycamore tree to see Jesus
Nicodemus|A Pharisee who visited Jesus by night
Stephen|The first Christian martyr
Barnabas|Called the 'son of encouragement'
Timothy|Paul's young companion to whom two epistles were written
Lazarus|Raised from the dead by Jesus in Bethany
Cornelius|A Roman centurion converted through Peter's visit
Lydia|A seller of purple cloth who believed at Philippi""",qfwd="{k} is remembered in the Bible as the one who",qrev="Which biblical character is described thus: {v}?",topic="Bible Characters")
Cr.ptext("""Love|First fruit of the Spirit listed in Galatians 5
Joy|A fruit of the Spirit
Peace|A fruit of the Spirit
Patience|A fruit of the Spirit (also called longsuffering)
Self-control|The last fruit of the Spirit listed in Galatians 5""",qfwd="Which of these is described as: {v}?",qrev=None) if False else None
Cr.qa("""The first book of the Bible is|Genesis|Exodus|Matthew|Psalms
The last book of the Bible is|Revelation|Jude|Malachi|Acts
The first four books of the New Testament are called|The Gospels|The Epistles|The Pentateuch|The Prophets
The first five books of the Old Testament are the|Pentateuch|Gospels|Epistles|Minor Prophets
Jesus was born in|Bethlehem|Nazareth|Jerusalem|Capernaum
Jesus was baptised by|John the Baptist|Peter|Paul|Andrew
The number of disciples chosen by Jesus was|Twelve|Seven|Ten|Seventy
The Sermon on the Mount is found in the Gospel of|Matthew|Mark|John|Acts
The Ten Commandments were given to Moses on Mount|Sinai|Carmel|Zion|Olives
The first of the Ten Commandments is|You shall have no other gods before me|Do not steal|Honour your father and mother|Do not kill
God created man on the|Sixth day|First day|Third day|Seventh day
Who was the first man created by God?|Adam|Abel|Seth|Cain
The first murder in the Bible was committed by|Cain|Abel|Lamech|Esau
The Tower of Babel story teaches about|Human pride and confusion of languages|Obedience|Prayer|Healing
Jesus fed five thousand people with|Five loaves and two fish|Seven loaves|Two loaves and five fish|Twelve fish
The Holy Spirit descended on the disciples on the day of|Pentecost|Passover|Tabernacles|Atonement
The book that records the early church after Jesus' ascension is|Acts of the Apostles|Romans|Revelation|Hebrews
The Good Samaritan parable teaches|Love for one's neighbour|Fasting|Tithing|Baptism
The Lord's Prayer begins with|Our Father who art in heaven|Hail Mary|Blessed are the meek|Love your enemies
The first miracle of Jesus was at|Cana in Galilee|Bethany|Jericho|Capernaum
Which disciple doubted the resurrection of Jesus until he saw the wounds?|Thomas|Peter|Andrew|Philip
The prodigal son returned home to his|Father|Brother|Master|Uncle
Who succeeded Moses as leader of Israel?|Joshua|Aaron|Caleb|Samuel
Which king of Israel committed adultery with Bathsheba?|David|Saul|Solomon|Ahab
The Israelites crossed the|Red Sea|Dead Sea|Mediterranean Sea|Sea of Galilee""",topic="Christian Religious Studies")
print("christian_religious_studies",Cr.save())

# ---------- ISLAMIC STUDIES ----------
Is=mk("islamic_studies",171)
Is.qa("""The number of pillars of Islam is|Five|Four|Six|Seven
The Islamic declaration of faith is the|Shahadah|Salat|Zakat|Sawm
Prayers performed five times daily are called|Salat|Zakat|Sawm|Hajj
Compulsory almsgiving in Islam is|Zakat|Sadaqah|Hajj|Sawm
Fasting in the month of Ramadan is|Sawm|Salat|Zakat|Hajj
The pilgrimage to Makkah is|Hajj|Umrah|Zakat|Sawm
The Holy Qur'an was first revealed to Prophet Muhammad (SAW) in the cave of|Hira|Thawr|Uhud|Safa
The first revealed chapter (verses) of the Qur'an was|Surah Al-Alaq|Surah Al-Fatiha|Surah Al-Baqarah|Surah Al-Ikhlas
The Qur'an contains|114 chapters|100 chapters|120 chapters|99 chapters
The first chapter of the Qur'an is|Al-Fatiha|Al-Baqarah|Al-Ikhlas|An-Nas
The Prophet's migration from Makkah to Madinah is the|Hijrah|Isra|Mi'raj|Jihad
The Islamic calendar begins from the year of the|Hijrah|Birth of the Prophet|Revelation|Conquest of Makkah
The first caliph of Islam was|Abu Bakr|Umar|Uthman|Ali
The second caliph of Islam was|Umar ibn al-Khattab|Abu Bakr|Uthman|Ali
The third caliph of Islam was|Uthman ibn Affan|Abu Bakr|Umar|Ali
The fourth caliph of Islam was|Ali ibn Abi Talib|Abu Bakr|Umar|Uthman
Prophet Muhammad (SAW) was born in|Makkah|Madinah|Taif|Jerusalem
The mother of Prophet Muhammad (SAW) was|Aminah|Khadijah|Aishah|Fatimah
The first wife of the Prophet (SAW) was|Khadijah|Aishah|Hafsah|Zainab
The festival that marks the end of Ramadan is|Eid al-Fitr|Eid al-Adha|Mawlid|Ashura
The festival of sacrifice is|Eid al-Adha|Eid al-Fitr|Lailatul Qadr|Isra wal Mi'raj
The direction Muslims face when praying is the|Qiblah|Mihrab|Minbar|Imam
The person who leads congregational prayer is the|Imam|Muezzin|Hafiz|Qadi
The person who makes the call to prayer is the|Muezzin|Imam|Khatib|Mufti
The ablution before prayer is called|Wudu|Ghusl|Tayammum|Salat
The Qur'an is the primary source of Islamic|Law (Shari'ah)|Poetry only|Trade only|Medicine only
The second source of Islamic law is the|Sunnah (Hadith)|Qiyas|Ijma|Urf
The Night Journey of the Prophet to Jerusalem is called|Isra|Hijrah|Hajj|Bay'ah
Prophet Ibrahim (AS) was commanded to sacrifice his son|Ismail|Ishaq|Yusuf|Yaqub
The Prophet who built the Ka'bah with his son Ismail was|Ibrahim|Musa|Isa|Nuh""",topic="Islamic Studies")
print("islamic_studies",Is.save())

# ---------- AGRIC ----------
Ag=mk("agricultural_science",181)
Ag.ptext("""Hoe|Weeding and making ridges
Cutlass|Clearing bush and cutting stems
Sickle|Harvesting cereal crops
Spade|Digging and transplanting
Rake|Levelling the soil and collecting debris
Wheelbarrow|Carrying small loads on the farm
Secateurs|Pruning plants
Watering can|Watering nursery seedlings
Tractor|Ploughing and harrowing large farms
Hand fork|Loosening soil around plants""",qfwd="The {k} is used mainly for",qrev="Which farm tool is used for: {v}?",topic="Farm Tools")
Ag.ptext("""Cattle|Beef
Pig|Pork
Sheep|Mutton
Goat|Chevon
Poultry (chicken)|Eggs and poultry meat
Rabbit|Rabbit meat
Bee|Honey""",qfwd="The meat or product from {k} is",topic="Animal Production")
Ag.ptext("""Nitrogen|Promotes leafy growth
Phosphorus|Promotes root development
Potassium|Improves fruit quality and disease resistance
Calcium|Builds cell walls
Magnesium|Part of chlorophyll
Iron|Needed for chlorophyll formation""",qfwd="In plants, {k} is needed for",topic="Soil Fertility")
Ag.ptext("""Newcastle disease|Virus
Coccidiosis|Protozoan parasite
Rinderpest|Virus
Foot and mouth disease|Virus
Trypanosomiasis|Protozoan transmitted by tsetse fly
Anthrax|Bacterium
Ringworm|Fungus
Fowl pox|Virus""",qfwd="The causal organism of {k} is a",topic="Animal Health",diff="Medium")
Ag.qa("""The practice of growing different crops on the same land in a planned sequence is|Crop rotation|Mixed farming|Shifting cultivation|Monoculture
Farming in which crops and livestock are raised together is|Mixed farming|Monoculture|Shifting cultivation|Bush fallowing
Growing one crop on a piece of land year after year is|Monocropping|Mixed cropping|Crop rotation|Intercropping
Growing two or more crops on the same land at the same time is|Intercropping|Monocropping|Crop rotation|Fallowing
The top layer of the soil rich in organic matter is the|Topsoil|Subsoil|Bedrock|Parent material
The soil type with the highest water-holding capacity is|Clay|Sand|Loam|Gravel
The soil type with the best drainage but low water retention is|Sand|Clay|Silt|Loam
The best soil for crop production is|Loam|Sand|Clay|Gravel
The process of removing weeds from around crops is|Weeding|Pruning|Mulching|Grafting
Covering the soil around plants with dry grasses is|Mulching|Pruning|Thinning|Grafting
Joining a scion to a rootstock is|Grafting|Layering|Budding only|Pruning
Which of these is a leguminous crop?|Cowpea|Maize|Cassava|Yam
Which of these is a root crop?|Cassava|Maize|Rice|Cowpea
Which of these is a cereal?|Maize|Cocoa|Yam|Groundnut
Which of these is a tuber crop?|Yam|Cowpea|Rice|Cotton
Which of the following is a cash crop in Nigeria?|Cocoa|Cassava|Yam|Cocoyam
The practice of feeding ruminants with cut forage is|Zero grazing|Free range|Tethering|Transhumance
Ruminants have a stomach with|Four compartments|Two compartments|One compartment|Three compartments
Which of these animals is a ruminant?|Cattle|Pig|Chicken|Dog
Which of these is a monogastric animal?|Pig|Cattle|Goat|Sheep
The gestation period of a cow is about|9 months|3 months|6 months|12 months
Fertilisers that contain nitrogen, phosphorus and potassium are called|NPK fertilisers|Organic manure|Lime|Compost
Organic manure is obtained from|Plant and animal wastes|Industrial chemicals|Minerals only|Petroleum
Lime is applied to the soil to|Reduce acidity|Increase acidity|Add nitrogen|Kill weeds
The agricultural practice of keeping fields idle to restore fertility is|Fallowing|Mulching|Intercropping|Irrigation
Artificial supply of water to crops is|Irrigation|Drainage|Mulching|Fallowing""",topic="Agricultural Science")
print("agricultural_science",Ag.save())

# ---------- HISTORY ----------
H=mk("history",191)
H.ptext("""Usman dan Fodio|Led the 1804 jihad and founded the Sokoto Caliphate
Mansa Musa|Famous emperor of Mali who made a pilgrimage to Makkah in 1324
Askia Muhammad (Askia the Great)|Greatest emperor of Songhai
Mai Idris Alooma|Famous ruler of Kanem-Bornu
Oba Ewuare|Great Oba of Benin who strengthened the kingdom in the 15th century
Mungo Park|European explorer who traced the Niger in the 1790s–1800s
Richard and John Lander|Traced the course of the River Niger to its mouth in 1830
Hugh Clapperton|Explorer who visited Sokoto and Bornu
Herbert Macaulay|Founder of the Nigerian National Democratic Party in 1923
Nnamdi Azikiwe|Leader of the NCNC and first President of Nigeria
Obafemi Awolowo|Leader of the Action Group
Ahmadu Bello|Leader of the Northern People's Congress
Frederick Lugard|Introduced indirect rule in Nigeria
Queen Amina of Zazzau|Famous warrior queen of Zaria
Samori Toure|Resisted French colonial conquest in West Africa
Jaja of Opobo|Merchant prince of the Niger Delta exiled by the British""",qfwd="{k} is known for:",qrev="Who is described thus: {v}?",topic="West African History")
H.ptext("""1807|Britain abolished the slave trade
1884|Berlin Conference began
1804|Usman dan Fodio's jihad started
1914|Amalgamation of Nigeria
1923|Formation of the NNDP
1929|Aba Women's Riot
1944|Formation of the NCNC
1957|Ghana's independence
1960|Nigeria's independence
1963|Formation of the Organisation of African Unity""",qfwd="What event is associated with the year {k}?",qrev="In which year did this occur: {v}?",topic="Dates")
H.qa("""The empire of ancient Ghana had its capital at|Koumbi Saleh|Gao|Timbuktu|Kano
The Songhai empire had its capital at|Gao|Koumbi Saleh|Niani|Kano
The centre of learning in the Songhai empire was|Timbuktu|Gao|Niani|Kano
The Mali empire's capital was|Niani|Gao|Kumasi|Katsina
The empire that fell to Moroccan invasion in 1591 was|Songhai|Mali|Ghana|Benin
The Atlantic slave trade took place mainly between|Africa, Europe and the Americas|Africa and Asia|Europe and Asia|Africa and Australia
The Oyo empire was ruled by the|Alaafin|Oba|Emir|Mai
The Benin kingdom was ruled by the|Oba|Alaafin|Emir|Sarkin
The Hausa city-states were ruled by|Sarki|Alaafin|Oba|Obi
The system by which colonial rulers governed through traditional rulers is|Indirect rule|Assimilation|Direct rule|Association
The French system of colonial administration based on turning Africans into Frenchmen was|Assimilation|Indirect rule|Federalism|Trusteeship
The 1884–85 Berlin Conference was held to|Partition Africa among European powers|Abolish slavery|Grant independence|Plan World War I
The first nationalist party in Nigeria was|NNDP|NCNC|AG|NPC
The newspaper founded by Nnamdi Azikiwe in Lagos was|West African Pilot|Daily Times|Lagos Weekly Record|Iwe Irohin
The first newspaper in Nigeria was|Iwe Irohin|West African Pilot|Daily Times|Lagos Daily News
The first African country south of the Sahara to gain independence from colonial rule was|Ghana|Nigeria|Kenya|Senegal
The first President of Ghana was|Kwame Nkrumah|Jomo Kenyatta|Nnamdi Azikiwe|Julius Nyerere
World War I began in|1914|1939|1945|1900
World War II ended in|1945|1918|1939|1950""",topic="History")
print("history",H.save())
