Question
DO IT WITH PYTHON First in the notepad create a file named data.json . This file and quiz code file have to be in one
DO IT WITH PYTHON
First in the notepad create a file named data.json . This file and quiz code file have to be in one folder.
Problem during running the code:
-
After answering Q.4, I supposed to have a result where how many percentage i got right and how much time I spend need to display.( time required.that code i haven't done)
File name: data.json
File:
{
"question": [
"Q1. What is 2+2?",
"Q2. What is the first prime number?",
"Q3. What comes after million, billion, trillion?",
"Q4. The perimeter of a circle is also known as what?"
],
"answer": [
1,
2,
3,
2
],
"options": [
["4",
"22",
"34",
"5"
],
["1",
"2",
"5",
"3"
],
["Light Year",
"Multi-Trillion",
"Quadrillion",
"Zillion"
],
["The Arc Length",
"The Circumference",
"The chord",
"Total Length"
]
]
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started