import random
# Quiz Data (Questions and Answers)
quiz_data = {
"Mid 2023": [
{
"question": "Granulation tissue is:",
"options": ["Abundant collagen", "Proliferating macrophages and
lymphocytes", "Proliferating capillaries and fibroblasts", "Abundant inflammatory
cells and collagen", "Abundant macrophages and mycobacteria"],
"answer": "Proliferating capillaries and fibroblasts"
},
{
"question": "Polymorph nuclear leukocytes (neutrophils) are a feature
of:",
"options": ["Granulomas", "Granulation tissue", "Fibrin clot", "Scar
tissue", "Acute inflammation"],
"answer": "Acute inflammation"
},
{
"question": "Which of the following is a diffuse suppurative
inflammation?",
"options": ["Abscess", "Carbuncle", "Cellulitis", "Furuncle",
"Vesicle"],
"answer": "Cellulitis"
},
{
"question": "Which of the following occurs as a result of release of
activated pancreatic enzymes and can leave white, chalky deposits representing
calcium soap?",
"options": ["Coagulative necrosis", "Liquefactive necrosis", "Caseous
necrosis", "Fat necrosis", "Gangrenous necrosis"],
"answer": "Fat necrosis"
},
{
"question": "Which of the following organs is the most likely to
regenerate following injury?",
"options": ["Cerebellum", "Liver"],
"answer": "Liver"
},
{
"question": "Pus is a purulent transudate rich in neutrophils?",
"type": "true_false",
"answer": "False"
},
{
"question": "Ulcer is a track connecting two epithelial lined
surfaces?",
"type": "true_false",
"answer": "False"
},
{
"question": "Brain abscess is an example of liquefactive necrosis?",
"type": "true_false",
"answer": "True"
},
{
"question": "Steatosis is intracellular accumulation of fat most common
in heart?",
"type": "true_false",
"answer": "False"
},
{
"question": "Dystrophic calcification is usually seen with
hypercalcemia?",
"type": "true_false",
"answer": "False"
}
],
"Final 2022": [
{
"question": "Which of the following cancers does NOT have the ability
to metastasize?",
"options": ["Squamous cell carcinoma", "Basal cell carcinoma",
"Adenocarcinoma", "Transitional cell carcinoma", "Leiomyosarcoma"],
"answer": "Basal cell carcinoma"
},
{
"question": "The most serious complication of emboli originating from
deep venous thrombi:",
"options": ["Brain infarct", "Cardiogenic shock", "Pulmonary embolism",
"Systemic pyemia"],
"answer": "Pulmonary embolism"
},
{
"question": "All the following are true of Anaplasia EXCEPT:",
"options": ["Pleomorphism", "Irregular chromatin", "Micro nucleoli",
"High nuclear/cytoplasmic ratio", "Prominent nucleoli"],
"answer": "Micro nucleoli"
},
{
"question": "Which of the following is the most common type of
metaplasia in the respiratory tract due to smoking?",
"options": ["Squamous to columnar", "Squamous to cuboidal", "Columnar
to squamous", "Columnar to cuboidal"],
"answer": "Columnar to squamous"
},
{
"question": "Which of the following statements is true about the fate
of thrombosis?",
"options": ["Effects may be ameliorated by thrombus lysis or
recanalization", "Thrombus may become calcified", "Embolism may follow thrombosis",
"Thrombosis may lead to ischemia", "All of the above"],
"answer": "All of the above"
},
{
"question": "Regarding carcinoma, which is NOT true?",
"options": ["Usually older patients", "Malignant tumor derived from
epithelium", "May have a pre-malignant phase", "Lung is the first site of
metastasis", "Slower rate of growth than sarcoma"],
"answer": "Lung is the first site of metastasis"
},
{
"question": "Which of the following describes hyperplasia?",
"options": ["Increase in number of cells", "Decrease in number of
cells", "Increase in individual cell size", "Decrease in individual cell size",
"Replacement by another adult cell type"],
"answer": "Increase in number of cells"
},
{
"question": "Which of the following is NOT a true feature of sarcoma?",
"options": ["Pleomorphism", "Early blood vessel invasion", "Early
lymphatic invasion", "Mesodermal origin", "Metastasis to distant sites"],
"answer": "Early lymphatic invasion"
},
{
"question": "Which of the following is a sign of septic shock but NOT
of hypovolemic or cardiogenic shock?",
"options": ["Hypotension", "Weak, rapid pulse", "Cool, pale skin",
"Fever"],
"answer": "Fever"
},
{
"question": "Which of the following conditions is associated with cell
proliferation?",
"options": ["Hypertrophy", "Atrophy", "Necrosis", "Neoplasia"],
"answer": "Neoplasia"
}
],
"Mid 2022": [
{
"question": "Which of the following implies preservation of the basic
outline of the involved cell for a span of at least some days?",
"options": ["Coagulative necrosis", "Caseous necrosis", "Liquefactive
necrosis", "Fat necrosis"],
"answer": "Coagulative necrosis"
},
{
"question": "Each of the following tissues contains stable cells
EXCEPT:",
"options": ["Pancreatic islets", "Vascular endothelium", "Liver",
"Skeletal muscle"],
"answer": "Skeletal muscle"
},
{
"question": "Granulation tissue is:",
"options": ["Abundant collagen", "Proliferating macrophages and
lymphocytes", "Proliferating capillaries and fibroblasts", "Abundant inflammatory
cells and collagen"],
"answer": "Proliferating capillaries and fibroblasts"
},
{
"question": "Which of the following organs is the most likely to
regenerate following injury:",
"options": ["Cerebellum", "Liver", "Heart", "Myocardium"],
"answer": "Liver"
},
{
"question": "Polymorph nuclear leukocytes (neutrophils) are a feature
of:",
"options": ["Granulomas", "Fibrin clot", "Granulation tissue", "Acute
inflammation"],
"answer": "Acute inflammation"
},
{
"question": "... is a diffuse suppurative inflammation.",
"options": ["Abscess", "Cellulitis"],
"answer": "Cellulitis"
},
{
"question": "Fistula is:",
"options": ["Defect in the surface epithelium", "Tract between two
organs", "Excess scar tissue", "Blind tract"],
"answer": "Tract between two organs"
},
{
"question": "Apoptosis results in:",
"options": ["Recruitment of neutrophils", "Inflammatory reaction",
"Swelling and lysis of cells", "Phagocytosis of apoptotic cells by healthy cells"],
"answer": "Phagocytosis of apoptotic cells by healthy cells"
},
{
"question": "Which of the following factors is most likely to retard
wound healing?",
"options": ["Bacterial infection", "Pressure on nerve endings",
"Decreased tissue perfusion", "Corticosteroid therapy"],
"answer": "Bacterial infection"
},
{
"question": "Redness in acute inflammation is due to:",
"options": ["Dilatation of blood vessels", "Protective dressings",
"Increase in vascular permeability", "Arteriolar vasoconstriction"],
"answer": "Dilatation of blood vessels"
}
],
"Final 2021": [
{
"question": "Which of the following refers to increased cell and organ
size as a primary adaptive response?",
"options": ["Atrophy", "Hypertrophy", "Hyperplasia", "Metaplasia",
"Dysplasia"],
"answer": "Hypertrophy"
},
{
"question": "What does pleomorphism mean?",
"options": ["Uncontrolled mitosis", "Multiple nuclei", "Variability in
shape and size", "The cells are different from where they arose", "Increased
chromatin content"],
"answer": "Variability in shape and size"
},
{
"question": "Apoptosis results in:",
"options": ["Recruitment of neutrophils", "Swelling and lysis of
cells", "Release of free radicals", "Phagocytosis of apoptotic cells by surrounding
healthy cells", "Localized edema"],
"answer": "Phagocytosis of apoptotic cells by surrounding healthy
cells"
},
{
"question": "Which of the following types of necrosis is grossly
blackish?",
"options": ["Coagulative necrosis", "Liquefactive necrosis", "Caseous
necrosis", "Fat necrosis"],
"answer": "Coagulative necrosis"
},
{
"question": "Suppurative or purulent inflammation is characterized
by:",
"options": ["Edema", "Extravascular fluid", "Large amounts of pus"],
"answer": "Large amounts of pus"
},
{
"question": "If a tumor is benign and of squamous origin, what would it
be called?",
"options": ["Lipoma", "Adenoma", "Papilloma", "Carcinoma", "Sarcoma"],
"answer": "Papilloma"
},
{
"question": "Dystrophic calcification is most closely associated
with:",
"options": ["Hypercalcemia", "Necrosis", "Chronic irritation",
"Diminished blood flow", "Increased workload"],
"answer": "Necrosis"
},
{
"question": "Metaplasia is most closely associated with:",
"options": ["Hypercalcemia", "Necrosis", "Chronic irritation",
"Diminished blood flow", "Increased workload"],
"answer": "Chronic irritation"
},
{
"question": "Granuloma formation is most frequently associated with:",
"options": ["Healing process", "Acute inflammation", "Wound
contraction", "Fibroblasts and neovascularization", "Persistent irritation"],
"answer": "Persistent irritation"
},
{
"question": "Most characteristic feature of granulation tissue is
the:",
"options": ["Growth of fibroblasts and new capillaries", "Resemblance
to a granuloma", "Character of the exudate", "Granular scar that results",
"Presence of monocytes and polymorphs"],
"answer": "Growth of fibroblasts and new capillaries"
}
]
}
def run_quiz(section):
"""Runs a quiz for a given section."""
score = 0
questions = quiz_data[section]
[Link](questions) # Randomize question order
for i, question_data in enumerate(questions):
print(f"\nQuestion {i + 1}: {question_data['question']}")
if question_data.get("type") == "true_false":
print(" (True/False)")
user_answer = input("Your answer: ").strip().lower()
if (user_answer == "true" and question_data["answer"] == "True") or \
(user_answer == "false" and question_data["answer"] == "False"):
print("Correct!")
score += 1
else:
print(f"Incorrect. The correct answer is
{question_data['answer']}.")
else:
for j, option in enumerate(question_data["options"]):
print(f" {chr(ord('a') + j)}. {option}") # a, b, c, etc.
user_answer = input("Your answer (a, b, c, ...): ").strip().lower()
correct_option_index =
question_data["options"].index(question_data["answer"])
correct_letter = chr(ord('a') + correct_option_index)
if user_answer == correct_letter:
print("Correct!")
score += 1
else:
print(f"Incorrect. The correct answer is
{question_data['answer']}.")
print(f"\nQuiz complete! Your score: {score}/{len(questions)}")
return score
# Main Quiz Loop
while True:
print("\nChoose a quiz section:")
for section in quiz_data.keys():
print(f"- {section}")
print("- Exit")
chosen_section = input("Enter section name: ").strip()
if chosen_section.lower() == "exit":
break
elif chosen_section in quiz_data:
run_quiz(chosen_section)
else:
print("Invalid section name. Please choose from the list.")