Files
encoach_backend/generate_base_questions.py
2023-09-03 18:05:13 +01:00

2132 lines
90 KiB
Python

import os
import uuid
import firebase_admin
from firebase_admin import credentials, firestore
from dotenv import load_dotenv
load_dotenv()
# Initialize Firebase Admin SDK
cred = credentials.Certificate(os.getenv("GOOGLE_APPLICATION_CREDENTIALS"))
firebase_admin.initialize_app(cred)
reading_to_insert_1 = {
"exercises": [
{
"allowRepetition": True,
"id": str(uuid.uuid4()),
"prompt": "Complete the summary below. Click a blank to select the corresponding word(s) for it.\\nThere are "
"more words than spaces so you will not use them all. You may use any of the words more than once.",
"solutions": [
{
"id": "1",
"solution": "clean"
},
{
"id": "2",
"solution": "fossil"
},
{
"id": "3",
"solution": "sunlight"
},
{
"id": "4",
"solution": "alternative"
},
{
"id": "5",
"solution": "solar"
},
{
"id": "6",
"solution": "wind farms"
},
{
"id": "7",
"solution": "source"
},
{
"id": "8",
"solution": "flowing water"
}
],
"text": "In recent years, the transition to {{1}} energy sources has surged, driven by growing concerns about "
"{{2}} fuels and their impact on climate change. Renewable options, including {{3}}, wind, and water,"
" are gaining momentum as a cleaner {{4}} to conventional energy production. Solar panels, harnessing {{5}} "
"energy, are becoming more accessible, while wind turbines in {{6}} are providing a scalable and sustainable "
"{{7}} of power. Moreover, hydropower, derived from {{8}}, contributes to the renewable energy landscape, "
"offering a multifaceted approach to combat environmental challenges.",
"type": "fillBlanks",
"words": ["energy", "fossil", "alternative", "transition", "wind farms", "source",
"contributes", "flowing water", "surged", "momentum", "scalable", "solar", "accessible",
"climate",
"environmental", "renewable", "impact", "clean", "options", "challenges"]
},
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "Economic benefits"
},
{
"id": "B",
"text": "Government regulations"
},
{
"id": "C",
"text": "Concerns about climate change"
},
{
"id": "D",
"text": "Technological advancement"
}
],
"prompt": "What is the main reason for the shift towards renewable energy sources?",
"solution": "C",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "Wind"
},
{
"id": "B",
"text": "Coal"
},
{
"id": "C",
"text": "Sunlight"
},
{
"id": "D",
"text": "Water"
}
],
"prompt": "Which of the following sources is NOT mentioned as a renewable energy source?",
"solution": "B",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "It generates a lot of waste"
},
{
"id": "B",
"text": "It produces greenhouse gases"
},
{
"id": "C",
"text": "It has no emissions"
},
{
"id": "D",
"text": "It requires large land areas"
}
],
"prompt": "What advantage does solar energy have in terms of environmental impact?",
"solution": "C",
"variant": "text",
},
{
"id": 4,
"options": [
{
"id": "A",
"text": "By burning fossil fuels"
},
{
"id": "B",
"text": "By harnessing wind's kinetic energy"
},
{
"id": "C",
"text": "By using sunlight"
},
{
"id": "D",
"text": "By utilizing underground heat"
}
],
"prompt": "How do wind turbines generate electricity?",
"solution": "B",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": True,
"minTimer": 20,
"text": {
"content": "In recent years, there has been a significant shift towards renewable energy sources as societies "
"strive to reduce their dependence on fossil fuels and combat the effects of climate change. Renewable "
"energy, derived from sources such as sunlight, wind, and water, offers a promising alternative to "
"traditional energy generation methods.\\nSolar power, harnessed from the sun's rays, has gained immense "
"popularity. Photovoltaic cells, commonly known as solar panels, capture sunlight and convert it into "
"electricity. This technology has become more efficient and affordable, contributing to a growing number "
"of solar installations on rooftops and solar farms. Solar energy not only reduces greenhouse gas "
"emissions but also grants individuals and businesses the ability to generate their own power.\\nSimilarly, "
"wind energy has emerged as a reliable and clean source of electricity. Wind turbines, often found in "
"wind farms, harness the kinetic energy of moving air to turn blades and generate electricity. These "
"structures are strategically placed in areas with consistent wind patterns, contributing to the overall "
"energy grid. Wind power has the advantage of scalability, with both small and large installations being "
"feasible options.\\nHydropower, generated from flowing water in rivers and dams, is another vital renewable "
"energy source. The force of water is used to turn turbines, which then produce electricity. While hydropower "
"has a long history, advancements in technology have led to more efficient and environmentally friendly "
"designs. However, the construction of dams for hydropower can have significant ecological and social "
"impacts, requiring careful consideration.\\nGeothermal energy, originating from the Earth's heat, is "
"also gaining attention. This energy source is harnessed through underground steam and hot water reservoirs, "
"which are tapped for electricity generation and heating. Geothermal power plants have a relatively small "
"environmental footprint and provide a consistent source of energy, making them a viable option in regions "
"with suitable geological conditions.\\nIn conclusion, the transition to renewable energy sources marks a "
"pivotal step towards sustainable and environmentally conscious energy generation. Solar, wind, hydropower, "
"and geothermal energy offer diverse options that can collectively contribute to reducing carbon emissions "
"and combating climate change. As technology continues to evolve and economies adapt, the potential for "
"widespread adoption of renewable energy remains promising.",
"title": "The Rise of Renewable Energy"
},
"type": "academic"
}
reading_to_insert_2 = {
"exercises": [
{
"allowRepetition": True,
"id": str(uuid.uuid4()),
"prompt": "Complete the summary below. Click a blank to select the corresponding word(s) for it.\\nThere are "
"more words than spaces so you will not use them all. You may use any of the words more than once.",
"solutions": [
{
"id": "1",
"solution": "Earth"
},
{
"id": "2",
"solution": "ecosystems"
},
{
"id": "3",
"solution": "biodiversity"
},
{
"id": "4",
"solution": "pollination"
},
{
"id": "5",
"solution": "genetic"
},
{
"id": "6",
"solution": "protection"
},
{
"id": "7",
"solution": "healthy"
},
{
"id": "8",
"solution": "sustainable"
}
],
"text": "Biodiversity, the range of life forms on {{1}}, is essential for ecosystem health and stability. "
"Interactions among species in {{2}} support various ecological processes. However, human activities "
"like habitat destruction and pollution threaten {{3}}, impacting natural systems and human well-being. "
"Ecosystems, with species adapted over time, perform vital functions such as nutrient cycling and {{4}}. "
"The loss of biodiversity disrupts these processes, affecting ecosystem stability. Preserving {{5}} diversity "
"is crucial for disease resilience and adaptation. Addressing biodiversity decline requires habitat {{6}}, "
"sustainable practices, and awareness. In conclusion, safeguarding biodiversity is vital for {{7}} ecosystems "
"and human societies, demanding proactive conservation and {{8}} efforts.",
"type": "fillBlanks",
"words": ["Earth", "fossil", "alternative", "ecosystems", "healthy", "sustainable",
"contributes", "genetic", "surged", "pollination", "scalable", "solar", "accessible",
"climate", "environmental", "biodiversity", "impact", "protection", "options", "challenges"]
},
{
"id": str(uuid.uuid4()),
"maxWords": 3,
"prompt": "Answer the questions below.\\nChoose <b>NO MORE THAN THREE WORDS</b> from the passage for each answer.",
"solutions": [
{
"id": 1,
"options": ["Variety of life"]
},
{
"id": 2,
"options": ["Maintains health"]
},
{
"id": 3,
"options": ["Habitat destruction", "pollution", "climate change"]
},
{
"id": 4,
"options": ["Deforestation", "overfishing"]
},
{
"id": 5,
"options": ["Essential functions"]
},
{
"id": 6,
"options": ["Pollination"]
},
{
"id": 7,
"options": ["Disrupts relationships", "imbalances"]
},
{
"id": 8,
"options": ["Unchecked population growth", "effects on vegetation"]
},
{
"id": 9,
"options": ["Diseases"]
},
{
"id": 10,
"options": ["Supports pollination"]
},
],
"text": "What is biodiversity?{{1}}\\nHow does biodiversity impact ecosystems?{{2}}\\nWhat activities threaten "
"biodiversity?{{3}}\\nName a human activity impacting biodiversity.{{4}}\nWhat functions do ecosystems "
"perform?{{5}}\\nWhat do bees support?{{6}}\\nHow does biodiversity loss affect ecosystems?{{7}}\\nWhat "
"can result from apex predator decline?{{8}}\\nWhat does genetic diversity buffer against?{{9}}\\nWhy "
"is genetic diversity important?{{10}}",
"type": "writeBlanks"
}
],
"isDiagnostic": True,
"minTimer": 20,
"text": {
"content": "Biodiversity, the variety of life forms on Earth, plays a critical role in maintaining ecosystem health "
"and stability. The interactions between different species within ecosystems create intricate networks "
"that support various ecological processes. However, human activities such as habitat destruction, "
"pollution, and climate change are placing immense pressure on biodiversity, leading to potential "
"consequences for both natural systems and human well-being.\\nEcosystems are composed of a multitude "
"of species that have evolved over millions of years, adapting to their environments and developing "
"unique roles within their ecosystems. This diversity ensures that ecosystems can perform essential "
"functions, such as nutrient cycling, pest control, and pollination. For instance, bees and other "
"pollinators contribute to the reproduction of numerous plant species, thereby supporting food production "
"for humans and other animals.\\nThe loss of biodiversity can disrupt these intricate relationships, "
"leading to imbalances that reverberate throughout ecosystems. As species disappear, the stability of "
"ecosystems may be compromised, and the services they provide can be compromised as well. For example, "
"the decline of apex predators in a habitat can result in unchecked population growth of their prey, "
"causing cascading effects on vegetation and other species.\\nBiodiversity is also vital for preserving "
"genetic diversity within species. This diversity acts as a buffer against diseases, allowing some "
"individuals to survive and reproduce when others succumb. Moreover, it enables species to adapt to "
"changing environmental conditions over time. The genetic diversity of crops is especially crucial for "
"ensuring food security and resilience in the face of changing climates and emerging diseases.\\nAddressing "
"the decline in biodiversity requires a multifaceted approach. Conservation efforts should focus on "
"protecting and restoring habitats, implementing sustainable land-use practices, and reducing pollution. "
"In addition, raising public awareness about the value of biodiversity and its role in human well-being "
"is essential. International cooperation is also necessary, as many species and ecosystems span multiple "
"countries.\\nIn conclusion, biodiversity is a cornerstone of healthy ecosystems and is closely intertwined "
"with human societies. As we recognize the intricate connections between species and ecosystems, it becomes "
"imperative to take proactive steps to safeguard biodiversity for current and future generations. This "
"requires a commitment to sustainable practices and a collective effort to protect the diverse web of "
"life on our planet.",
"title": "Biodiversity and Ecosystem Health"
},
"type": "academic"
}
reading_p1_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "Do the following statements agree with the information given in Reading Passage 1?",
"questions": [
{
"id": "1",
"prompt": "Bees are solely responsible for the pollination of all flowering plants mentioned in the passage.",
"solution": False
},
{
"id": "2",
"prompt": "Bee populations have been declining due to factors such as habitat loss, pesticide exposure, and climate changes.",
"solution": True
},
{
"id": "3",
"prompt": "The decline in bee populations has no impact on the agricultural industry or food prices.",
"solution": False
}
],
"type": "trueFalse"
},
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "Providing shade to plants"
},
{
"id": "B",
"text": "Controlling pest populations"
},
{
"id": "C",
"text": "Attracting other pollinators"
},
{
"id": "D",
"text": "Creating intricate webs"
}
],
"prompt": "What is the primary role of bees in ecosystems according to the passage?",
"solution": "B",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "30%"
},
{
"id": "B",
"text": "50%"
},
{
"id": "C",
"text": "80%"
},
{
"id": "D",
"text": "100%"
}
],
"prompt": "Approximately how much of flowering plants rely on animal pollinators like bees for fertilization?",
"solution": "C",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "It leads to lower food prices"
},
{
"id": "B",
"text": "It ensures larger crop sizes"
},
{
"id": "C",
"text": "It provides diverse and nutritious diets"
},
{
"id": "D",
"text": "It reduces the need for pesticides"
}
],
"prompt": "Why is the role of bees in enhancing crop productivity beneficial for consumers?",
"solution": "C",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": True,
"minTimer": 20,
"text": {
"content": "Bees, often regarded as unassuming insects, play a pivotal role in the intricate web of ecosystems "
"around the world. Beyond their humble appearance, these industrious creatures contribute substantially "
"to the health and diversity of both natural environments and human communities.\\nAt the heart of their "
"significance lies their role as pollinators. Bees facilitate the reproduction of various plants by "
"transferring pollen between flowers as they collect nectar. This seemingly simple act has profound "
"consequences for the propagation of plant species. In fact, it's estimated that approximately 80% of "
"flowering plants rely on animal pollinators like bees for fertilization.\\nThe value of bee-mediated "
"pollination extends well beyond the plant kingdom. A significant portion of the global food supply "
"hinges on the pollination services that bees provide. Crops such as apples, blueberries, almonds, "
"and cucumbers owe their successful yields to the diligent work of bees. Their role in enhancing crop "
"productivity is not only beneficial for farmers but also for consumers who enjoy diverse and nutritious "
"diets.\\nHowever, the bee populations worldwide have been facing challenges and declines in recent "
"years. Multiple factors, including habitat loss, pesticide exposure, and climate changes, have "
"contributed to this decline. The consequences of dwindling bee populations reverberate throughout "
"ecosystems. Reduced pollination can lead to decreased plant diversity, affecting animals that rely "
"on these plants for food and habitat.\\nThe decline in bee populations also has economic implications. "
"The agricultural industry heavily relies on pollination, and the absence of sufficient bee populations "
"can result in lower crop yields and increased production costs. This, in turn, can impact food prices "
"and livelihoods.\\nEfforts to address the decline in bee populations encompass various strategies. "
"Conservation initiatives involve creating and preserving bee-friendly habitats, reducing pesticide "
"usage, and raising awareness about the importance of bees in ecosystems. Furthermore, researchers "
"are investigating bee biology and behavior to better understand their needs and vulnerabilities."
"\\nIn conclusion, bees, often underestimated in their significance, are integral components of ecosystems. "
"Their role as pollinators contributes to the survival of numerous plant species and the stability of "
"the food chain. Acknowledging their importance and taking steps to protect their populations are "
"vital for maintaining healthy ecosystems and ensuring sustainable food production for generations "
"to come.",
"title": "The Importance of Bees in Ecosystems"
},
"type": "academic"
}
reading_p1_to_insert_2 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "Do the following statements agree with the information given in Reading Passage 1?",
"questions": [
{
"id": "1",
"prompt": "The Industrial Revolution occurred during the 19th century.",
"solution": "true"
},
{
"id": "2",
"prompt": "The mechanization of production processes during the Industrial Revolution mainly brought improvements to manual labor.",
"solution": "false"
},
{
"id": "3",
"prompt": "Urbanization, resulting from the Industrial Revolution, led to increased pollution and improved living conditions in cities.",
"solution": "not_given"
}
],
"type": "trueFalse"
},
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "Enhancing economic growth"
},
{
"id": "B",
"text": "Ensuring cultural diversity"
},
{
"id": "C",
"text": "Safeguarding individual dignity and worth"
},
{
"id": "D",
"text": "Promoting political ideologies"
}
],
"prompt": "What is the central purpose of human rights, according to the passage?",
"solution": "C",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "Economic rights"
},
{
"id": "B",
"text": "Political rights"
},
{
"id": "C",
"text": "Social rights"
},
{
"id": "D",
"text": "Cultural rights"
}
],
"prompt": "Which rights enable citizens to participate in governance and express opinions freely?",
"solution": "B",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "Ignoring human rights abuses"
},
{
"id": "B",
"text": "Upholding human rights and preventing abuses"
},
{
"id": "C",
"text": "Encouraging social unrest"
},
{
"id": "D",
"text": "Perpetrating human rights violations"
}
],
"prompt": "What role do international organizations and treaties play in relation to human rights?",
"solution": "B",
"variant": "text",
},
{
"id": 4,
"options": [
{
"id": "A",
"text": "Promoting social unrest"
},
{
"id": "B",
"text": "Leading to instability"
},
{
"id": "C",
"text": "Causing conflicts"
},
{
"id": "D",
"text": "Fostering stability and justice"
}
],
"prompt": "What impact does respecting human rights have on societies, as mentioned in the passage?",
"solution": "D",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": True,
"minTimer": 20,
"text": {
"content": "The Industrial Revolution, a defining chapter in human history, sparked profound changes in the way "
"societies operated and interacted with their environment. This period, which spanned from the late "
"18th to the 19th century, marked a remarkable shift from agrarian economies to industrialized ones. "
"The effects of this revolution continue to shape the modern world.\\nThe key catalyst of the Industrial "
"Revolution was the mechanization of production processes. Innovations such as the steam engine, "
"spinning jenny, and power loom brought automation and efficiency to industries that had long relied "
"on manual labor. This transformation had far-reaching consequences, drastically altering economic "
"structures and social dynamics.\\nFactories emerged as centers of production, drawing rural populations "
"to urban areas in search of work. Urbanization surged as people migrated from countryside villages "
"to cities in pursuit of employment opportunities. This shift gave rise to new challenges, including "
"overcrowding, inadequate living conditions, and increased pollution. At the same time, it paved the "
"way for the growth of the working class and the development of labor movements advocating for improved "
"working conditions.\\nThe Industrial Revolution also revolutionized transportation and communication. "
"The invention of the steam-powered locomotive and the expansion of railway networks facilitated the "
"movement of goods and people at an unprecedented pace. Additionally, the telegraph brought about "
"almost instantaneous long-distance communication, transforming the way information was disseminated."
"\\nWhile the Industrial Revolution brought significant advancements, it was not without drawbacks. "
"The rapid industrialization led to environmental degradation as factories emitted pollutants into the "
"air and water. This had adverse effects on public health and ecosystems. Child labor and poor working "
"conditions were also prevalent, prompting social reform movements and labor unions to demand better "
"treatment and protection for workers.\\nThe Industrial Revolution not only transformed economies and "
"societies but also spurred intellectual and cultural changes. Scientific discoveries and technological "
"innovations inspired new philosophies, such as capitalism and socialism, which shaped economic and "
"political ideologies. Literature, art, and education adapted to the changing times, reflecting both "
"the marvels and challenges of the industrial age.\\nIn conclusion, the Industrial Revolution stands "
"as a pivotal period that propelled societies into a new era of industrialization and urbanization. "
"While it brought about unprecedented economic growth and technological advancement, it also raised "
"critical social, environmental, and ethical concerns that continue to resonate in today's world. "
"Understanding the multifaceted impacts of the Industrial Revolution is essential for comprehending "
"the foundations of the modern global landscape.",
"title": "The Importance of Bees in Ecosystems"
},
"type": "academic"
}
reading_p2_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "Do the following statements agree with the information given in Reading Passage 2?",
"questions": [
{
"id": "1",
"prompt": "Human rights are considered essential for social harmony and justice.",
"solution": "true"
},
{
"id": "2",
"prompt": "Human rights encompass civil, political, economic, social, and cultural aspects.",
"solution": "true"
},
{
"id": "3",
"prompt": "Economic, social, and cultural rights aim to address social inequalities.",
"solution": "true"
},
{
"id": "4",
"prompt": "Respecting human rights is associated with stable and just societies.",
"solution": "true"
},
{
"id": "5",
"prompt": "The digital age has not affected human rights concerns.",
"solution": "false"
}
],
"type": "trueFalse"
},
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "Enhancing economic growth"
},
{
"id": "B",
"text": "Ensuring cultural diversity"
},
{
"id": "C",
"text": "Safeguarding individual dignity and worth"
},
{
"id": "D",
"text": "Promoting political ideologies"
}
],
"prompt": "What is the central purpose of human rights, according to the passage?",
"solution": "C",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "Economic rights"
},
{
"id": "B",
"text": "Political rights"
},
{
"id": "C",
"text": "Social rights"
},
{
"id": "D",
"text": "Cultural rights"
}
],
"prompt": "Which rights enable citizens to participate in governance and express opinions freely?",
"solution": "B",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "Ignoring human rights abuses"
},
{
"id": "B",
"text": "Upholding human rights and preventing abuses"
},
{
"id": "C",
"text": "Encouraging social unrest"
},
{
"id": "D",
"text": "Perpetrating human rights violations"
}
],
"prompt": "What role do international organizations and treaties play in relation to human rights?",
"solution": "B",
"variant": "text",
},
{
"id": 4,
"options": [
{
"id": "A",
"text": "Promoting social unrest"
},
{
"id": "B",
"text": "Leading to instability"
},
{
"id": "C",
"text": "Causing conflicts"
},
{
"id": "D",
"text": "Fostering stability and justice"
}
],
"prompt": "What impact does respecting human rights have on societies, as mentioned in the passage?",
"solution": "D",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": True,
"minTimer": 20,
"text": {
"content": "Human rights, the fundamental principles that safeguard the inherent dignity and worth of every individual, "
"form the cornerstone of just and equitable societies. These rights are universally acknowledged and "
"are considered essential for maintaining social harmony, justice, and the well-being of humanity."
"\\nAt the heart of the concept of human rights is the recognition that every person is entitled to "
"certain inalienable rights, regardless of their nationality, ethnicity, gender, or any other characteristic. "
"These rights encompass civil, political, economic, social, and cultural dimensions, aiming to ensure that "
"individuals can lead a life of dignity, freedom, and opportunity.\\nCivil and political rights encompass "
"the rights to life, liberty, and personal security. They protect individuals from arbitrary arrests, "
"torture, and discrimination. These rights also include the freedom of expression, assembly, and association, "
"enabling citizens to participate in their governance and voice their opinions without fear of reprisal."
"\\nEconomic, social, and cultural rights focus on ensuring that all individuals have access to essential "
"resources for a decent standard of living. This includes the right to education, health care, housing, "
"and work. These rights are particularly critical for addressing social inequalities and providing opportunities "
"for marginalized groups.\\nThe importance of human rights is underscored by their role in promoting "
"peace and preventing conflicts. When human rights are respected, societies are more likely to be stable "
"and just. Conversely, the violation of human rights often leads to social unrest, tensions, and "
"even violence. International organizations and treaties play a crucial role in upholding human rights "
"globally, aiming to prevent human rights abuses and hold accountable those who perpetrate them.\\nDespite "
"the significant progress made in advancing human rights, challenges persist. Discrimination, gender "
"inequality, and the violation of the rights of minorities and vulnerable groups remain prevalent in "
"many parts of the world. Moreover, the digital age has introduced new dimensions to human rights concerns, "
"with issues such as online privacy and cyberbullying warranting attention.\\nIn conclusion, the "
"importance of human rights cannot be overstated. These rights provide a moral compass for societies "
"and governments, guiding them toward justice, equality, and respect for every individual. The continued "
"efforts to protect and uphold human rights are essential for fostering inclusive and harmonious "
"communities on both local and global scales.",
"title": "The Importance of Human Rights"
},
"type": "academic"
}
speaking_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "Do you have any hobbies? If so, what are they?\\nHow did you become interested in your hobbies?\\nWhat"
" do you enjoy the most about your hobbies?\\nDo you think hobbies are important for people? Why or"
" why not?",
"title": "Hobbies",
"type": "speaking"
},
{
"id": str(uuid.uuid4()),
"prompts": [
"Describe the location and setting of the place.",
"What natural features or attractions were present?",
"How did you feel during your visit to this place?",
"Explain why you found this place to be beautiful and memorable."
],
"text": "Describe a place you visited that has a lot of natural beauty.",
"title": "Place with natural beauty",
"type": "speaking"
}
],
"isDiagnostic": True,
"minTimer": 5,
"module": "speaking"
}
speaking_to_insert_2 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "What does your typical day look like?\\nAre there any activities you do regularly in the mornings?\\n"
"How do you usually spend your evenings after work or school?\\nIs there anything you'd like to change "
"about your daily routine? Why?",
"title": "Daily Routine",
"type": "speaking"
},
{
"id": str(uuid.uuid4()),
"prompts": [
"Introduce the title and author of the book.",
"Describe the plot or content of the book briefly.",
"Explain why the book had a significant impact on you.",
"Discuss how the book influenced your thoughts or actions."
],
"text": "Talk about a book that had a significant impact on you.",
"title": "Impactful book",
"type": "speaking"
}
],
"isDiagnostic": True,
"minTimer": 5,
"module": "speaking"
}
speaking_to_insert_3 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "Have you traveled to any foreign countries? Which ones?\\nWhat do you like about traveling?\\nHow do "
"you decide on your travel destinations?\\nCan you share a memorable experience from one of your trips?",
"title": "travel",
"type": "speaking"
},
{
"id": str(uuid.uuid4()),
"prompts": [
"Explain the situation or context where you had to make a quick decision.",
"What factors influenced your decision-making process?",
"How did you feel about making the decision quickly?",
"Reflect on the outcome of your decision and what you learned from it."
],
"text": "Describe a time when you had to make a decision quickly.",
"title": "Quick decision",
"type": "speaking"
}
],
"isDiagnostic": True,
"minTimer": 5,
"module": "speaking"
}
speaking_pt1_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "Do you enjoy traveling?\\nWhat was the last place you visited for a holiday?\\nDo you prefer traveling "
"by car or by plane?\\nWhat type of places do you like to visit when you travel?",
"title": "Travel",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
speaking_pt1_to_insert_2 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "Do you like cooking?\\nWhat is your favorite type of food?\\nDo you often eat out or prefer home-cooked meals?",
"title": "Food and Cooking",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
speaking_pt1_to_insert_3 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [],
"text": "What kind of job do you do?\\nDo you enjoy your job/studies?\\nWhat are your future career plans?"
"\\nHow do you balance your work/studies and personal life?",
"title": "Work and Study",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
speaking_pt2_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [
"Explain the circumstances that led to your need to adapt to a new environment.",
"What were the major changes or differences in this new environment?",
"How did you handle the process of adapting to these changes?",
"Reflect on the impact this experience had on your adaptability and personal growth."
],
"text": "Describe an occasion when you had to adapt to a new environment.",
"title": "New Environment",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
speaking_pt2_to_insert_2 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [
"Explain the situation where you were a part of a team.",
"What role did you play in the team, and what was the task or project?",
"How did effective teamwork contribute to the successful completion of the task?",
"Reflect on the skills you developed and the importance of teamwork."
],
"text": "Describe a time when you worked as part of a team.",
"title": "Team member",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
speaking_pt2_to_insert_3 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prompts": [
"Explain the occasion or celebration you took the initiative to organize.",
"What were the main tasks and responsibilities you had to handle?",
"How did you plan and coordinate the event to ensure its success?",
"Reflect on the overall experience of organizing the event and its impact."
],
"text": "Describe an event or celebration you organized.",
"title": "Event Organization",
"type": "speaking"
}
],
"isDiagnostic": False,
"minTimer": 5,
"module": "speaking"
}
writing_to_insert_1 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Some people believe that technology has made communication between individuals less personal and "
"more impersonal. Others argue that technology has improved communication by making it more accessible. "
"Discuss both viewpoints and give your own opinion.",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_2 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Some people think that the best way to reduce crime is to give longer prison sentences. Others, "
"however, believe there are better alternatives for reducing crime. Discuss both sides and give "
"your own opinion.",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_3 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "In many countries, children are engaged in part-time jobs alongside their studies. What are the "
"advantages and disadvantages of this trend? Give your opinion and support it with relevant examples.",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_4 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Some people argue that the government should provide free education at all levels. Others believe "
"that individuals should be responsible for covering their educational expenses. Discuss both "
"perspectives and support your opinion with examples.",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_5 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Gender equality and women's rights have made significant progress in many parts of the world. "
"However, some argue that there is still a long way to go in achieving true equality between men "
"and women. Discuss both viewpoints and give your",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_6 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Some people believe that children should be allowed to choose their own career paths from an early "
"age, while others think they should follow traditional paths such as medicine, law, and engineering. "
"What is your opinion, and can you provide examples to support your view?",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_7 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "The increasing number of cars on the roads is a major cause of air pollution. What are the "
"effects of this pollution on public health and the environment?",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_8 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "Some people argue that schools should focus on teaching students practical skills for adult life, "
"such as managing money and organizing a household. Others believe that schools should mainly "
"concentrate on academic subjects. Discuss both views and give your opinion.",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
writing_to_insert_9 = {
"exercises": [
{
"id": str(uuid.uuid4()),
"prefix": "You should spend about 40 minutes on this task.\nPresent a written argument or case to an educated "
"reader with no specialist knowledge of the following topic:",
"prompt": "In many countries, the levels of pollution and waste are increasing. What are the main causes of "
"this increase, and what measures could be taken to address these problems?",
"suffix": "You should write at least 250 words.\nUse your own ideas, knowledge and experience and support "
"your arguments with examples and relevant evidence.",
"type": "writing",
"wordCounter": {
"limit": 250,
"type": "min"
}
}
],
"isDiagnostic": True,
"minTimer": 40,
"module": "writing",
"task": "2"
}
listening_to_insert_1 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fhotel_reservation.mp3?alt=media&token=7c6a88f9-b71a-41f4-8581-d9a0574f4d44"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"maxWords": 3,
"prompt": "You will hear a conversation between a customer and a receptionist at a hotel. Complete the form "
"below using no more than three words or a number.",
"solutions": [
{
"id": 1,
"solution": ["Johnson", "Mr. Johnson"]
},
{
"id": 2,
"solution": ["15th of September", "fifteenth of September"]
},
{
"id": 3,
"solution": ["Deluxe double room"]
},
{
"id": 4,
"solution": ["Three nights", "3 nights"]
},
],
"text": "Name of Customer:{{1}}\\nDate of Arrival:{{2}}\\nType of Room:{{3}}\\nNumber of Nights:{{4}}",
"type": "writeBlanks"
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_to_insert_2 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Forientation_day.mp3?alt=media&token=b6e57cce-dbfa-48e4-a910-6d63726ee694"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "To introduce students to their courses."
},
{
"id": "B",
"text": "To help students find accommodation."
},
{
"id": "C",
"text": "To give students a campus tour."
},
{
"id": "D",
"text": "To provide information about extracurricular activities."
}
],
"prompt": "What is the purpose of orientation day?",
"solution": "C",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "Lecture Hall A"
},
{
"id": "B",
"text": "Student Union Building"
},
{
"id": "C",
"text": "Sports Complex"
},
{
"id": "D",
"text": "Library Auditorium"
}
],
"prompt": "Where will the welcome speech take place?",
"solution": "D",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "To introduce students to their courses."
},
{
"id": "B",
"text": "To provide information about extracurricular activities."
},
{
"id": "C",
"text": "To help students find accommodation."
},
{
"id": "D",
"text": "To address university administration concerns."
}
],
"prompt": "What is the main goal of the welcome speech during orientation day?",
"solution": "B",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_to_insert_3 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Ftravel_agent.mp3?alt=media&token=e9bb9ba0-9a23-4d25-8e04-ce9b7dbc3021"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"allowRepetition": True,
"options": [
{
"id": "A",
"sentence": "Offers an opportunity to explore multiple cities at one fixed cost."
},
{
"id": "B",
"sentence": "Provides a leisurely way to see scenic landscapes along a river."
},
{
"id": "C",
"sentence": "Requires passengers to arrive at the airport well in advance."
},
{
"id": "D",
"sentence": "Allows travelers to follow their own route and schedule."
},
{
"id": "E",
"sentence": "Includes meals and onboard entertainment during the trip."
}
],
"prompt": "Listen to a conversation between a travel agent and a customer regarding different travel options. "
"Match the travel options with the appropriate descriptions.",
"sentences": [
{
"id": "1",
"sentence": "Train journey",
"solution": "A"
},
{
"id": "2",
"sentence": "Cruise",
"solution": "C"
},
{
"id": "3",
"sentence": "Flight",
"solution": "D"
},
{
"id": "4",
"sentence": "Self-drive tour",
"solution": "E"
},
{
"id": "5",
"sentence": "Bus tour",
"solution": "B"
}
],
"type": "matchSentences"
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_to_insert_4 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fcooking_delights.mp3?alt=media&token=9a6be453-1e42-4b87-bb80-b027e178ccc5"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"allowRepetition": True,
"options": [
{
"id": "A",
"sentence": "A dish prepared with fresh herbs, olives, and tomatoes."
},
{
"id": "B",
"sentence": "A flavorful dish with a mix of vegetables and aromatic spices."
},
{
"id": "C",
"sentence": "A noodle dish with a kick of chili and a tangy sauce."
}
],
"prompt": "You hear a conversation between a radio host and a chef talking about a cooking show. "
"Match the chef's special dishes with their descriptions.",
"sentences": [
{
"id": "1",
"sentence": "Spicy Thai Noodles",
"solution": "C"
},
{
"id": "2",
"sentence": "Mediterranean Grilled Fish",
"solution": "A"
},
{
"id": "3",
"sentence": "Vegetarian Curry",
"solution": "B"
}
],
"type": "matchSentences"
}
],
"isDiagnostic": False,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_to_insert_5 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fhotel_reservation_2.mp3?alt=media&token=1088bc79-aa1f-4b95-b50e-478d9b3e5a75"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"maxWords": 3,
"prompt": "You will hear a conversation between a customer and a receptionist at a hotel. Complete the form "
"below using no more than three words or a number.",
"solutions": [
{
"id": 1,
"solution": ["Sarah Thompson", "Ms. Thompson"]
},
{
"id": 2,
"solution": ["15th of July", "fifteenth of July"]
},
{
"id": 3,
"solution": ["Deluxe room"]
},
{
"id": 4,
"solution": ["Three nights", "3 nights"]
},
{
"id": 5,
"solution": ["555-1234", "5551234"]
},
],
"text": "Name:{{1}}\\nCheck-in Date:{{2}}\\nType of Room:{{3}}\\nNumber of Nights:{{4}}\\nContact Number:{{5}}",
"type": "writeBlanks"
}
],
"isDiagnostic": False,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_to_insert_6 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fresearch_project.mp3?alt=media&token=2243f144-e1fa-4a01-bc83-33b57c1ff49a"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "You will hear a conversation between a student and a professor discussing a research project. "
"Listen carefully and answer the following questions.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "Environmental conservation"
},
{
"id": "B",
"text": "Climate change"
},
{
"id": "C",
"text": "Renewable energy sources"
},
{
"id": "D",
"text": "Erosion control strategies"
}
],
"prompt": "What is the main topic of the research project?",
"solution": "B",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "In academic journals"
},
{
"id": "B",
"text": "In a documentary"
},
{
"id": "C",
"text": "In a newspaper article"
},
{
"id": "D",
"text": "At a research seminar"
}
],
"prompt": "Where did the student find information about their research topic?",
"solution": "A",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "Surveys"
},
{
"id": "B",
"text": "Experiments"
},
{
"id": "C",
"text": "Interviews"
},
{
"id": "D",
"text": "Observations"
}
],
"prompt": "What method does the professor suggest for conducting the research?",
"solution": "A",
"variant": "text",
},
{
"id": 4,
"options": [
{
"id": "A",
"text": "Personal interest"
},
{
"id": "B",
"text": "Course requirement"
},
{
"id": "C",
"text": "Availability of data"
},
{
"id": "D",
"text": "Career advancement"
}
],
"prompt": "What is the student's primary reason for choosing this research topic?",
"solution": "A",
"variant": "text",
},
{
"id": 5,
"options": [
{
"id": "A",
"text": "Research proposal"
},
{
"id": "B",
"text": "Final report"
},
{
"id": "C",
"text": "Literature review"
},
{
"id": "D",
"text": "Presentation slides"
}
],
"prompt": "What does the student need to submit by next week?",
"solution": "C",
"variant": "text",
},
{
"id": 6,
"options": [
{
"id": "A",
"text": "5"
},
{
"id": "B",
"text": "10"
},
{
"id": "C",
"text": "15"
},
{
"id": "D",
"text": "20"
}
],
"prompt": "How many sources are recommended for the literature review?",
"solution": "B",
"variant": "text",
},
{
"id": 7,
"options": [
{
"id": "A",
"text": "Request an extension"
},
{
"id": "B",
"text": "Contact the professor for guidance"
},
{
"id": "C",
"text": "Change the research topic"
},
{
"id": "D",
"text": "Collaborate with classmates"
}
],
"prompt": "What should the student do if they encounter difficulties during the research process?",
"solution": "B",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": False,
"minTimer": 7,
"module": "listening",
"section": 1
}
listening_section_2_to_insert_1 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fmuseum_guide.mp3?alt=media&token=bfb9aea9-4006-4e11-af9a-1594232b4c20"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"maxWords": 3,
"prompt": "You will hear a guide giving information about a museum exhibition. Complete the sentences using no more than three words or a number.",
"solutions": [
{
"id": 1,
"options": ["Art and Culture"]
},
{
"id": 2,
"options": ["10 AM"]
},
{
"id": 3,
"options": ["ID", "Card", "student ID", "senior citizen card"]
},
{
"id": 4,
"options": ["day"]
},
{
"id": 5,
"options": ["45"]
}
],
"text": "The exhibition is titled \"Exploring the History of {{1}}.\"\\nThe museum opens at {{2}} on weekdays."
"\\nVisitors can get a discount with a valid {{3}}.\\nThe museum offers a guided tour every {{4}}."
"\\nThe guided tour lasts approximately {{5}} minutes.",
"type": "writeBlanks"
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 2
}
listening_section_2_to_insert_2 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Flecture_renewable_energy.mp3?alt=media&token=ccf7a033-c2a8-4c02-ae23-1375f6e94abe"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"maxWords": 2,
"prompt": "Listen to a lecture about renewable energy sources. Answer the following questions in one or two words.",
"solutions": [
{
"id": 1,
"options": ["Solar power"]
},
{
"id": 2,
"options": ["Wind energy"]
},
{
"id": 3,
"options": ["Water heaters", "electric vehicles"]
},
{
"id": 4,
"options": ["Low emissions"]
}
],
"text": "What is the most common source of renewable energy worldwide?{{1}}\\nWhat do wind turbines convert "
"into electricity?{{3}}\\nWhat can solar panels be used to power in homes?{{4}}"
"\\nWhat is the benefit of geothermal energy in terms of emissions?{{5}}",
"type": "writeBlanks"
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 2
}
listening_section_2_to_insert_3 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Ffestival_presentation.mp3?alt=media&token=1602eebd-b292-49a3-93e5-5c0a003216a1"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"allowRepetition": True,
"options": [
{
"id": "A",
"sentence": "Cultural workshops"
},
{
"id": "B",
"sentence": "Street food vendors"
},
{
"id": "C",
"sentence": "Live music performances"
},
{
"id": "D",
"sentence": "Children's activities"
},
{
"id": "E",
"sentence": "Art exhibitions"
}
],
"prompt": " Listen to a presentation about a local festival and match the activities with the appropriate festival days.",
"sentences": [
{
"id": "1",
"sentence": "Day One",
"solution": "C"
},
{
"id": "2",
"sentence": "Day Two",
"solution": "A"
},
{
"id": "3",
"sentence": "Day Three",
"solution": "B"
},
{
"id": "4",
"sentence": "Day Four",
"solution": "E"
},
{
"id": "5",
"sentence": "Day Five",
"solution": "D"
}
],
"type": "matchSentences"
}
],
"isDiagnostic": True,
"minTimer": 7,
"module": "listening",
"section": 2
}
listening_section_2_to_insert_4 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Foutdoor_activities.mp3?alt=media&token=23dd6202-315e-40c4-bb4e-da70d64e00d5"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"prompt": "Select the appropriate option.",
"questions": [
{
"id": 1,
"options": [
{
"id": "A",
"text": "To describe the benefits of outdoor activities"
},
{
"id": "B",
"text": "To provide a weather forecast"
},
{
"id": "C",
"text": "To discuss the history of sports"
},
{
"id": "A",
"text": "To promote local businesses"
}
],
"prompt": "What is the main purpose of the monologue?",
"solution": "C",
"variant": "text",
},
{
"id": 2,
"options": [
{
"id": "A",
"text": "Hiking"
},
{
"id": "B",
"text": "Cycling"
},
{
"id": "C",
"text": "Birdwatching"
},
{
"id": "D",
"text": "Horseback riding"
}
],
"prompt": "According to the speaker, which outdoor activity requires specialized gear?",
"solution": "C",
"variant": "text",
},
{
"id": 3,
"options": [
{
"id": "A",
"text": "Athletic sportswear"
},
{
"id": "B",
"text": "Formal attire"
},
{
"id": "C",
"text": "Heavy winter gear"
},
{
"id": "D",
"text": "Light and casual clothing"
}
],
"prompt": "What is the recommended dress code for hiking?",
"solution": "D",
"variant": "text",
},
{
"id": 4,
"options": [
{
"id": "A",
"text": "1 hour"
},
{
"id": "B",
"text": "Half a day"
},
{
"id": "C",
"text": "2 days"
},
{
"id": "D",
"text": "3 hours"
}
],
"prompt": "How long is the guided cycling tour?",
"solution": "B",
"variant": "text",
},
{
"id": 5,
"options": [
{
"id": "A",
"text": "Exotic mammals"
},
{
"id": "B",
"text": "Rare bird species"
},
{
"id": "C",
"text": "Aquatic plants"
},
{
"id": "D",
"text": "Reptiles and amphibians"
}
],
"prompt": "What can participants expect to see during the birdwatching sessions?",
"solution": "B",
"variant": "text",
},
{
"id": 6,
"options": [
{
"id": "A",
"text": "Speed racing"
},
{
"id": "B",
"text": "Underwater photography"
},
{
"id": "C",
"text": "Bird spotting"
},
{
"id": "D",
"text": "Relaxation and exploration"
}
],
"prompt": "What is the main focus of the kayaking sessions?",
"solution": "D",
"variant": "text",
},
{
"id": 7,
"options": [
{
"id": "A",
"text": "Cooler temperatures"
},
{
"id": "B",
"text": "Higher chance of rain"
},
{
"id": "C",
"text": "More crowded locations"
},
{
"id": "D",
"text": "Longer daylight hours"
}
],
"prompt": "What is the advantage of the afternoon slot for outdoor activities?",
"solution": "A",
"variant": "text",
}
],
"type": "multipleChoice",
}
],
"isDiagnostic": False,
"minTimer": 7,
"module": "listening",
"section": 2
}
listening_section_2_to_insert_5 = {
"audio": {
"repeatableTimes": 3,
"source": "https://firebasestorage.googleapis.com/v0/b/mti-ielts.appspot.com/o/listening_recordings%2Fclean_cities.mp3?alt=media&token=24bb3c23-6a84-4641-9849-324dd9d7bf50"
},
"exercises": [
{
"id": str(uuid.uuid4()),
"allowRepetition": True,
"options": [
{
"id": "A",
"sentence": "The importance of reducing carbon footprint."
},
{
"id": "B",
"sentence": "Encouraging mixed-use developments and reducing excessive commuting."
},
{
"id": "C",
"sentence": "Creation of parks, gardens, and green rooftops."
},
{
"id": "D",
"sentence": "Reducing waste sent to landfills and incinerators."
},
{
"id": "E",
"sentence": "Development of electric buses and bike-sharing programs."
},
{
"id": "F",
"sentence": "Harmonious coexistence between humans and nature."
},
{
"id": "G",
"sentence": "Education about energy conservation."
}
],
"prompt": " Listen to a presentation about clean cities and match the sentences from the monologue with their corresponding ideas or concepts.",
"sentences": [
{
"id": "1",
"sentence": "Clean cities prioritize the health of their residents and the environment.",
"solution": "F"
},
{
"id": "2",
"sentence": "Efficient waste management involves recycling and proper waste segregation.",
"solution": "D"
},
{
"id": "3",
"sentence": "Sustainable public transportation systems reduce air pollution and traffic congestion.",
"solution": "E"
},
{
"id": "4",
"sentence": "Green spaces and urban planning improve air quality and provide recreational areas.",
"solution": "C"
},
{
"id": "5",
"sentence": "Public awareness campaigns educate citizens about responsible consumption.",
"solution": "A"
},
{
"id": "5",
"sentence": "Collaboration among government, businesses, and citizens is crucial for clean cities.",
"solution": "B"
},
{
"id": "5",
"sentence": "Investments in renewable energy contribute to the overall cleanliness of cities.",
"solution": "G"
}
],
"type": "matchSentences"
}
],
"isDiagnostic": False,
"minTimer": 7,
"module": "listening",
"section": 2
}
# Falta section 3 e 4 do listening
# writing task 1 com imagens ...
# speaking 3 é discussao lol
# Get a reference to the Firestore database
db = firestore.client()
# JSON data to insert
# Add the JSON data to Firestore
collection_ref = db.collection('listening')
document_ref = collection_ref.add(listening_section_2_to_insert_4)
print(f"Document added with ID: {document_ref}")
document_ref = collection_ref.add(listening_section_2_to_insert_5)
print(f"Document added with ID: {document_ref}")