from common import *
# ================= CHEMISTRY (facts appended to calculation bank) =================
C=Bank("chemistry",seed=51).extend()
C.ptext("""Hydrogen|H
Helium|He
Lithium|Li
Beryllium|Be
Boron|B
Carbon|C
Nitrogen|N
Oxygen|O
Fluorine|F
Neon|Ne
Sodium|Na
Magnesium|Mg
Aluminium|Al
Silicon|Si
Phosphorus|P
Sulphur|S
Chlorine|Cl
Argon|Ar
Potassium|K
Calcium|Ca
Iron|Fe
Copper|Cu
Zinc|Zn
Silver|Ag
Gold|Au
Mercury|Hg
Lead|Pb
Tin|Sn
Manganese|Mn
Chromium|Cr
Nickel|Ni
Barium|Ba
Iodine|I
Bromine|Br""",qfwd="What is the chemical symbol of the element {k}?",qrev="Which element has the symbol {v}?",topic="Elements and Symbols")
C.ptext("""Hydrogen|1
Helium|2
Lithium|3
Carbon|6
Nitrogen|7
Oxygen|8
Fluorine|9
Neon|10
Sodium|11
Magnesium|12
Aluminium|13
Silicon|14
Phosphorus|15
Sulphur|16
Chlorine|17
Argon|18
Potassium|19
Calcium|20""",qfwd="What is the atomic number of {k}?",qrev="Which element has atomic number {v}?",topic="Atomic Structure")
C.ptext("""Quicklime|CaO
Slaked lime|Ca(OH)₂
Limestone|CaCO₃
Caustic soda|NaOH
Washing soda|Na₂CO₃·10H₂O
Baking soda|NaHCO₃
Common salt|NaCl
Marsh gas (natural gas)|CH₄
Laughing gas|N₂O
Blue vitriol|CuSO₄·5H₂O
Epsom salt|MgSO₄·7H₂O
Gypsum|CaSO₄·2H₂O
Milk of magnesia|Mg(OH)₂
Caustic potash|KOH
Ammonia gas|NH₃
Green vitriol|FeSO₄·7H₂O
Oil of vitriol|H₂SO₄
Muriatic acid|HCl
Aqua fortis|HNO₃""",qfwd="What is the chemical formula of {k}?",qrev="The common name for the substance with formula {v} is",topic="Common Compounds")
C.ptext("""Oxygen|Relights a glowing splint
Hydrogen|Burns with a 'pop' sound when a lighted splint is applied
Carbon(IV) oxide|Turns lime water milky
Ammonia|Turns damp red litmus paper blue
Chlorine|Bleaches damp litmus paper
Hydrogen chloride|Forms dense white fumes with ammonia
Sulphur(IV) oxide|Turns acidified potassium dichromate(VI) from orange to green
Water vapour|Turns anhydrous copper(II) sulphate from white to blue""",qfwd="What is the confirmatory test for {k}?",qrev="Which gas gives this test result: {v}?",topic="Qualitative Analysis",diff="Medium")
C.ptext("""Salt from sea water|Evaporation (crystallisation)
Sand from water|Filtration
Ethanol from water|Fractional distillation
Iodine from sand|Sublimation
Different dyes in ink|Paper chromatography
Oil from water|Use of a separating funnel
Iron filings from sulphur powder|Use of a magnet
Petroleum into its fractions|Fractional distillation
Ammonium chloride from sodium chloride|Sublimation
Pure water from salt solution|Simple distillation""",qfwd="Which method is best for separating {k}?",topic="Separation Techniques",diff="Easy")
C.ptext("""Burette|Delivers variable volumes of liquid accurately in titration
Pipette|Measures a fixed volume of liquid accurately
Conical flask|Holds the solution being titrated
Condenser|Cools vapour back into liquid during distillation
Desiccator|Keeps substances free from moisture
Crucible|Strong heating of solids
Separating funnel|Separating immiscible liquids
Evaporating dish|Evaporating solutions to crystallise solids
Measuring cylinder|Measuring approximate volumes of liquids
Filter funnel|Holding filter paper during filtration""",qfwd="What is the main use of the {k} in the laboratory?",qrev="Which apparatus is used for the following: {v}?",topic="Laboratory Apparatus")
C.ptext("""Alkanes|CₙH₂ₙ₊₂
Alkenes|CₙH₂ₙ
Alkynes|CₙH₂ₙ₋₂
Alkanols (alcohols)|CₙH₂ₙ₊₁OH
Alkanoic acids|CₙH₂ₙ₊₁COOH""",qfwd="What is the general formula of the {k} homologous series?",qrev="Which homologous series has the general formula {v}?",topic="Organic Chemistry",diff="Medium")
C.qa("""Which of these is a noble gas?|Argon|Nitrogen|Oxygen|Hydrogen
The process by which a solid changes directly to gas is|Sublimation|Evaporation|Condensation|Freezing
An element whose atoms have the same atomic number but different mass numbers is called a(n)|Isotope|Allotrope|Isomer|Ion
Which of the following is an alkali metal?|Potassium|Calcium|Magnesium|Aluminium
The type of bond formed when electrons are transferred from one atom to another is|Ionic bond|Covalent bond|Metallic bond|Hydrogen bond
The type of bond formed by sharing of electrons is|Covalent bond|Ionic bond|Metallic bond|Dative bond
The pH of a neutral solution at 25°C is|7|0|1|14
Which acid is present in vinegar?|Ethanoic acid|Hydrochloric acid|Citric acid|Sulphuric acid
Which gas is evolved when zinc reacts with dilute hydrochloric acid?|Hydrogen|Oxygen|Chlorine|Carbon(IV) oxide
Rusting of iron requires the presence of|Oxygen and water|Oxygen only|Water only|Nitrogen and water
The catalyst used in the Haber process is|Finely divided iron|Platinum|Vanadium(V) oxide|Nickel
The catalyst used in the Contact process is|Vanadium(V) oxide|Iron|Platinum|Manganese(IV) oxide
Which of the following is a greenhouse gas?|Carbon(IV) oxide|Argon|Neon|Helium
The most abundant gas in the atmosphere is|Nitrogen|Oxygen|Argon|Carbon(IV) oxide
Which metal is liquid at room temperature?|Mercury|Lead|Tin|Zinc
Which element is the most electronegative?|Fluorine|Oxygen|Chlorine|Nitrogen
The hardness of water that can be removed by boiling is|Temporary hardness|Permanent hardness|Soft hardness|Total softness
Which substance is used to remove permanent hardness of water?|Sodium carbonate|Calcium hydroxide|Hydrochloric acid|Sodium chloride
Alkenes decolourise bromine water because they are|Unsaturated|Saturated|Aromatic|Ionic
The process of converting alkenes to alkanes by adding hydrogen is called|Hydrogenation|Dehydration|Polymerisation|Cracking
Fermentation of glucose produces|Ethanol and carbon(IV) oxide|Ethanoic acid and water|Methane and oxygen|Ethene and water
Which of the following is a reducing agent?|Hydrogen|Chlorine|Oxygen|Fluorine
In electrolysis the electrode connected to the negative terminal of the battery is the|Cathode|Anode|Electrolyte|Salt bridge
During electrolysis of brine, the product at the cathode (inert electrodes, concentrated solution) is|Hydrogen|Sodium|Chlorine|Oxygen
Which of the following is used as a fuel and is a product of fractional distillation of petroleum?|Kerosene|Sodium chloride|Ammonia|Quicklime
Group VII elements are called|Halogens|Alkali metals|Noble gases|Alkaline earth metals
Group I elements are called|Alkali metals|Halogens|Noble gases|Transition metals
The number of valence electrons in a chlorine atom is|7|1|5|8
Which of the following is an amphoteric oxide?|Aluminium oxide|Sodium oxide|Carbon(IV) oxide|Sulphur(IV) oxide
Which of the following is the lightest gas?|Hydrogen|Helium|Nitrogen|Oxygen
An exothermic reaction is one in which heat is|Released to the surroundings|Absorbed from the surroundings|Neither gained nor lost|Converted into light only""",topic="General Chemistry")
print("chemistry",C.save())

# ================= BIOLOGY =================
Bi=Bank("biology",seed=61)
Bi.ptext("""Mitochondrion|Site of aerobic respiration
Ribosome|Protein synthesis
Nucleus|Controls the activities of the cell
Chloroplast|Site of photosynthesis
Cell membrane|Controls the entry and exit of substances
Cell wall|Gives shape and support to plant cells
Vacuole|Stores cell sap
Golgi apparatus|Packaging and secretion of substances
Lysosome|Digests worn-out organelles
Endoplasmic reticulum|Transport of materials within the cell
Centriole|Formation of spindle fibres during animal cell division""",qfwd="What is the function of the {k}?",qrev="Which cell structure is responsible for the following: {v}?",topic="Cell Biology")
Bi.ptext("""Vitamin A|Night blindness
Vitamin B₁|Beriberi
Vitamin C|Scurvy
Vitamin D|Rickets
Vitamin K|Delayed blood clotting
Iron|Anaemia
Iodine|Goitre
Calcium|Weak bones and teeth
Protein|Kwashiorkor
Niacin|Pellagra""",qfwd="Deficiency of {k} in the diet causes",qrev="{v} is caused by deficiency of",topic="Nutrition")
Bi.ptext("""Liver|Deamination and production of bile
Kidney|Excretion and osmoregulation
Heart|Pumping blood round the body
Lungs|Gaseous exchange
Pancreas|Production of insulin and pancreatic juice
Stomach|Digestion of proteins by pepsin
Small intestine|Absorption of digested food
Large intestine|Absorption of water
Gall bladder|Storage of bile
Urinary bladder|Storage of urine
Spleen|Destruction of old red blood cells
Skin|Regulation of body temperature""",qfwd="The main function of the {k} in mammals is",qrev="Which organ performs this function: {v}?",topic="Human Physiology")
Bi.ptext("""Malaria|Plasmodium
Cholera|Vibrio cholerae
Tuberculosis|Mycobacterium tuberculosis
Typhoid fever|Salmonella typhi
Sleeping sickness|Trypanosoma
Ringworm|A fungus
Poliomyelitis|A virus
Measles|A virus
Tetanus|Clostridium tetani
Schistosomiasis|Schistosoma (blood fluke)
Elephantiasis|Wuchereria bancrofti
River blindness|Onchocerca volvulus
Amoebic dysentery|Entamoeba histolytica
Ascariasis|Ascaris lumbricoides
Athlete's foot|A fungus""",qfwd="The causative organism of {k} is",topic="Diseases")
Bi.ptext("""Malaria|Female Anopheles mosquito
Yellow fever|Aedes mosquito
Sleeping sickness|Tsetse fly
River blindness|Blackfly (Simulium)
Elephantiasis|Culex mosquito
Plague|Rat flea
Dengue fever|Aedes mosquito""",qfwd="The vector that transmits {k} is the",topic="Diseases")
Bi.ptext("""Amylase|Starch
Pepsin|Proteins in the stomach
Lipase|Fats and oils
Maltase|Maltose
Catalase|Hydrogen peroxide
Trypsin|Proteins in the small intestine
Rennin|Milk protein (casein)
Sucrase|Sucrose""",qfwd="The enzyme {k} acts on",qrev="Which enzyme acts on {v}?",topic="Enzymes",diff="Medium")
Bi.ptext("""Starch|Iodine solution turns blue-black
Reducing sugar|Benedict's solution turns brick-red on heating
Protein|Biuret reagent turns violet
Fat|Ethanol emulsion test gives a cloudy white emulsion
Vitamin C|DCPIP is decolourised""",qfwd="The food test result for {k} is",qrev="Which food substance gives this result: {v}?",topic="Nutrition")
Bi.ptext("""Insulin|Lowers blood sugar level
Glucagon|Raises blood sugar level
Adrenaline|Prepares the body for 'fight or flight'
Thyroxine|Regulates metabolic rate
Antidiuretic hormone (ADH)|Controls water reabsorption in the kidney
Oestrogen|Development of female secondary sexual characters
Testosterone|Development of male secondary sexual characters
Progesterone|Maintains the lining of the uterus during pregnancy
Auxin|Promotes cell elongation in plants""",qfwd="The function of {k} is to",qrev="Which hormone does the following: {v}?",topic="Hormones")
Bi.ptext("""Mammals|Hair and mammary glands
Birds|Feathers and beaks
Reptiles|Dry scaly skin
Amphibians|Moist skin and metamorphosis
Fishes|Gills and fins
Insects|Three pairs of legs and a body in three parts
Arachnids|Four pairs of legs and two body parts""",qfwd="A distinguishing feature of {k} is",qrev="Which group of animals has the following feature: {v}?",topic="Classification")
Bi.qa("""The basic unit of life is the|Cell|Tissue|Organ|System
The process by which green plants manufacture food is|Photosynthesis|Respiration|Transpiration|Digestion
The gas released by plants during photosynthesis is|Oxygen|Carbon(IV) oxide|Nitrogen|Hydrogen
The loss of water vapour from the leaves of plants is called|Transpiration|Translocation|Guttation|Osmosis
The movement of water from a region of high water potential to low water potential through a semi-permeable membrane is|Osmosis|Diffusion|Active transport|Plasmolysis
Which blood cells carry oxygen?|Red blood cells|White blood cells|Platelets|Plasma
Which blood vessels carry blood away from the heart?|Arteries|Veins|Capillaries|Venules
The process by which an organism maintains a constant internal environment is|Homeostasis|Excretion|Egestion|Secretion
The offspring of a cross between two different pure breeding varieties is called|Hybrid|Mutant|Clone|Carrier
The study of heredity is called|Genetics|Ecology|Taxonomy|Embryology
DNA stands for|Deoxyribonucleic acid|Deoxyribose nucleic acid|Diribonucleic acid|Dinucleic acid
The part of the flower that produces pollen is the|Anther|Stigma|Ovary|Style
The female reproductive organ of a flower is the|Carpel (pistil)|Stamen|Petal|Sepal
Transfer of pollen from an anther to a stigma is called|Pollination|Fertilisation|Germination|Dispersal
Which of the following is a primary consumer?|Grasshopper|Lion|Hawk|Snake
In a food chain, green plants are the|Producers|Primary consumers|Decomposers|Secondary consumers
Organisms that feed on dead organic matter are|Decomposers|Producers|Predators|Parasites
A relationship in which both organisms benefit is|Mutualism|Parasitism|Commensalism|Predation
Which of the following is a parasite?|Tapeworm|Earthworm|Butterfly|Housefly
The organ of balance in the ear is the|Semicircular canals|Cochlea|Ear drum|Pinna
Which part of the eye controls the amount of light entering it?|Iris|Cornea|Retina|Lens
The light-sensitive layer of the eye is the|Retina|Sclera|Choroid|Cornea
The scientific name of man is|Homo sapiens|Homo erectus|Pan troglodytes|Homo habilis
The unit of classification that includes the most closely related organisms is the|Species|Genus|Family|Order
Respiration that takes place without oxygen is called|Anaerobic respiration|Aerobic respiration|Photosynthesis|Transpiration
The end products of anaerobic respiration in yeast are|Ethanol and carbon(IV) oxide|Lactic acid|Water and carbon(IV) oxide|Glucose and oxygen
The tissue that transports water in plants is the|Xylem|Phloem|Cambium|Epidermis
The tissue that transports manufactured food in plants is the|Phloem|Xylem|Cortex|Pith
The part of the brain that controls balance and coordination is the|Cerebellum|Cerebrum|Medulla oblongata|Hypothalamus
The functional unit of the kidney is the|Nephron|Neuron|Alveolus|Villus
The structure through which gaseous exchange occurs in the lungs is the|Alveolus|Bronchus|Trachea|Diaphragm
The fusion of male and female gametes is called|Fertilisation|Pollination|Germination|Ovulation
The number of chromosomes in a normal human body cell is|46|23|44|48
Cell division that produces gametes is called|Meiosis|Mitosis|Binary fission|Budding
Which of the following is an example of vegetative propagation?|Planting yam sett|Sowing maize seeds|Pollination|Grafting seeds
The ability of living things to respond to stimuli is called|Irritability|Excretion|Growth|Reproduction
Natural selection was proposed by|Charles Darwin|Gregor Mendel|Louis Pasteur|Robert Hooke
The father of genetics is|Gregor Mendel|Charles Darwin|Robert Hooke|Carl Linnaeus
The first person to observe cells was|Robert Hooke|Louis Pasteur|Charles Darwin|Gregor Mendel
Blood group O is called the universal|Donor|Recipient|Carrier|Agglutinin""",topic="General Biology")
print("biology",Bi.save())

# ================= GEOGRAPHY =================
G=Bank("geography",seed=71)
G.ptext("""Abia|Umuahia
Adamawa|Yola
Akwa Ibom|Uyo
Anambra|Awka
Bauchi|Bauchi
Bayelsa|Yenagoa
Benue|Makurdi
Borno|Maiduguri
Cross River|Calabar
Delta|Asaba
Ebonyi|Abakaliki
Edo|Benin City
Ekiti|Ado-Ekiti
Enugu|Enugu
Gombe|Gombe
Imo|Owerri
Jigawa|Dutse
Kaduna|Kaduna
Kano|Kano
Katsina|Katsina
Kebbi|Birnin Kebbi
Kogi|Lokoja
Kwara|Ilorin
Lagos|Ikeja
Nasarawa|Lafia
Niger|Minna
Ogun|Abeokuta
Ondo|Akure
Osun|Osogbo
Oyo|Ibadan
Plateau|Jos
Rivers|Port Harcourt
Sokoto|Sokoto
Taraba|Jalingo
Yobe|Damaturu
Zamfara|Gusau""",qfwd="What is the capital of {k} State, Nigeria?",qrev="{v} is the capital of which Nigerian state?",topic="Nigeria")
G.ptext("""Ghana|Accra
Kenya|Nairobi
Egypt|Cairo
Ethiopia|Addis Ababa
Senegal|Dakar
Cameroon|Yaoundé
Togo|Lomé
Benin Republic|Porto-Novo
Niger Republic|Niamey
Chad|N'Djamena
Mali|Bamako
Liberia|Monrovia
Sierra Leone|Freetown
The Gambia|Banjul
Guinea|Conakry
Angola|Luanda
Zambia|Lusaka
Zimbabwe|Harare
Uganda|Kampala
Rwanda|Kigali
Algeria|Algiers
Morocco|Rabat
Libya|Tripoli
Sudan|Khartoum
Namibia|Windhoek
Botswana|Gaborone
Mozambique|Maputo
Gabon|Libreville
Burkina Faso|Ouagadougou
Mauritania|Nouakchott
Tunisia|Tunis
Malawi|Lilongwe
Madagascar|Antananarivo
Somalia|Mogadishu""",qfwd="What is the capital of {k}?",qrev="{v} is the capital city of",topic="Africa")
G.qa("""The longest river in Africa is the|Nile|Niger|Congo|Zambezi
The largest desert in the world (hot desert) is the|Sahara|Kalahari|Namib|Gobi
The highest mountain in Africa is|Mount Kilimanjaro|Mount Kenya|Mount Cameroon|Chappal Waddi
The largest lake in Africa is|Lake Victoria|Lake Chad|Lake Tanganyika|Lake Malawi
The deepest lake in Africa is|Lake Tanganyika|Lake Victoria|Lake Chad|Lake Kainji
The line of latitude at 0° is the|Equator|Tropic of Cancer|Tropic of Capricorn|Prime Meridian
The line of longitude at 0° is the|Prime Meridian|Equator|Tropic of Cancer|International Date Line
The largest continent in the world is|Asia|Africa|Europe|North America
The largest ocean is the|Pacific Ocean|Atlantic Ocean|Indian Ocean|Arctic Ocean
The highest mountain in the world is|Mount Everest|K2|Mount Kilimanjaro|Mont Blanc
Which of these is an igneous rock?|Granite|Limestone|Marble|Sandstone
Which of these is a metamorphic rock?|Marble|Granite|Basalt|Sandstone
Which of these is a sedimentary rock?|Sandstone|Granite|Basalt|Gneiss
The instrument used for measuring atmospheric pressure is the|Barometer|Thermometer|Hygrometer|Anemometer
The instrument used for measuring wind speed is the|Anemometer|Barometer|Rain gauge|Wind vane
The instrument used for measuring rainfall is the|Rain gauge|Hygrometer|Barometer|Anemometer
The instrument used for measuring relative humidity is the|Hygrometer|Barometer|Rain gauge|Seismograph
The natural vegetation of the Sahel region of Nigeria is|Sahel savanna (short grass and thorny shrubs)|Mangrove forest|Tropical rainforest|Guinea savanna
Mangrove forests in Nigeria are mostly found in the|Niger Delta|Jos Plateau|Sokoto Plain|Chad Basin
The Kainji Dam is built on the River|Niger|Benue|Kaduna|Ogun
The two major rivers in Nigeria are the Niger and the|Benue|Sokoto|Kaduna|Ogun
The confluence of rivers Niger and Benue is at|Lokoja|Makurdi|Onitsha|Jebba
The highest mountain in Nigeria is|Chappal Waddi|Mount Patti|Zuma Rock|Idanre Hills
The Jos Plateau is known for the mining of|Tin|Gold|Crude oil|Coal
Coal in Nigeria is mined at|Enugu|Jos|Lagos|Kano
The country with the largest population in Africa is|Nigeria|Ethiopia|Egypt|South Africa
The capital of Nigeria is|Abuja|Lagos|Kano|Port Harcourt
Nigeria became independent in|1960|1957|1963|1914
Which of the following is a cash crop in Nigeria?|Cocoa|Yam|Cassava|Maize
Cocoa in Nigeria is mostly grown in the|South-West|North-East|North-West|North-Central
Groundnut is mostly grown in the|Northern Nigeria|South-East|South-South|Niger Delta
Which of these is a fold mountain?|Alps|Mount Kilimanjaro|Mount Cameroon|Mount Etna
The scale 1:50,000 on a map is an example of a|Ratio (representative fraction) scale|Linear scale|Statement scale|Compass scale
Lines joining places of equal height on a map are called|Contours|Isobars|Isotherms|Isohyets
Lines joining places of equal atmospheric pressure are called|Isobars|Isotherms|Isohyets|Contours
Lines joining places of equal temperature are called|Isotherms|Isobars|Isohyets|Contours
Lines joining places of equal rainfall are called|Isohyets|Isobars|Isotherms|Contours
The movement of the earth around the sun causes|Seasons|Day and night|Tides|Earthquakes
The rotation of the earth on its axis causes|Day and night|Seasons|Eclipses|Leap years
The earth takes about how many days to revolve round the sun?|365¼|360|354|300
The layer of the earth between the crust and the core is the|Mantle|Stratosphere|Biosphere|Troposphere
The layer of the atmosphere closest to the earth is the|Troposphere|Stratosphere|Mesosphere|Ionosphere
Which of these is a renewable resource?|Solar energy|Coal|Petroleum|Natural gas
The process by which rocks are broken down in place is|Weathering|Erosion|Deposition|Transportation
The wearing away of land surface by agents such as water and wind is|Erosion|Weathering|Deposition|Folding
A large body of ice moving slowly down a valley is a|Glacier|Delta|Estuary|Plateau
A triangular deposit of silt at a river mouth is a|Delta|Meander|Waterfall|Levee""",topic="General Geography")
print("geography",G.save())
