Manaranjan commited on
Commit
64483c4
·
verified ·
1 Parent(s): c03d9c3

deploy at 2024-09-17 18:24:14.593157

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+ WORKDIR /code
3
+ COPY --link --chown=1000 . .
4
+ RUN mkdir -p /tmp/cache/
5
+ RUN chmod a+rwx -R /tmp/cache/
6
+ ENV HF_HUB_CACHE=HF_HOME
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ ENV PYTHONUNBUFFERED=1 PORT=7860
10
+ CMD ["python", "main.py"]
Science_Components_of_Food.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MCQ": [
3
+ {
4
+ "question": "Which nutrient mainly provides energy to our body?",
5
+ "option_a": "Proteins",
6
+ "option_b": "Carbohydrates",
7
+ "option_c": "Vitamins",
8
+ "option_d": "Minerals",
9
+ "answer": "Carbohydrates"
10
+ },
11
+ {
12
+ "question": "What is the function of proteins in our body?",
13
+ "option_a": "Provides energy",
14
+ "option_b": "Helps in growth and repair",
15
+ "option_c": "Keeps eyes healthy",
16
+ "option_d": "Helps in digestion",
17
+ "answer": "Helps in growth and repair"
18
+ },
19
+ {
20
+ "question": "Which vitamin is needed to keep our skin and eyes healthy?",
21
+ "option_a": "Vitamin A",
22
+ "option_b": "Vitamin C",
23
+ "option_c": "Vitamin D",
24
+ "option_d": "Vitamin E",
25
+ "answer": "Vitamin A"
26
+ },
27
+ {
28
+ "question": "Which mineral helps in maintaining healthy bones and teeth?",
29
+ "option_a": "Iron",
30
+ "option_b": "Calcium",
31
+ "option_c": "Phosphorous",
32
+ "option_d": "Iodine",
33
+ "answer": "Calcium"
34
+ },
35
+ {
36
+ "question": "Which food is a rich source of Vitamin C?",
37
+ "option_a": "Milk",
38
+ "option_b": "Eggs",
39
+ "option_c": "Lemon",
40
+ "option_d": "Rice",
41
+ "answer": "Lemon"
42
+ },
43
+ {
44
+ "question": "What is roughage?",
45
+ "option_a": "A type of carbohydrate",
46
+ "option_b": "A protein source",
47
+ "option_c": "Dietary fibers from plant products",
48
+ "option_d": "A mineral",
49
+ "answer": "Dietary fibers from plant products"
50
+ },
51
+ {
52
+ "question": "Which food item is rich in fats?",
53
+ "option_a": "Bread",
54
+ "option_b": "Butter",
55
+ "option_c": "Spinach",
56
+ "option_d": "Egg",
57
+ "answer": "Butter"
58
+ },
59
+ {
60
+ "question": "Which of the following is a deficiency disease caused by lack of Vitamin D?",
61
+ "option_a": "Rickets",
62
+ "option_b": "Beri-beri",
63
+ "option_c": "Scurvy",
64
+ "option_d": "Anemia",
65
+ "answer": "Rickets"
66
+ },
67
+ {
68
+ "question": "Which vitamin helps in the absorption of calcium for strong bones?",
69
+ "option_a": "Vitamin C",
70
+ "option_b": "Vitamin B",
71
+ "option_c": "Vitamin D",
72
+ "option_d": "Vitamin K",
73
+ "answer": "Vitamin D"
74
+ },
75
+ {
76
+ "question": "Which nutrient is also called 'body building food'?",
77
+ "option_a": "Carbohydrates",
78
+ "option_b": "Fats",
79
+ "option_c": "Vitamins",
80
+ "option_d": "Proteins",
81
+ "answer": "Proteins"
82
+ },
83
+ {
84
+ "question": "Which vitamin deficiency leads to night blindness?",
85
+ "option_a": "Vitamin A",
86
+ "option_b": "Vitamin C",
87
+ "option_c": "Vitamin D",
88
+ "option_d": "Vitamin K",
89
+ "answer": "Vitamin A"
90
+ },
91
+ {
92
+ "question": "What is the primary source of carbohydrates?",
93
+ "option_a": "Meat",
94
+ "option_b": "Rice",
95
+ "option_c": "Butter",
96
+ "option_d": "Fish",
97
+ "answer": "Rice"
98
+ },
99
+ {
100
+ "question": "Which mineral is necessary for preventing anemia?",
101
+ "option_a": "Calcium",
102
+ "option_b": "Iodine",
103
+ "option_c": "Iron",
104
+ "option_d": "Phosphorus",
105
+ "answer": "Iron"
106
+ },
107
+ {
108
+ "question": "Which of the following foods is a good source of protein?",
109
+ "option_a": "Fish",
110
+ "option_b": "Rice",
111
+ "option_c": "Butter",
112
+ "option_d": "Sugar",
113
+ "answer": "Fish"
114
+ },
115
+ {
116
+ "question": "Which of the following is the richest source of Vitamin D?",
117
+ "option_a": "Carrot",
118
+ "option_b": "Orange",
119
+ "option_c": "Sunlight",
120
+ "option_d": "Milk",
121
+ "answer": "Sunlight"
122
+ },
123
+ {
124
+ "question": "Which of these vitamins helps in the healing of wounds?",
125
+ "option_a": "Vitamin A",
126
+ "option_b": "Vitamin C",
127
+ "option_c": "Vitamin D",
128
+ "option_d": "Vitamin E",
129
+ "answer": "Vitamin C"
130
+ },
131
+ {
132
+ "question": "Which vitamin deficiency causes scurvy?",
133
+ "option_a": "Vitamin A",
134
+ "option_b": "Vitamin B",
135
+ "option_c": "Vitamin C",
136
+ "option_d": "Vitamin D",
137
+ "answer": "Vitamin C"
138
+ },
139
+ {
140
+ "question": "What is the main function of fats in our body?",
141
+ "option_a": "Growth and repair",
142
+ "option_b": "Provide energy",
143
+ "option_c": "Strengthen bones",
144
+ "option_d": "Improve eyesight",
145
+ "answer": "Provide energy"
146
+ },
147
+ {
148
+ "question": "Which of the following diseases is caused by iodine deficiency?",
149
+ "option_a": "Anemia",
150
+ "option_b": "Beri-beri",
151
+ "option_c": "Goitre",
152
+ "option_d": "Rickets",
153
+ "answer": "Goitre"
154
+ },
155
+ {
156
+ "question": "What type of diet contains all the essential nutrients in the right proportions?",
157
+ "option_a": "Rich diet",
158
+ "option_b": "Balanced diet",
159
+ "option_c": "Fat-rich diet",
160
+ "option_d": "Protein diet",
161
+ "answer": "Balanced diet"
162
+ }
163
+ ],
164
+ "ShortTypes": [
165
+ {
166
+ "question": "What are the major nutrients in our food?",
167
+ "answer": "The major nutrients are carbohydrates, proteins, fats, vitamins, and minerals."
168
+ },
169
+ {
170
+ "question": "What is roughage?",
171
+ "answer": "Roughage is the dietary fiber mainly from plant products that helps in digestion."
172
+ },
173
+ {
174
+ "question": "Which nutrient is called 'body building food'?",
175
+ "answer": "Proteins are called 'body building food' as they help in growth and repair of the body."
176
+ },
177
+ {
178
+ "question": "What are deficiency diseases?",
179
+ "answer": "Deficiency diseases occur when a person does not get enough nutrients over time."
180
+ },
181
+ {
182
+ "question": "What is the role of vitamins in our body?",
183
+ "answer": "Vitamins help in protecting our body from diseases and keeping it healthy."
184
+ },
185
+ {
186
+ "question": "What is a balanced diet?",
187
+ "answer": "A balanced diet is one that contains all essential nutrients in the right amounts."
188
+ },
189
+ {
190
+ "question": "Which vitamin is essential for good eyesight?",
191
+ "answer": "Vitamin A is essential for maintaining good eyesight."
192
+ },
193
+ {
194
+ "question": "What is the primary function of carbohydrates?",
195
+ "answer": "Carbohydrates provide energy to our body."
196
+ },
197
+ {
198
+ "question": "Why is water essential for our body?",
199
+ "answer": "Water helps absorb nutrients from food and removes waste from the body."
200
+ },
201
+ {
202
+ "question": "What happens when there is a deficiency of iron in the diet?",
203
+ "answer": "A deficiency of iron can lead to anemia, a condition where the blood lacks healthy red cells."
204
+ }
205
+ ],
206
+ "ProblemSolving": [
207
+ {
208
+ "question": "Explain the importance of a balanced diet and how you can ensure that you are eating one.",
209
+ "answer": "A balanced diet provides all the essential nutrients in the correct proportions, including carbohydrates, proteins, fats, vitamins, minerals, and water. It helps in maintaining overall health, growth, and energy levels. To ensure you are eating a balanced diet, include a variety of foods such as fruits, vegetables, grains, dairy, and protein-rich foods like meat or legumes. Avoid excessive intake of fats and sugars. Regularly assess your meals to check if all the essential nutrients are being included."
210
+ },
211
+ {
212
+ "question": "Describe how deficiency of Vitamin D affects the body and suggest ways to prevent it.",
213
+ "answer": "A deficiency of Vitamin D can lead to a condition called rickets in children, which causes soft and weak bones. In adults, it may result in osteomalacia, leading to bone pain and muscle weakness. To prevent Vitamin D deficiency, ensure adequate exposure to sunlight, as the body produces Vitamin D when exposed to sunlight. Include Vitamin D-rich foods like fish, egg yolks, and fortified milk in your diet."
214
+ },
215
+ {
216
+ "question": "How would you test a food item for the presence of starch? Explain the steps.",
217
+ "answer": "To test for the presence of starch, you will need a small sample of the food item and iodine solution. First, take the food item and add a few drops of iodine solution to it. If the food contains starch, it will turn blue-black in color. This color change indicates the presence of starch in the food item. This is a simple and commonly used test to check for carbohydrates in food."
218
+ },
219
+ {
220
+ "question": "What steps can be taken to prevent anemia caused by iron deficiency, and what foods should be included in your diet?",
221
+ "answer": "Anemia caused by iron deficiency can be prevented by including iron-rich foods in the diet. Foods like spinach, lentils, red meat, eggs, and fortified cereals are excellent sources of iron. Additionally, consuming Vitamin C-rich foods, such as citrus fruits, can enhance the absorption of iron from plant-based sources. To prevent anemia, maintain a balanced diet with sufficient iron intake and avoid skipping meals that contain essential nutrients."
222
+ },
223
+ {
224
+ "question": "Explain how you would test for fats in a food item, and why this test is important.",
225
+ "answer": "To test for fats, take a small quantity of the food item, wrap it in a piece of paper, and crush it. After crushing, check the paper for an oily patch. If the paper has an oily translucent patch when held against light, the food item contains fats. This test is important because fats are essential for energy storage, insulation, and cell structure, but excessive consumption of fats can lead to obesity and other health problems. Testing for fats helps understand the nutritional content of food."
226
+ }
227
+ ]
228
+ }
Science_Getting_to_Know_Plants.json ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MCQ": [
3
+ {
4
+ "question": "Which part of the plant conducts water and minerals from the roots to other parts?",
5
+ "option_a": "Stem",
6
+ "option_b": "Leaf",
7
+ "option_c": "Flower",
8
+ "option_d": "Fruit",
9
+ "answer": "Stem"
10
+ },
11
+ {
12
+ "question": "What are plants with weak stems that spread on the ground called?",
13
+ "option_a": "Trees",
14
+ "option_b": "Shrubs",
15
+ "option_c": "Creepers",
16
+ "option_d": "Climbers",
17
+ "answer": "Creepers"
18
+ },
19
+ {
20
+ "question": "Which of these has parallel venation?",
21
+ "option_a": "Mango leaf",
22
+ "option_b": "Grass leaf",
23
+ "option_c": "Tulsi leaf",
24
+ "option_d": "China rose leaf",
25
+ "answer": "Grass leaf"
26
+ },
27
+ {
28
+ "question": "What type of root does a plant with reticulate venation have?",
29
+ "option_a": "Taproot",
30
+ "option_b": "Fibrous root",
31
+ "option_c": "Aerial root",
32
+ "option_d": "None",
33
+ "answer": "Taproot"
34
+ },
35
+ {
36
+ "question": "Which part of the plant anchors it to the soil?",
37
+ "option_a": "Stem",
38
+ "option_b": "Root",
39
+ "option_c": "Leaf",
40
+ "option_d": "Flower",
41
+ "answer": "Root"
42
+ },
43
+ {
44
+ "question": "What is the green pigment in leaves that helps in photosynthesis?",
45
+ "option_a": "Chlorophyll",
46
+ "option_b": "Xylem",
47
+ "option_c": "Phloem",
48
+ "option_d": "Stomata",
49
+ "answer": "Chlorophyll"
50
+ },
51
+ {
52
+ "question": "Which process allows plants to lose water through their leaves?",
53
+ "option_a": "Respiration",
54
+ "option_b": "Photosynthesis",
55
+ "option_c": "Transpiration",
56
+ "option_d": "Absorption",
57
+ "answer": "Transpiration"
58
+ },
59
+ {
60
+ "question": "Which part of the flower produces pollen?",
61
+ "option_a": "Sepal",
62
+ "option_b": "Petal",
63
+ "option_c": "Stamen",
64
+ "option_d": "Pistil",
65
+ "answer": "Stamen"
66
+ },
67
+ {
68
+ "question": "Which part of the flower becomes the fruit?",
69
+ "option_a": "Petal",
70
+ "option_b": "Sepal",
71
+ "option_c": "Ovary",
72
+ "option_d": "Stamen",
73
+ "answer": "Ovary"
74
+ },
75
+ {
76
+ "question": "Which of the following is an example of a shrub?",
77
+ "option_a": "Mango tree",
78
+ "option_b": "Rose plant",
79
+ "option_c": "Grass",
80
+ "option_d": "Pumpkin plant",
81
+ "answer": "Rose plant"
82
+ },
83
+ {
84
+ "question": "What type of plant has hard and thick stems with branches high above the ground?",
85
+ "option_a": "Herb",
86
+ "option_b": "Shrub",
87
+ "option_c": "Tree",
88
+ "option_d": "Creeper",
89
+ "answer": "Tree"
90
+ },
91
+ {
92
+ "question": "Which of these plants is a climber?",
93
+ "option_a": "Pumpkin",
94
+ "option_b": "Money plant",
95
+ "option_c": "Grass",
96
+ "option_d": "Tulsi",
97
+ "answer": "Money plant"
98
+ },
99
+ {
100
+ "question": "Which part of the plant is responsible for photosynthesis?",
101
+ "option_a": "Root",
102
+ "option_b": "Stem",
103
+ "option_c": "Leaf",
104
+ "option_d": "Flower",
105
+ "answer": "Leaf"
106
+ },
107
+ {
108
+ "question": "What are unwanted plants growing in fields called?",
109
+ "option_a": "Herbs",
110
+ "option_b": "Weeds",
111
+ "option_c": "Shrubs",
112
+ "option_d": "Trees",
113
+ "answer": "Weeds"
114
+ },
115
+ {
116
+ "question": "Which type of venation is found in tulsi leaves?",
117
+ "option_a": "Parallel venation",
118
+ "option_b": "Reticulate venation",
119
+ "option_c": "Radial venation",
120
+ "option_d": "None",
121
+ "answer": "Reticulate venation"
122
+ },
123
+ {
124
+ "question": "Which of these is not a function of the roots?",
125
+ "option_a": "Absorbing water",
126
+ "option_b": "Making food",
127
+ "option_c": "Anchoring the plant",
128
+ "option_d": "Absorbing minerals",
129
+ "answer": "Making food"
130
+ },
131
+ {
132
+ "question": "What kind of root system do plants with fibrous roots have?",
133
+ "option_a": "No roots",
134
+ "option_b": "Taproot",
135
+ "option_c": "Fibrous root",
136
+ "option_d": "Lateral root",
137
+ "answer": "Fibrous root"
138
+ },
139
+ {
140
+ "question": "What type of plant has a thin, flexible stem and requires support to grow upwards?",
141
+ "option_a": "Shrub",
142
+ "option_b": "Climber",
143
+ "option_c": "Creeper",
144
+ "option_d": "Herb",
145
+ "answer": "Climber"
146
+ },
147
+ {
148
+ "question": "What substance do plants use to make food during photosynthesis?",
149
+ "option_a": "Oxygen and water",
150
+ "option_b": "Carbon dioxide and water",
151
+ "option_c": "Sunlight and oxygen",
152
+ "option_d": "Nitrogen and water",
153
+ "answer": "Carbon dioxide and water"
154
+ },
155
+ {
156
+ "question": "Which part of a flower develops into seeds?",
157
+ "option_a": "Ovary",
158
+ "option_b": "Anther",
159
+ "option_c": "Sepals",
160
+ "option_d": "Ovules",
161
+ "answer": "Ovules"
162
+ }
163
+ ],
164
+ "ShortTypes": [
165
+ {
166
+ "question": "What is the function of roots?",
167
+ "answer": "Roots absorb water and minerals and anchor the plant in the soil."
168
+ },
169
+ {
170
+ "question": "What are climbers?",
171
+ "answer": "Climbers are plants with weak stems that need support to grow upwards."
172
+ },
173
+ {
174
+ "question": "What are veins in a leaf?",
175
+ "answer": "Veins are the lines on a leaf that carry water and nutrients."
176
+ },
177
+ {
178
+ "question": "What is the process of photosynthesis?",
179
+ "answer": "Photosynthesis is the process by which plants make food using sunlight, carbon dioxide, and water."
180
+ },
181
+ {
182
+ "question": "What are the main parts of a flower?",
183
+ "answer": "The main parts of a flower are sepals, petals, stamens, and pistil."
184
+ },
185
+ {
186
+ "question": "What are shrubs?",
187
+ "answer": "Shrubs are medium-sized plants with a hard stem but not very thick."
188
+ },
189
+ {
190
+ "question": "What is a fibrous root?",
191
+ "answer": "A fibrous root has many thin roots growing from the base of the stem."
192
+ },
193
+ {
194
+ "question": "What is the midrib of a leaf?",
195
+ "answer": "The midrib is the central, prominent line in the middle of the leaf."
196
+ },
197
+ {
198
+ "question": "What are sepals?",
199
+ "answer": "Sepals are small, leaf-like structures that protect the flower bud."
200
+ },
201
+ {
202
+ "question": "What is transpiration?",
203
+ "answer": "Transpiration is the process by which plants release water vapor through their leaves."
204
+ }
205
+ ],
206
+ "ProblemSolving": [
207
+ {
208
+ "question": "What is the importance of photosynthesis, and how does it help plants and other living beings?",
209
+ "answer": "Photosynthesis is essential because it allows plants to make their own food. During photosynthesis, plants use sunlight, carbon dioxide, and water to produce glucose (a type of sugar) and oxygen. This process not only provides energy for the plant to grow and reproduce, but it also produces oxygen, which is essential for the survival of humans and animals. Photosynthesis plays a crucial role in maintaining the balance of gases in the atmosphere and supports the entire food chain by providing energy to herbivores, which in turn are food for carnivores."
210
+ },
211
+ {
212
+ "question": "How do different parts of a plant work together to help it grow and survive?",
213
+ "answer": "Each part of a plant plays a specific role in ensuring its growth and survival. Roots absorb water and minerals from the soil and anchor the plant. The stem acts as a conduit, transporting water and nutrients from the roots to the leaves and other parts of the plant. Leaves are responsible for photosynthesis, making food for the plant using sunlight, water, and carbon dioxide. Flowers contain the reproductive parts of the plant, leading to the production of seeds and fruit. All these parts work together to help the plant grow, produce food, and reproduce."
214
+ },
215
+ {
216
+ "question": "Describe how the stem helps in the movement of water in plants and explain its significance.",
217
+ "answer": "The stem plays a vital role in the upward movement of water and minerals from the roots to other parts of the plant, such as the leaves. Inside the stem, specialized tissues called xylem are responsible for transporting water. The process begins when roots absorb water from the soil. Through capillary action and transpiration pull, the water moves upward through the xylem vessels. This water is essential for photosynthesis, cooling the plant through evaporation, and providing the necessary nutrients to other parts of the plant. Without this transportation system, the plant would not survive."
218
+ },
219
+ {
220
+ "question": "What are the differences between herbs, shrubs, and trees, and why is this classification important?",
221
+ "answer": "Herbs, shrubs, and trees are classified based on their size, stem structure, and branching patterns. Herbs are small plants with green and tender stems that are usually short-lived. Shrubs are medium-sized plants with hard stems and multiple branches that grow close to the ground. Trees are large, tall plants with thick, hard stems called trunks, and their branches form higher up. This classification helps in understanding the diverse forms of plants and their different adaptations. For example, trees provide shade, wood, and fruit, while herbs may be used for food and medicine. Recognizing these differences allows us to categorize plants effectively for various uses."
222
+ }
223
+ ]
224
+ }
Science_Lights_and_Reflections.json ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MCQ": [
3
+ {
4
+ "question": "Which of the following objects is luminous?",
5
+ "option_a": "Moon",
6
+ "option_b": "Torch",
7
+ "option_c": "Chair",
8
+ "option_d": "Book",
9
+ "answer": "Torch"
10
+ },
11
+ {
12
+ "question": "What kind of object allows light to pass through completely?",
13
+ "option_a": "Opaque",
14
+ "option_b": "Translucent",
15
+ "option_c": "Transparent",
16
+ "option_d": "Reflective",
17
+ "answer": "Transparent"
18
+ },
19
+ {
20
+ "question": "Which of the following will not form a shadow?",
21
+ "option_a": "Opaque object",
22
+ "option_b": "Transparent object",
23
+ "option_c": "Translucent object",
24
+ "option_d": "Reflective object",
25
+ "answer": "Transparent object"
26
+ },
27
+ {
28
+ "question": "Which of the following is an example of a translucent object?",
29
+ "option_a": "Glass",
30
+ "option_b": "Wax paper",
31
+ "option_c": "Wood",
32
+ "option_d": "Iron sheet",
33
+ "answer": "Wax paper"
34
+ },
35
+ {
36
+ "question": "Which type of object blocks all light from passing through?",
37
+ "option_a": "Opaque",
38
+ "option_b": "Transparent",
39
+ "option_c": "Translucent",
40
+ "option_d": "Luminous",
41
+ "answer": "Opaque"
42
+ },
43
+ {
44
+ "question": "What is necessary for a shadow to form?",
45
+ "option_a": "A source of light, a transparent object, and a screen",
46
+ "option_b": "A source of light, an opaque object, and a screen",
47
+ "option_c": "An opaque object and a screen",
48
+ "option_d": "A translucent object and light",
49
+ "answer": "A source of light, an opaque object, and a screen"
50
+ },
51
+ {
52
+ "question": "Which of the following best describes the nature of light?",
53
+ "option_a": "Light bends around objects",
54
+ "option_b": "Light travels in a straight line",
55
+ "option_c": "Light does not travel through transparent objects",
56
+ "option_d": "Light forms colors when it hits objects",
57
+ "answer": "Light travels in a straight line"
58
+ },
59
+ {
60
+ "question": "Which object would cast the darkest shadow?",
61
+ "option_a": "Glass",
62
+ "option_b": "Frosted glass",
63
+ "option_c": "Cardboard",
64
+ "option_d": "Cellophane paper",
65
+ "answer": "Cardboard"
66
+ },
67
+ {
68
+ "question": "What happens when light hits a mirror?",
69
+ "option_a": "The light passes through the mirror",
70
+ "option_b": "The light is absorbed by the mirror",
71
+ "option_c": "The light is reflected",
72
+ "option_d": "The light bends through the mirror",
73
+ "answer": "The light is reflected"
74
+ },
75
+ {
76
+ "question": "What type of image is formed in a pinhole camera?",
77
+ "option_a": "Erect and enlarged",
78
+ "option_b": "Erect and diminished",
79
+ "option_c": "Inverted and enlarged",
80
+ "option_d": "Inverted and diminished",
81
+ "answer": "Inverted and diminished"
82
+ },
83
+ {
84
+ "question": "Which of these allows some light to pass through but not all?",
85
+ "option_a": "Opaque object",
86
+ "option_b": "Transparent object",
87
+ "option_c": "Translucent object",
88
+ "option_d": "Reflective object",
89
+ "answer": "Translucent object"
90
+ },
91
+ {
92
+ "question": "What will be the color of a shadow?",
93
+ "option_a": "Same as the object",
94
+ "option_b": "Always black",
95
+ "option_c": "Depends on the light",
96
+ "option_d": "White",
97
+ "answer": "Always black"
98
+ },
99
+ {
100
+ "question": "Which one of the following can be used to see around corners?",
101
+ "option_a": "Magnifying glass",
102
+ "option_b": "Periscope",
103
+ "option_c": "Microscope",
104
+ "option_d": "Telescope",
105
+ "answer": "Periscope"
106
+ },
107
+ {
108
+ "question": "Which part of a shadow can appear lighter than the rest?",
109
+ "option_a": "The umbra",
110
+ "option_b": "The penumbra",
111
+ "option_c": "The core",
112
+ "option_d": "The outer region",
113
+ "answer": "The penumbra"
114
+ },
115
+ {
116
+ "question": "Which object creates the clearest reflection?",
117
+ "option_a": "A frosted window",
118
+ "option_b": "A shiny mirror",
119
+ "option_c": "A wooden door",
120
+ "option_d": "A steel plate",
121
+ "answer": "A shiny mirror"
122
+ },
123
+ {
124
+ "question": "What would happen to your reflection in a flat mirror if you moved farther away?",
125
+ "option_a": "The reflection would get bigger",
126
+ "option_b": "The reflection would get smaller",
127
+ "option_c": "The reflection would stay the same size",
128
+ "option_d": "The reflection would become upside down",
129
+ "answer": "The reflection would stay the same size"
130
+ },
131
+ {
132
+ "question": "Which of the following objects is an example of an opaque object?",
133
+ "option_a": "Clear glass",
134
+ "option_b": "Water",
135
+ "option_c": "Metal sheet",
136
+ "option_d": "Plastic wrap",
137
+ "answer": "Metal sheet"
138
+ },
139
+ {
140
+ "question": "Which statement about a pinhole camera is correct?",
141
+ "option_a": "It forms an inverted image",
142
+ "option_b": "It forms an erect image",
143
+ "option_c": "It enlarges the image",
144
+ "option_d": "It shows images in color",
145
+ "answer": "It forms an inverted image"
146
+ },
147
+ {
148
+ "question": "Which of these is an example of a natural source of light?",
149
+ "option_a": "Torch",
150
+ "option_b": "Sun",
151
+ "option_c": "Electric bulb",
152
+ "option_d": "Flashlight",
153
+ "answer": "Sun"
154
+ }
155
+ ],
156
+ "ShortTypes": [
157
+ {
158
+ "question": "What is a shadow?",
159
+ "answer": "A shadow is a dark area formed when an opaque object blocks the path of light."
160
+ },
161
+ {
162
+ "question": "Why can't we see objects in a completely dark room?",
163
+ "answer": "We can't see objects in a dark room because there is no light to reflect off the objects into our eyes."
164
+ },
165
+ {
166
+ "question": "What is a luminous object?",
167
+ "answer": "A luminous object is one that produces its own light, like the Sun or a torch."
168
+ },
169
+ {
170
+ "question": "What is the nature of the image formed by a pinhole camera?",
171
+ "answer": "The image formed by a pinhole camera is inverted and smaller than the actual object."
172
+ },
173
+ {
174
+ "question": "What is an opaque object?",
175
+ "answer": "An opaque object is one that does not allow light to pass through it."
176
+ },
177
+ {
178
+ "question": "How do mirrors help us see our reflection?",
179
+ "answer": "Mirrors reflect the light that falls on them, allowing us to see our own image."
180
+ },
181
+ {
182
+ "question": "What happens to light when it hits a transparent object?",
183
+ "answer": "When light hits a transparent object, it passes through the object completely."
184
+ },
185
+ {
186
+ "question": "What is the difference between transparent and translucent objects?",
187
+ "answer": "Transparent objects allow light to pass through completely, while translucent objects allow only partial light to pass through."
188
+ },
189
+ {
190
+ "question": "Why do shadows form only when there is a light source?",
191
+ "answer": "Shadows form when an opaque object blocks the path of light from a light source."
192
+ },
193
+ {
194
+ "question": "How does a periscope work?",
195
+ "answer": "A periscope uses mirrors to reflect light and allow us to see objects around corners."
196
+ }
197
+ ],
198
+ "ProblemSolving": [
199
+ {
200
+ "question": "Describe how you can create a shadow of an object. What are the necessary components and how does the size of the shadow change depending on the distance between the object and the light source?",
201
+ "answer": "To create a shadow, you need a source of light, an opaque object, and a screen. Place the opaque object in the path of light, and a shadow will form on the screen. The size of the shadow depends on the distance between the object and the light source. If the object is closer to the light source, the shadow will be larger. If the object is farther from the light source, the shadow will be smaller."
202
+ },
203
+ {
204
+ "question": "How does a pinhole camera work, and why do we see an inverted image through it?",
205
+ "answer": "A pinhole camera works by allowing light to pass through a tiny hole and project an image onto a screen inside the camera. Light from the top of the object passes through the pinhole and strikes the bottom of the screen, while light from the bottom of the object strikes the top of the screen, which results in the image being inverted. The smaller the hole, the sharper the image. The pinhole camera works because light travels in straight lines."
206
+ },
207
+ {
208
+ "question": "How do mirrors help in seeing around corners using a periscope? Explain the principle behind it.",
209
+ "answer": "A periscope uses two mirrors placed at 45-degree angles to reflect light from one point to another. When you look into a periscope, light from the object strikes the top mirror, which reflects it down to the second mirror, and then into your eyes. This allows you to see around corners or over obstacles. The principle behind it is the reflection of light, which changes the direction of the light rays without altering the image."
210
+ },
211
+ {
212
+ "question": "Why does the color of an object not affect the color of its shadow? Explain with an example.",
213
+ "answer": "The color of an object does not affect the color of its shadow because a shadow forms when an object blocks light, and not because of the light interacting with the object's color. Shadows are always black or dark because they are areas where light is blocked. For example, whether you hold a red apple or a green apple in front of a light source, the shadow will be the same color (black or dark), as it is the absence of light."
214
+ },
215
+ {
216
+ "question": "Explain why light travels in a straight line and how this concept helps in the formation of shadows and reflections.",
217
+ "answer": "Light travels in straight lines, a property known as rectilinear propagation. This straight-line movement is why shadows form when light is blocked by an opaque object. The light cannot bend around the object, so a shadow appears. Similarly, the concept of light traveling in straight lines helps explain how reflections work. When light hits a smooth surface like a mirror, it reflects off in a predictable direction. Both shadows and reflections depend on this principle of light traveling in straight lines."
218
+ }
219
+ ]
220
+ }
Science_Motion_and_Measurements.json ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MCQ": [
3
+ {
4
+ "question": "Which of the following is an example of rectilinear motion?",
5
+ "option_a": "A ball rolling down a hill",
6
+ "option_b": "A person riding a bicycle",
7
+ "option_c": "A child on a swing",
8
+ "option_d": "A car moving on a straight road",
9
+ "answer": "A car moving on a straight road"
10
+ },
11
+ {
12
+ "question": "What is the SI unit of length?",
13
+ "option_a": "Kilometre",
14
+ "option_b": "Centimetre",
15
+ "option_c": "Metre",
16
+ "option_d": "Millimetre",
17
+ "answer": "Metre"
18
+ },
19
+ {
20
+ "question": "Which type of motion does a ceiling fan exhibit when it is switched on?",
21
+ "option_a": "Rectilinear motion",
22
+ "option_b": "Circular motion",
23
+ "option_c": "Periodic motion",
24
+ "option_d": "Random motion",
25
+ "answer": "Circular motion"
26
+ },
27
+ {
28
+ "question": "How many centimetres are there in one metre?",
29
+ "option_a": "10",
30
+ "option_b": "100",
31
+ "option_c": "1000",
32
+ "option_d": "10000",
33
+ "answer": "100"
34
+ },
35
+ {
36
+ "question": "Which motion is observed in the hands of a clock?",
37
+ "option_a": "Rectilinear motion",
38
+ "option_b": "Circular motion",
39
+ "option_c": "Periodic motion",
40
+ "option_d": "Both Circular and Periodic",
41
+ "answer": "Both Circular and Periodic"
42
+ },
43
+ {
44
+ "question": "What is the unit of length most commonly used to measure long distances?",
45
+ "option_a": "Millimetre",
46
+ "option_b": "Centimetre",
47
+ "option_c": "Kilometre",
48
+ "option_d": "Metre",
49
+ "answer": "Kilometre"
50
+ },
51
+ {
52
+ "question": "Which type of motion does the swinging of a pendulum exhibit?",
53
+ "option_a": "Rectilinear motion",
54
+ "option_b": "Circular motion",
55
+ "option_c": "Periodic motion",
56
+ "option_d": "Random motion",
57
+ "answer": "Periodic motion"
58
+ },
59
+ {
60
+ "question": "What was the primary unit of measurement used in ancient Egypt?",
61
+ "option_a": "Cubit",
62
+ "option_b": "Inch",
63
+ "option_c": "Foot",
64
+ "option_d": "Yard",
65
+ "answer": "Cubit"
66
+ },
67
+ {
68
+ "question": "Which of the following is not a standard unit of length?",
69
+ "option_a": "Metre",
70
+ "option_b": "Foot",
71
+ "option_c": "Centimetre",
72
+ "option_d": "Kilometre",
73
+ "answer": "Foot"
74
+ },
75
+ {
76
+ "question": "Which device is commonly used to measure short lengths like the length of a pencil?",
77
+ "option_a": "Measuring tape",
78
+ "option_b": "Metre scale",
79
+ "option_c": "15 cm scale",
80
+ "option_d": "Odometer",
81
+ "answer": "15 cm scale"
82
+ },
83
+ {
84
+ "question": "Which type of motion does a sewing machine needle exhibit?",
85
+ "option_a": "Rectilinear motion",
86
+ "option_b": "Circular motion",
87
+ "option_c": "Periodic motion",
88
+ "option_d": "Rotational motion",
89
+ "answer": "Periodic motion"
90
+ },
91
+ {
92
+ "question": "What is the distance between Radha's home and her school if it is 3250 metres?",
93
+ "option_a": "3.25 kilometres",
94
+ "option_b": "32.5 kilometres",
95
+ "option_c": "325 kilometres",
96
+ "option_d": "0.325 kilometres",
97
+ "answer": "3.25 kilometres"
98
+ },
99
+ {
100
+ "question": "Which of the following motions is a combination of rectilinear and rotational motion?",
101
+ "option_a": "A rolling ball",
102
+ "option_b": "A swinging pendulum",
103
+ "option_c": "A fan blade spinning",
104
+ "option_d": "A clock hand moving",
105
+ "answer": "A rolling ball"
106
+ },
107
+ {
108
+ "question": "Which of the following is not a periodic motion?",
109
+ "option_a": "The hands of a clock",
110
+ "option_b": "The motion of a pendulum",
111
+ "option_c": "The motion of a swing",
112
+ "option_d": "A car moving on a road",
113
+ "answer": "A car moving on a road"
114
+ },
115
+ {
116
+ "question": "What is the correct position of the eye when taking measurements?",
117
+ "option_a": "Directly above the point",
118
+ "option_b": "Slightly above the point",
119
+ "option_c": "Below the point",
120
+ "option_d": "From any angle",
121
+ "answer": "Directly above the point"
122
+ },
123
+ {
124
+ "question": "Which motion describes the path of the Moon around the Earth?",
125
+ "option_a": "Circular motion",
126
+ "option_b": "Rectilinear motion",
127
+ "option_c": "Periodic motion",
128
+ "option_d": "Both Circular and Periodic",
129
+ "answer": "Both Circular and Periodic"
130
+ },
131
+ {
132
+ "question": "Which unit would be most appropriate to measure the length of a room?",
133
+ "option_a": "Kilometre",
134
+ "option_b": "Millimetre",
135
+ "option_c": "Centimetre",
136
+ "option_d": "Metre",
137
+ "answer": "Metre"
138
+ },
139
+ {
140
+ "question": "What device is used to measure curved lines?",
141
+ "option_a": "Metre scale",
142
+ "option_b": "Thread",
143
+ "option_c": "Protractor",
144
+ "option_d": "Odometer",
145
+ "answer": "Thread"
146
+ },
147
+ {
148
+ "question": "Which mode of transportation was developed after the invention of the steam engine?",
149
+ "option_a": "Boats",
150
+ "option_b": "Bicycles",
151
+ "option_c": "Railroads",
152
+ "option_d": "Bullock carts",
153
+ "answer": "Railroads"
154
+ }
155
+ ],
156
+ "ShortTypes": [
157
+ {
158
+ "question": "What is rectilinear motion?",
159
+ "answer": "Rectilinear motion is the motion of an object along a straight line."
160
+ },
161
+ {
162
+ "question": "What is the SI unit of length?",
163
+ "answer": "The SI unit of length is the metre."
164
+ },
165
+ {
166
+ "question": "What does periodic motion mean?",
167
+ "answer": "Periodic motion refers to motion that repeats itself after a fixed interval of time."
168
+ },
169
+ {
170
+ "question": "How do you measure the length of a curved line?",
171
+ "answer": "A curved line can be measured using a thread and then measuring the thread on a scale."
172
+ },
173
+ {
174
+ "question": "Why do we need standard units of measurement?",
175
+ "answer": "We need standard units of measurement to avoid confusion and ensure uniformity in measurements."
176
+ },
177
+ {
178
+ "question": "What is circular motion?",
179
+ "answer": "Circular motion is the movement of an object along a circular path."
180
+ },
181
+ {
182
+ "question": "What device is used to measure long distances?",
183
+ "answer": "An odometer is used to measure long distances."
184
+ },
185
+ {
186
+ "question": "What is the length of 1 kilometre in metres?",
187
+ "answer": "1 kilometre equals 1000 metres."
188
+ },
189
+ {
190
+ "question": "Why can a footstep not be used as a standard unit of length?",
191
+ "answer": "A footstep cannot be used as a standard unit because the length varies from person to person."
192
+ },
193
+ {
194
+ "question": "How is motion defined?",
195
+ "answer": "Motion is the change in the position of an object with time."
196
+ }
197
+ ],
198
+ "ProblemSolving": [
199
+ {
200
+ "question": "Explain how you would measure the length of a classroom using your foot as a unit. What problems might arise when comparing the measurements taken by different students?",
201
+ "answer": "To measure the length of the classroom using your foot, walk from one end of the room to the other, counting the number of steps. Each step will represent a unit of length. However, this method might give different results for different students because the length of each student's foot varies. To make the measurements more consistent, all students would need to use the same foot length or a standard measurement tool like a scale to measure accurately."
202
+ },
203
+ {
204
+ "question": "Describe the process of measuring a curved line, such as the path of a river, using a thread. Why can't we directly use a scale for such measurements?",
205
+ "answer": "To measure the length of a curved line like a river's path, you can use a piece of thread. Start by placing the thread along the curve, ensuring it follows the entire path. Once the entire length is covered, mark the thread and then stretch it out on a straight surface. Measure the length of the stretched thread with a metre scale. Directly using a straight scale for measuring curved lines would not be accurate because the scale can't bend along the curve."
206
+ },
207
+ {
208
+ "question": "Why is it important to have standard units of measurement across the world? Discuss the problems that might arise if different regions use different units.",
209
+ "answer": "Standard units of measurement are important because they ensure consistency and clarity in communication across different regions. If different areas used varying units, there would be confusion, especially in fields like trade, engineering, and science. For example, if one country measures distance in miles and another in kilometres, it would create issues in international travel and business. Standard units, like the metric system, simplify these processes and ensure that measurements are understood universally."
210
+ },
211
+ {
212
+ "question": "How would you measure the height of a tall tree using a measuring tape and some basic mathematical principles?",
213
+ "answer": "To measure the height of a tall tree, you can use the shadow method along with a measuring tape. First, measure the length of the tree’s shadow on the ground. Then, measure the length of the shadow of a smaller object whose height you already know, such as a stick. Use the proportion between the height of the stick and its shadow length to calculate the height of the tree. For example, if the stick's shadow is twice the length of the stick, and the tree’s shadow is 10 times longer than the stick’s shadow, the tree is five times taller than the stick."
214
+ },
215
+ {
216
+ "question": "Imagine you are designing a measuring device to measure long distances, like from one town to another. What features would you include in your design, and why?",
217
+ "answer": "In designing a measuring device for long distances, I would include an odometer-like feature that can accurately measure and display distances in kilometres or miles. It should be portable, easy to use, and capable of resetting after each measurement. I would include a GPS system for greater accuracy and to account for the curvature of the Earth in long distances. It would also be useful if the device had a function for storing or transmitting data to other devices for easy tracking and comparison."
218
+ }
219
+ ]
220
+ }
221
+
Science_Separation_of_Substances.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MCQ": [
3
+ {
4
+ "question": "What is the process used to separate grain seeds from stalks?",
5
+ "option_a": "Winnowing",
6
+ "option_b": "Threshing",
7
+ "option_c": "Handpicking",
8
+ "option_d": "Sieving",
9
+ "answer": "Threshing"
10
+ },
11
+ {
12
+ "question": "Which method is used to separate lighter husk particles from heavier grain seeds?",
13
+ "option_a": "Sieving",
14
+ "option_b": "Decantation",
15
+ "option_c": "Winnowing",
16
+ "option_d": "Evaporation",
17
+ "answer": "Winnowing"
18
+ },
19
+ {
20
+ "question": "Which of the following processes is used to separate sand and water?",
21
+ "option_a": "Winnowing",
22
+ "option_b": "Filtration",
23
+ "option_c": "Decantation",
24
+ "option_d": "Handpicking",
25
+ "answer": "Decantation"
26
+ },
27
+ {
28
+ "question": "What is the process of conversion of water into vapor called?",
29
+ "option_a": "Condensation",
30
+ "option_b": "Evaporation",
31
+ "option_c": "Filtration",
32
+ "option_d": "Saturation",
33
+ "answer": "Evaporation"
34
+ },
35
+ {
36
+ "question": "What is used to separate impurities from rice before cooking?",
37
+ "option_a": "Handpicking",
38
+ "option_b": "Decantation",
39
+ "option_c": "Filtration",
40
+ "option_d": "Sedimentation",
41
+ "answer": "Sedimentation"
42
+ },
43
+ {
44
+ "question": "Which of these methods is used to obtain salt from seawater?",
45
+ "option_a": "Filtration",
46
+ "option_b": "Sedimentation",
47
+ "option_c": "Evaporation",
48
+ "option_d": "Winnowing",
49
+ "answer": "Evaporation"
50
+ },
51
+ {
52
+ "question": "Which process involves the settling of heavier substances at the bottom of a liquid?",
53
+ "option_a": "Sedimentation",
54
+ "option_b": "Filtration",
55
+ "option_c": "Evaporation",
56
+ "option_d": "Condensation",
57
+ "answer": "Sedimentation"
58
+ },
59
+ {
60
+ "question": "What happens when salt is mixed with water and stirred?",
61
+ "option_a": "It dissolves completely.",
62
+ "option_b": "It forms a separate layer.",
63
+ "option_c": "It floats on the water.",
64
+ "option_d": "It evaporates.",
65
+ "answer": "It dissolves completely."
66
+ },
67
+ {
68
+ "question": "What type of mixture is separated using a filter paper?",
69
+ "option_a": "Solid-liquid mixture",
70
+ "option_b": "Liquid-liquid mixture",
71
+ "option_c": "Gas-liquid mixture",
72
+ "option_d": "Solid-solid mixture",
73
+ "answer": "Solid-liquid mixture"
74
+ },
75
+ {
76
+ "question": "Which of the following methods is used to separate cream from milk?",
77
+ "option_a": "Filtration",
78
+ "option_b": "Evaporation",
79
+ "option_c": "Churning",
80
+ "option_d": "Sieving",
81
+ "answer": "Churning"
82
+ },
83
+ {
84
+ "question": "Which tool is commonly used in a kitchen to separate fine flour particles from larger impurities?",
85
+ "option_a": "Strainer",
86
+ "option_b": "Sieve",
87
+ "option_c": "Filter paper",
88
+ "option_d": "Plate",
89
+ "answer": "Sieve"
90
+ },
91
+ {
92
+ "question": "Which process uses the help of wind to separate components of a mixture?",
93
+ "option_a": "Winnowing",
94
+ "option_b": "Threshing",
95
+ "option_c": "Sieving",
96
+ "option_d": "Sedimentation",
97
+ "answer": "Winnowing"
98
+ },
99
+ {
100
+ "question": "What is the process where a liquid is poured out after the heavier solid settles at the bottom?",
101
+ "option_a": "Decantation",
102
+ "option_b": "Sedimentation",
103
+ "option_c": "Filtration",
104
+ "option_d": "Evaporation",
105
+ "answer": "Decantation"
106
+ },
107
+ {
108
+ "question": "Which of the following is an example of filtration?",
109
+ "option_a": "Separating tea leaves from tea",
110
+ "option_b": "Separating salt from seawater",
111
+ "option_c": "Separating husk from grains",
112
+ "option_d": "Separating sand from water",
113
+ "answer": "Separating tea leaves from tea"
114
+ },
115
+ {
116
+ "question": "What happens when water vapor condenses?",
117
+ "option_a": "It turns into a solid.",
118
+ "option_b": "It turns into liquid water.",
119
+ "option_c": "It remains a gas.",
120
+ "option_d": "It evaporates further.",
121
+ "answer": "It turns into liquid water."
122
+ },
123
+ {
124
+ "question": "Which separation technique is best for separating small stones from rice?",
125
+ "option_a": "Sieving",
126
+ "option_b": "Handpicking",
127
+ "option_c": "Decantation",
128
+ "option_d": "Sedimentation",
129
+ "answer": "Handpicking"
130
+ },
131
+ {
132
+ "question": "What is the purpose of a saturated solution?",
133
+ "option_a": "To dissolve all substances",
134
+ "option_b": "To stop dissolving more substances",
135
+ "option_c": "To evaporate faster",
136
+ "option_d": "To separate solid particles",
137
+ "answer": "To stop dissolving more substances"
138
+ },
139
+ {
140
+ "question": "Which of these is used to separate chalk powder mixed in water?",
141
+ "option_a": "Filtration",
142
+ "option_b": "Decantation",
143
+ "option_c": "Sedimentation",
144
+ "option_d": "Winnowing",
145
+ "answer": "Filtration"
146
+ },
147
+ {
148
+ "question": "What happens when you add more salt to a saturated solution?",
149
+ "option_a": "The salt dissolves completely.",
150
+ "option_b": "The salt settles at the bottom.",
151
+ "option_c": "The salt evaporates.",
152
+ "option_d": "The water evaporates.",
153
+ "answer": "The salt settles at the bottom."
154
+ },
155
+ {
156
+ "question": "What is the process of separating butter from milk called?",
157
+ "option_a": "Handpicking",
158
+ "option_b": "Churning",
159
+ "option_c": "Winnowing",
160
+ "option_d": "Sieving",
161
+ "answer": "Churning"
162
+ }
163
+ ],
164
+ "ShortTypes": [
165
+ {
166
+ "question": "What is filtration?",
167
+ "answer": "Filtration is a process used to separate an insoluble solid from a liquid using a filter."
168
+ },
169
+ {
170
+ "question": "What is the process of handpicking used for?",
171
+ "answer": "Handpicking is used to separate slightly larger impurities like stones from grains."
172
+ },
173
+ {
174
+ "question": "What is evaporation?",
175
+ "answer": "Evaporation is the process of converting a liquid into vapor by heating."
176
+ },
177
+ {
178
+ "question": "Why do we need to separate substances?",
179
+ "answer": "We separate substances to remove harmful impurities or to use the components separately."
180
+ },
181
+ {
182
+ "question": "What is decantation?",
183
+ "answer": "Decantation is the process of pouring out a liquid from a mixture after the heavier solid has settled."
184
+ },
185
+ {
186
+ "question": "How is cream separated from milk?",
187
+ "answer": "Cream is separated from milk using the process of churning."
188
+ },
189
+ {
190
+ "question": "What is sedimentation?",
191
+ "answer": "Sedimentation is the process where heavier solid particles settle down at the bottom of a liquid."
192
+ },
193
+ {
194
+ "question": "What is a saturated solution?",
195
+ "answer": "A saturated solution is one in which no more solute can dissolve in the solvent."
196
+ },
197
+ {
198
+ "question": "How can salt be obtained from seawater?",
199
+ "answer": "Salt can be obtained from seawater through the process of evaporation."
200
+ },
201
+ {
202
+ "question": "What is the purpose of winnowing?",
203
+ "answer": "Winnowing is used to separate lighter components from heavier components using wind."
204
+ }
205
+ ],
206
+ "ProblemSolving": [
207
+ {
208
+ "question": "Describe the steps involved in separating a mixture of sand and salt.",
209
+ "answer": "To separate sand and salt, first, add water to the mixture and stir. The salt dissolves in the water, while the sand settles at the bottom due to its heavier weight. Then, use decantation or filtration to separate the sand from the saltwater. Next, evaporate the water by heating it, leaving the salt behind. This method combines the processes of decantation, filtration, and evaporation."
210
+ },
211
+ {
212
+ "question": "How can we separate a mixture of rice and small pebbles?",
213
+ "answer": "To separate rice and small pebbles, the most suitable method is handpicking. Since the pebbles are visibly larger than the rice grains, we can easily pick them out by hand and separate them. In some cases, sieving can also be used to remove the pebbles from the rice if the size difference is significant enough. Handpicking is typically preferred for this task."
214
+ },
215
+ {
216
+ "question": "Explain the process of separating cream from milk, and why it is effective.",
217
+ "answer": "The process of separating cream from milk is called churning. In this process, the milk is vigorously stirred, which causes the fat (cream) to clump together and separate from the liquid. The cream is less dense than milk, so it rises to the top, making it easy to skim off. This method is widely used in dairies and homes to produce cream and butter. Churning is effective because it leverages the difference in density between the fat and the liquid components of milk."
218
+ },
219
+ {
220
+ "question": "How would you separate a mixture of sugar and water if you want to recover both substances?",
221
+ "answer": "To separate sugar and water from a solution, first, heat the mixture to evaporate the water. The water will turn into vapor and leave behind the sugar as a solid. To recover the water, you can use condensation. Collect the water vapor in a condenser, where it cools down and turns back into liquid form. This process allows you to recover both the sugar and the water, using evaporation and condensation."
222
+ },
223
+ {
224
+ "question": "What method would you use to separate a mixture of muddy water, and how does it work?",
225
+ "answer": "To separate muddy water, you would first use the process of sedimentation, where the heavier mud particles settle at the bottom. Then, you can pour out the clear water using decantation. If the water is still not clear, you can further filter it using a fine cloth or filter paper. Filtration removes the smaller particles that remain suspended in the water. This combination of sedimentation, decantation, and filtration is effective in obtaining clear water from a muddy mixture."
226
+ }
227
+ ]
228
+ }
config.ini ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [DEFAULT]
2
+ dataset_id = space-backup
3
+ db_dir = data
4
+ private_backup = True
5
+
generate/science.py ADDED
File without changes
main.py ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fasthtml_hf import setup_hf_backup
2
+ import pandas as pd
3
+ import random
4
+ import json
5
+ import traceback
6
+ from pydantic_core import from_json
7
+ from fasthtml.common import *
8
+
9
+ # Initialize the fastHtml application
10
+ app, rt = fast_app()
11
+
12
+ basepath = "/Users/manaranjanp/Documents/Work/MyLearnings/fastHTML/ClassApp"
13
+ topics = ['Science', 'Social']
14
+ chapters = {
15
+ 'Science': ['Separation_of_Substances',
16
+ 'Components_of_Food',
17
+ 'Getting_to_Know_Plants',
18
+ 'Motion_and_Measurements',
19
+ 'Lights_and_Reflections'],
20
+
21
+ 'Social': ['History', 'Civics']
22
+ }
23
+
24
+ class QuestionLoader:
25
+ def __init__(self, json_file):
26
+ # Load the Excel file and store each sheet as a dictionary of dictionaries
27
+ self.data = self.load_json_file(json_file)
28
+
29
+ def load_json_file(self, file_path):
30
+
31
+ with open(file_path, 'r') as file:
32
+ json_data = json.load(file) # Load the JSON data as a Python dictionary
33
+
34
+ return json_data
35
+
36
+ def random_question(self):
37
+ # Select a random sheet
38
+ random_sheet = random.choice(list(self.data.keys()))
39
+ # Select a random question from the sheet
40
+ random_question = random.choice(self.data[random_sheet])
41
+
42
+ print(f"Sheet {random_sheet}")
43
+ print(f"Question: {random_question}")
44
+
45
+ return random_sheet, random_question
46
+
47
+ # default_file_path = os.path.join(basepath, "Science_Separation_of_Substances.json")
48
+
49
+ def load_questions(qpath):
50
+ return QuestionLoader(qpath)
51
+
52
+ # q_loader = load_questions(default_file_path)
53
+
54
+ def mk_opts(nm, cs):
55
+ return (
56
+ Option(f'-- select {nm} --', disabled='', selected='', value=''),
57
+ *map(Option, cs))
58
+
59
+ @app.get('/getchapters')
60
+ def getchapters(topic: str):
61
+ print(topic)
62
+ return Div(Select(*mk_opts('chapter', chapters[topic]), name='chapter'))
63
+
64
+ # Define the route for the homepage
65
+ @app.get('/')
66
+ def homepage():
67
+ return Titled('Grade 6: Study Companion', Grid( getConfigForm(),
68
+ Div(
69
+ Div(id="result", style ="font-family:Helvetica; font-size=24pt;")
70
+ )
71
+ , style="grid-template-columns: 400px 1000px; gap: 50px;"
72
+ ), style="color:#DC143C; font-size:25px;")
73
+
74
+ # Function to generate the configuration form for the web interface
75
+ def getConfigForm():
76
+
77
+ topics_dropdown = Select(
78
+ *mk_opts('topic', topics),
79
+ name='topic',
80
+ get='getchapters', hx_target='#chapters')
81
+
82
+ return Card(Form(hx_post="/submit", hx_target="#result", hx_swap_oob="innerHTML")(
83
+ Div(
84
+ Label("Topics:", for_="topics"),
85
+ topics_dropdown),
86
+ Div(
87
+ Label("Chapters:", for_="chapter"),
88
+ # Div(Div(id='chapters'))),
89
+ Div(Select(*mk_opts('chapter', chapters["Science"]), name='chapter'), id='chapters')),
90
+ Div(
91
+ Button("Load Questions")
92
+ ),
93
+ Div(
94
+ Br(),
95
+ A("Developed by Manaranjan Pradhan", href="http://www.manaranjanp.com/",
96
+ target="_blank",
97
+ style = 'color: red; font-size: 16px;')
98
+ )))
99
+
100
+
101
+ def format_questions(sheet, question_data):
102
+ if(sheet == "MCQ"):
103
+ return Div(Label(Strong(sheet) , style="color:#F4A460; font-size:40px;"),
104
+ Label(Strong(question_data['question']), style="color:#3498db; font-size:25px;"),
105
+ Label("A. " + question_data['option_a']),
106
+ Label("B. " + question_data['option_b']),
107
+ Label("C. " + question_data['option_c']),
108
+ Label("D. " + question_data['option_d']),
109
+ Div(Div(id='qanswer'), Form(hx_post="/getanswer", hx_target="#qanswer")(
110
+ Hidden(question_data['answer'], id = 'answer'),
111
+ Button("Show Answer")), id='qanswer'))
112
+ else:
113
+ return Div(Label(Strong(sheet) , style="color:#F4A460; font-size:40px;"),
114
+ Label(Strong(question_data['question']), style="color:#3498db; font-size:25px;"),
115
+ Div(Div(id='qanswer'), Form(hx_post="/getanswer", hx_target="#qanswer")(
116
+ Hidden(question_data['answer'], id = 'answer'),
117
+ Button("Show Answer")), id='qanswer'))
118
+
119
+ # Define the route for form submission
120
+ @app.post('/submit')
121
+ async def post(d:dict):
122
+ try:
123
+ # Check if a file was uploaded
124
+
125
+ file_path = os.path.join(basepath, d['topic'] + "_" + d['chapter'] + ".json")
126
+ q_loader = load_questions(file_path)
127
+ sheet_name, question_data = q_loader.random_question()
128
+
129
+ return Card(
130
+ Div(format_questions(sheet_name, question_data)),
131
+ P(),
132
+ Div(Form(hx_post="/submit", hx_target="#result")(
133
+ Hidden(d['topic'], id = 'topic'),
134
+ Hidden(d['chapter'], id = 'chapter'),
135
+ Button("Next Question"))))
136
+ return
137
+
138
+ except BaseException as e:
139
+ print(traceback.format_exc())
140
+ return str(e)
141
+
142
+ # Define the route for form submission
143
+ @app.post('/getanswer')
144
+ async def getanswer(d:dict):
145
+ try:
146
+ print(f"Answer: {d['answer']}")
147
+ return Div(
148
+ P(Label(Strong("Answer"), style="color:#F4A460; font-size:40px;")),
149
+ Label(Strong(d['answer']), style="color:#FF4500; font-size:25px;"))
150
+
151
+ except BaseException as e:
152
+ print(traceback.format_exc())
153
+ return str(e)
154
+
155
+ #setup_hf_backup(app)
156
+
157
+ # Start the FastAPI server
158
+ serve()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-fasthtml