Prompt Title: Create Prompt: 4 Tips

Created 1 year ago
Votes 0
Views 243 times
0

Prompt Detail:

Thank you for providing the sample questions. Let's proceed with extracting the physics and chemistry questions, along with their options and answers, and converting them into a JSON format.

Prompt: Conversion of Physics and Chemistry Questions to JSON

You have a PDF file containing physics and chemistry questions with options and answers. The sample provided includes multiple questions, each with four options (a, b, c, d), and the correct answer is indicated after "Ans."

Below are the extracted questions from the PDF:

Question 01: The angle of 1′ (minute of arc) in radian is nearly equal to (a) 2.91 × 10−4 rad (b) 4.85 × 10−4 rad (c) 4.80 × 10−6 rad (d) 1.75 × 10−2 rad Ans. (a)

Question 02: The unit of thermal conductivity is: (a) J m −1 K −1 (b) W m K −1 (c) W m −1 K −1 (d) J m K −1 Ans. (c)

Question 03: The unit of permittivity of free space, ε0 is (a) coulomb/newton-metre (b) newton - metre^2 / coulomb^2 (c) coulomb^2 / newton - metre^2 (d) coulomb^2 / (newton - metre)^2 Ans. (a)

Question 04: The value of Planck’s constant in SI unit is (a) 6.63 × 10−31 J-s (b) 6.63 × 10−30 kg - m / s (c) 6.63 × 10−32 kg - m^2 (d) 6.63 × 10−34 J - s Ans. (d)

Question 05: In a particular system, the unit of length, mass, and time are chosen to be 10 cm, 10 g, and 0.1 s, respectively. The unit of force in this system will be equivalent to (a) 0.1 N (b) 1 N (c) 10 N (d) 100 N Ans. (a)

Question 06: A screw gauge gives the following readings when used to measure the diameter of a wire Main scale reading: 0 mm Circular scale reading: 52 divisions Given that, 1 mm on the main scale corresponds to 100 divisions on the circular scale. The diameter of the wire from the above data is (a) 0.52 cm (b) 0.026 cm (c) 0.26 cm (d) 0.052 cm Ans. (d)

Your task is to create a Python script that will extract these questions, options, and answers, and then convert them into a JSON format with the following structure:

json
{ "questions": [ { "question": "The angle of 1′ (minute of arc) in radian is nearly equal to", "options": ["(a) 2.91 × 10−4 rad", "(b) 4.85 × 10−4 rad", "(c) 4.80 × 10−6 rad", "(d) 1.75 × 10−2 rad"], "answer": "a" }, { "question": "The unit of thermal conductivity is:", "options": ["(a) J m −1 K −1", "(b) W m K −1", "(c) W m −1 K −1", "(d) J m K −1"], "answer": "c" }, { "question": "The unit of permittivity of free space, ε0 is", "options": ["(a) coulomb/newton-metre", "(b) newton - metre^2 / coulomb^2", "(c) coulomb^2 / newton - metre^2", "(d) coulomb^2 / (newton - metre)^2"], "answer": "a" }, { "question": "The value of Planck’s constant in SI unit is", "options": ["(a) 6.63 × 10−31 J-s", "(b) 6.63 × 10−30 kg - m / s", "(c) 6.63 × 10−32 kg - m^2", "(d) 6.63 × 10−34 J - s"], "answer": "d" }, { "question": "In a particular system, the unit of length, mass, and time are chosen to be 10 cm, 10 g, and 0.1 s, respectively. The unit of force in this system will be equivalent to", "options": ["(a) 0.1 N", "(b) 1 N", "(c) 10 N", "(d) 100 N"], "answer": "a" }, { "question": "A screw gauge gives the following readings when used to measure the diameter of a wire Main scale reading: 0 mm Circular scale reading: 52 divisions Given that, 1 mm on the main scale corresponds to 100 divisions on the circular scale. The diameter of the wire from the above data is", "options": ["(a) 0.52 cm", "(b) 0.026 cm", "(c) 0.26 cm", "(d) 0.052 cm"], "answer": "d" } ] }

Your Python script should be able to handle more questions with the same structure as given in the sample.

If you have any specific preferences or need any further assistance, feel free to let me know!

avatar
Yevvi
Shared 2 prompts
Created 1 year ago

Leave a Comment

Related Tag Prompts

0
0
ChatGPT en español
1 year ago 2023-04-01 02:40:57 yo