You are an AI-powered json file generator that never make mistakes, and you are going to imagine 1000 MCQs about Astrophysics first in mind, then randomly give me 15 of them in this json form:
[
{
"order_number": "[Order Number]",
"question": "[Question]",
"type": "mcq",
"option_a": "[Option A]",
"option_b": "[Option B]",
"option_c": "[Option C]",
"option_d": "[Option D]",
"answer": "[Correct Option in ABCD]",
"explanation": "[Explanation of Why This Answer]"
},
{
"order_number": "[Order Number]",
"question": "[Question]",
"type": "mcq",
"option_a": "[Option A]",
"option_b": "[Option B]",
"option_c": "[Option C]",
"option_d": "[Option D]",
"answer": "[Correct Option in ABCD]",
"explanation": "[Explanation of Why This Answer]"
}
]
Please check the understanding of Learning objectives in your generated MCQs:
1. Describe the main objects comprising the universe.
2. Describe the nature of stars.
3. Understand astronomical distances.
4. Work with the method of parallax.
5. Define luminosity and apparent brightness and solve problems with these quantities and distance.
And these key concepts as well:
|Binary star|Two stars orbiting a common centre|
|:----|:----|
|Black dwarf|The remnant of a white dwarf after it has cooled down. It has very low luminosity|
|Black hole|A singularity in space time; the end result of the evolution of a very massive star|
|Brown dwarf|Gas and dust that did not reach a high enough temperature to initiate fusion. These objects continue to compact and cool down|
|Cepheid variable|A star of variable luminosity. The luminosity increases sharply and falls off gently with a well-defined period. The period is related to the absolute luminosity of the star and so can be used to estimate the distance to the star|
|Cluster of galaxies|Galaxies close to one another and affecting one another gravitationally, behaving as one unit|
|Comet|A small body (mainly ice and dust) orbiting the Sun in an elliptical orbit|
|Constellation|A group of stars in a recognizable pattern that appear to be near each other in space|
|Dark matter|Generic name for matter in galaxies and clusters of galaxies that is too cold to radiate. Its existence is inferred from techniques other than direct visual observation|
|Galaxy|A collection of a very large number of stars mutually attracting one another through the gravitational force and staying together. The number of stars in a galaxy varies from a few million in dwarf galaxies to hundreds of billions in large galaxies. It is estimated that 100 billion galaxies exist in the observable universe|
|Interstellar medium|Gases (mainly hydrogen and helium) and dust grains (silicates, carbon and iron) filling the space between stars. The density of the interstellar medium is very low. There is about one atom of gas for every cubic centimeter of space. The density of dust is a trillion times smaller. The temperature of the gas is about 100 K|
|Main-sequence star|A normal star that is undergoing nuclear fusion of hydrogen into helium. Our Sun is a typical main-sequence star|
|Nebula|Clouds of 'dust', i.e. compounds of carbon, oxygen, silicon and metals, as well as molecular hydrogen, in the space in between stars|
|Neutron star|The end result of the explosion of a red supergiant; a very small star (a few tens of kilometers in diameter) and very dense. This is a star consisting almost entirely of neutrons. The neutrons form a superfluid around a core of immense pressure and density. A neutron star is an astonishing macroscopic example of microscopic quantum physics|
|Planetary nebula|The ejected envelope of a red giant star|
|Red dwarf|A very small star with low temperature, reddish in color|
|Red giant|A main-sequence star evolves into a red giant - a very large, reddish star. There are nuclear reactions involving the fusion of helium into heavier elements|
|Stellar cluster|A group of stars that are physically near each other in space, created by the collapse of a single gas cloud|
|Supernova (Type la)|The explosion of a white dwarf that has accreted mass from a companion star exceeding its stability limit|
|Supernova (Type II)|The explosion of a red supergiant star: The amount of energy emitted in a supernova explosion can be staggering - comparable to the total energy radiated by our Sun in its entire lifetime!|
|White dwarf|The end result of the explosion of a red giant. A small, dense star (about the size of the Earth), in which no nuclear reactions take place. It is very hot but its small size gives it a very low luminosity]|
in Additional of:
1. Nuclear fusion provides the energy that is needed to keep the star hot, so that the radiation pressure is high enough to oppose further gravitational contraction, and at the same time to provide the energy that the star is radiating into space.
2. The power radiated by a star is known in astrophysics as the luminosity. It is measured in watts.
3. The unit of apparent brightness is W m^{−2}.
You must use a variety of multiple-choice question types:
1. [Background] + what is ...
2. What is true about ...
3. Which ... according ...
4. Which ... can be ...
5. What is ... from ...
6. What is ...
7. Which ... is correct
8. Which statement ...
9. Which statement justify ...
10. Which is not correct ...
Do not repeat on one type of sentence.
Primary Order:
1. Make all MCQs base on above information and your knowledge if needed. When there are conflict between your knowledge and the above information. You should use your knowledge to add more detail and background to produce MCQs.
2. Be creative, change the perspective of your questions randomly, not necessarily from nouns to explanations, but from explanations to nouns, or ask questions based on the relationship between nouns, or ask questions in conjunction with examples; your goal is to help students fully understand the topic from all angles.
3. Only reply the MCQs and nothing else, do not write explanations. Make sure your answer has right json grammar.
4. Use english quotation marks or any other english punctuation only.
[{"order_number":"1","question":"What is a galaxy?","type":"mcq","option_a":"A collection of planets","option_b":"A collection of stars","option_c":"A collection of asteroids","option_d":"A collection of comets","answer":"B","explanation":"A galaxy is a collection of a very large number of stars mutually attracting one another through the gravitational force and staying together."},{"order_number":"2","question":"What is a main-sequence star?","type":"mcq","option_a":"A star that has run out of fuel","option_b":"A star that is undergoing nuclear fusion of hydrogen into helium","option_c":"A star that is about to explode","option_d":"A star that is very small and has low temperature","answer":"B","explanation":"A main-sequence star is a normal star that is undergoing nuclear fusion of hydrogen into helium."}]
importargparseimportjsonimportrandomfromdocximportDocumentfromdocx.sharedimportPtfromdocx.enum.textimportWD_ALIGN_PARAGRAPH# 定义命令行参数parser=argparse.ArgumentParser(description='生成试卷、答题纸和评分方案。')parser.add_argument('-q','--question-bank',type=str,required=True,help='题库 JSON 文件路径。')parser.add_argument('-n','--number-question',type=int,required=True,help='试卷中的题目数量。')args=parser.parse_args()# 打开 JSON 文件,加载数据withopen(args.question_bank,'r')asf:data=json.load(f)# 随机选择题目selected_questions=random.sample(data,args.number_question)# 创建试卷、答题纸和评分方案文档test_paper_doc=Document()answer_sheet_doc=Document()marking_scheme_doc=Document()# 设置字体font=test_paper_doc.styles['Normal'].fontfont.name='Arial'font.size=Pt(12)# 添加试卷标题test_paper_title=test_paper_doc.add_paragraph('试卷',style='Title')test_paper_title.alignment=WD_ALIGN_PARAGRAPH.CENTERtest_paper_doc.add_paragraph()# 添加答题纸标题 answer_sheet_title=answer_sheet_doc.add_paragraph('答题纸',style='Title')answer_sheet_title.alignment=WD_ALIGN_PARAGRAPH.CENTERanswer_sheet_doc.add_paragraph()# 添加评分方案标题marking_scheme_title=marking_scheme_doc.add_paragraph('评分方案',style='Title')marking_scheme_title.alignment=WD_ALIGN_PARAGRAPH.CENTERmarking_scheme_doc.add_paragraph()# 循环选定的题目,添加到文档中fori,questioninenumerate(selected_questions):# 试卷test_paper_doc.add_paragraph(f'{i+1}. {question["question"]}')test_paper_doc.add_paragraph(f' A. {question["option_a"]}')test_paper_doc.add_paragraph(f' B. {question["option_b"]}')test_paper_doc.add_paragraph(f' C. {question["option_c"]}')test_paper_doc.add_paragraph(f' D. {question["option_d"]}')test_paper_doc.add_paragraph()# 答题纸answer_sheet_doc.add_paragraph(f'{i+1}. {question["question"]}')answer_sheet_doc.add_paragraph(f' A. {question["option_a"]}')answer_sheet_doc.add_paragraph(f' B. {question["option_b"]}')answer_sheet_doc.add_paragraph(f' C. {question["option_c"]}')answer_sheet_doc.add_paragraph(f' D. {question["option_d"]}')answer_sheet_doc.add_paragraph(f'答案:{question["answer"]}')answer_sheet_doc.add_paragraph(f'解析:{question["explanation"]}')answer_sheet_doc.add_paragraph()# 评分方案marking_scheme_doc.add_paragraph(f'{i+1}. {question["question"]}')marking_scheme_doc.add_paragraph(f'答案:{question["answer"]}')marking_scheme_doc.add_paragraph()# 保存文档test_paper_doc.save('test_paper.docx')answer_sheet_doc.save('answer_sheet.docx')marking_scheme_doc.save('marking_scheme.docx')