Now, there is one thing that I'd like you to do, and that is to address after your questions, so
we'll just make it plural.
And the reason why I'm doing this would be clear to you in just about a minute.
And there are only two places where you need to just change.
So the question would be becoming our questions, and I'd say so this is what we are sending to our
data.
Now we have our centers and training.
We have set up our centers and now we need to receive the data and insider Abdul.
For that purpose.
Let's import a global context.
So use import to use global context.
From our context.
All right, so we are now importing a global context.
Now we need to import all the things that we need inside the G6 for that purpose will be to factor in
those particular data that we need.
So create a concert inside a function up and surrounded with calibrated.
Now we are receiving are waiting.
They're receiving a waiting.
As well as our loading and after loading, we receiving more questions.
And that is an array of questions, and after questions, we are even receiving our index and the index
we are even receiving of correct questions, correct answers and after correct, we are receiving our
next question function.
So next question?
All right, so the next question we had even receiving a check answer.
So check on, sir.
All right, so that's all that we need inside our application.
Now this is going to be equal to you as global context.
All right, so now we have structural data.
We are be structuring it now, we'll be using it inside a function.
Now, the first thing that we want to do is right beneath your global context, create a statement and
that is going to check whether we are waiting or not and if we are, then we want to show our user the
set up for them that they would like to select what sort of question that they want.
So if waiting is closer to then we would like to return.
The senator from so let's import a from A.
Hour later, we have we're adding I set up from now after this building will be creating another if
statement and this is going to hold a variable loading.
That means if I was in loading phase, that means that OP has actually acquired the data that we need.
Then what we want to do, then we want to show the loading screen.
So now if this is the case, then we wanted it on the loading screen.
So return.
The loading screen.
All right.
So these are the first three factors that we did now, after this, we are in agreement to refactor
our answers that we are receiving.
So where are the questions?
These questions contain?
So let's just take a look at that app.
So now saying what on your screen is the complete app?
It is not the app that we have at the current stage.
So now let's select the number of questions that we want, for example, if I just want but maybe five
questions and the category should be both as bad as the difficulty level should be easy and click on
start.
So what do you think?
I think is an area of five questions and each question is going to hold up a key of category and the
value of sports.
A correct answer or difficulty key with the value easy or whatever you selected with them.
And apart from actually getting up an eddy of incorrect answers as well as you'll be getting the questions.
So now this is the question that we are getting up right.
So we'll be structuring it will be structuring our question, incorrect answers as well as the correct
answer.
And that's how we're going to compare our users answers, right?
For example, the first answer in the goal what name is given to the whole score of the two under par?
So the guidance is eagle.
If I just click on Eagle, then you might see this quarter's one out of one.
And if I just head to the second question, the cadence is the city.
And if I just select maybe Chelsea, then you will see us.
Quite is one out or two because we have answered it incorrectly.
Therefore, one's quarter has not be another to attract answers.
So now let's just head back into an app, and what I'll do is that the structural data so will be structuring
our questions, as well as incorrect answers as well as our correct answer.
So let's the structure and incorrect answers.
As well as a correct answer.
As well as a question now, if you see that this incorrect answer is a whole area of three numbers.
So this is going to be called a quiz.
The questions, I mean, with the index that we're getting.
Question number one, two or three or four?
So we have restricted our data.
We have had incorrect answers.
Let me just go down a little bit.
We have incorrect answers, as well as a correct answer and a question.
Nobody's going to do, is that going to be creating a leg?
So let's create a left after this and give it the name.
Answer.
Now, this answer is going to hold up all the values of the incorrect answer, so just use the satellite
operator and put up in correct answers.
So what we're doing is that we are assigning answers, all the incorrect values.
So as you know that incorrect answers is actually an error of incorrect answers.
Now we're trying to do is that will be creating a pre-concert index.
So now what this function is going to do, what I'm about to make is that it is going to assign random
values.
So the constant flow and, Matt, that random.
Times for.
All right.
So now we're getting our data right, if we just take a look back in Europe.
So we are having all these incorrect answers as well as the correct answer.
Now we need to actually shuffle them between these four options, right?
It's not that we have to show the right answer always at the top.
We are in the moment to shuffle all those answers, right?
So that's what we're going to do.
We'll be shuffling up.
Our answer is no.
So after this, what I need to do is that we are putting a statement if our temp index.
Triple equals three, so if our team and X equals three, then what they're supposed to do, then we're
going to answers that push inside the answers.
They're pushing up a correct answer.
So if the temp index triple equals three, that means they're comparing if a temp index is has been
added to the value of three, using this random function then will be pushing up balances inside it.
And if not, and if not, then what to do is that will be pushing up our answers.
So answers.
That Bush.
This.
Temp index.
All right, and after this, what they need to do is that they'll be pushing about the correct answer
inside of a chamber next door answers.
Temping next is going to hold up the value of a great dancer.
It should be temp index.
All right, so now we're shuffling of our data, now is the time to display or organize this data into
our main function.