1
00:00:00,240 --> 00:00:06,230
Now, there is one thing that I'd like you to do, and that is to address after your questions, so

2
00:00:06,230 --> 00:00:07,260
we'll just make it plural.

3
00:00:07,650 --> 00:00:11,190
And the reason why I'm doing this would be clear to you in just about a minute.

4
00:00:11,490 --> 00:00:14,100
And there are only two places where you need to just change.

5
00:00:14,430 --> 00:00:19,290
So the question would be becoming our questions, and I'd say so this is what we are sending to our

6
00:00:19,300 --> 00:00:19,620
data.

7
00:00:20,140 --> 00:00:22,960
Now we have our centers and training.

8
00:00:23,100 --> 00:00:27,540
We have set up our centers and now we need to receive the data and insider Abdul.

9
00:00:28,440 --> 00:00:29,170
For that purpose.

10
00:00:29,190 --> 00:00:30,870
Let's import a global context.

11
00:00:31,170 --> 00:00:34,140
So use import to use global context.

12
00:00:38,920 --> 00:00:40,960
From our context.

13
00:00:46,930 --> 00:00:49,210
All right, so we are now importing a global context.

14
00:00:49,450 --> 00:00:55,750
Now we need to import all the things that we need inside the G6 for that purpose will be to factor in

15
00:00:55,750 --> 00:00:57,640
those particular data that we need.

16
00:00:57,880 --> 00:01:01,970
So create a concert inside a function up and surrounded with calibrated.

17
00:01:01,970 --> 00:01:03,580
Now we are receiving are waiting.

18
00:01:10,250 --> 00:01:11,390
They're receiving a waiting.

19
00:01:12,710 --> 00:01:17,330
As well as our loading and after loading, we receiving more questions.

20
00:01:18,670 --> 00:01:24,550
And that is an array of questions, and after questions, we are even receiving our index and the index

21
00:01:24,550 --> 00:01:30,010
we are even receiving of correct questions, correct answers and after correct, we are receiving our

22
00:01:30,310 --> 00:01:31,660
next question function.

23
00:01:32,140 --> 00:01:34,510
So next question?

24
00:01:39,470 --> 00:01:42,350
All right, so the next question we had even receiving a check answer.

25
00:01:42,860 --> 00:01:44,360
So check on, sir.

26
00:01:47,240 --> 00:01:50,180
All right, so that's all that we need inside our application.

27
00:01:50,480 --> 00:01:54,380
Now this is going to be equal to you as global context.

28
00:01:56,970 --> 00:01:59,300
All right, so now we have structural data.

29
00:01:59,330 --> 00:02:02,340
We are be structuring it now, we'll be using it inside a function.

30
00:02:05,390 --> 00:02:12,290
Now, the first thing that we want to do is right beneath your global context, create a statement and

31
00:02:12,290 --> 00:02:19,490
that is going to check whether we are waiting or not and if we are, then we want to show our user the

32
00:02:19,490 --> 00:02:23,660
set up for them that they would like to select what sort of question that they want.

33
00:02:24,050 --> 00:02:26,990
So if waiting is closer to then we would like to return.

34
00:02:32,680 --> 00:02:35,570
The senator from so let's import a from A.

35
00:02:37,720 --> 00:02:43,810
Hour later, we have we're adding I set up from now after this building will be creating another if

36
00:02:43,810 --> 00:02:46,270
statement and this is going to hold a variable loading.

37
00:02:46,780 --> 00:02:51,760
That means if I was in loading phase, that means that OP has actually acquired the data that we need.

38
00:02:52,120 --> 00:02:54,700
Then what we want to do, then we want to show the loading screen.

39
00:02:54,950 --> 00:02:57,820
So now if this is the case, then we wanted it on the loading screen.

40
00:02:59,090 --> 00:02:59,780
So return.

41
00:03:02,360 --> 00:03:03,110
The loading screen.

42
00:03:05,550 --> 00:03:05,970
All right.

43
00:03:06,120 --> 00:03:12,580
So these are the first three factors that we did now, after this, we are in agreement to refactor

44
00:03:12,580 --> 00:03:14,250
our answers that we are receiving.

45
00:03:15,090 --> 00:03:16,370
So where are the questions?

46
00:03:16,650 --> 00:03:17,910
These questions contain?

47
00:03:18,510 --> 00:03:20,310
So let's just take a look at that app.

48
00:03:20,610 --> 00:03:23,430
So now saying what on your screen is the complete app?

49
00:03:24,120 --> 00:03:26,520
It is not the app that we have at the current stage.

50
00:03:26,910 --> 00:03:32,010
So now let's select the number of questions that we want, for example, if I just want but maybe five

51
00:03:32,010 --> 00:03:36,390
questions and the category should be both as bad as the difficulty level should be easy and click on

52
00:03:36,390 --> 00:03:36,750
start.

53
00:03:37,140 --> 00:03:37,850
So what do you think?

54
00:03:37,860 --> 00:03:43,530
I think is an area of five questions and each question is going to hold up a key of category and the

55
00:03:43,530 --> 00:03:44,370
value of sports.

56
00:03:44,710 --> 00:03:49,050
A correct answer or difficulty key with the value easy or whatever you selected with them.

57
00:03:49,410 --> 00:03:55,200
And apart from actually getting up an eddy of incorrect answers as well as you'll be getting the questions.

58
00:03:55,200 --> 00:03:58,890
So now this is the question that we are getting up right.

59
00:03:58,920 --> 00:04:04,080
So we'll be structuring it will be structuring our question, incorrect answers as well as the correct

60
00:04:04,080 --> 00:04:04,440
answer.

61
00:04:04,680 --> 00:04:07,380
And that's how we're going to compare our users answers, right?

62
00:04:07,620 --> 00:04:13,720
For example, the first answer in the goal what name is given to the whole score of the two under par?

63
00:04:13,740 --> 00:04:15,090
So the guidance is eagle.

64
00:04:15,090 --> 00:04:17,880
If I just click on Eagle, then you might see this quarter's one out of one.

65
00:04:18,240 --> 00:04:22,410
And if I just head to the second question, the cadence is the city.

66
00:04:22,560 --> 00:04:26,090
And if I just select maybe Chelsea, then you will see us.

67
00:04:26,100 --> 00:04:28,890
Quite is one out or two because we have answered it incorrectly.

68
00:04:28,890 --> 00:04:31,680
Therefore, one's quarter has not be another to attract answers.

69
00:04:32,160 --> 00:04:38,010
So now let's just head back into an app, and what I'll do is that the structural data so will be structuring

70
00:04:38,010 --> 00:04:42,150
our questions, as well as incorrect answers as well as our correct answer.

71
00:04:42,360 --> 00:04:46,590
So let's the structure and incorrect answers.

72
00:04:55,170 --> 00:04:56,670
As well as a correct answer.

73
00:05:03,080 --> 00:05:09,470
As well as a question now, if you see that this incorrect answer is a whole area of three numbers.

74
00:05:09,950 --> 00:05:11,750
So this is going to be called a quiz.

75
00:05:13,650 --> 00:05:17,820
The questions, I mean, with the index that we're getting.

76
00:05:18,330 --> 00:05:19,890
Question number one, two or three or four?

77
00:05:25,790 --> 00:05:27,680
So we have restricted our data.

78
00:05:27,710 --> 00:05:29,090
We have had incorrect answers.

79
00:05:29,570 --> 00:05:31,130
Let me just go down a little bit.

80
00:05:35,330 --> 00:05:39,500
We have incorrect answers, as well as a correct answer and a question.

81
00:05:39,860 --> 00:05:42,230
Nobody's going to do, is that going to be creating a leg?

82
00:05:42,470 --> 00:05:46,460
So let's create a left after this and give it the name.

83
00:05:46,840 --> 00:05:47,060
Answer.

84
00:05:48,960 --> 00:05:53,580
Now, this answer is going to hold up all the values of the incorrect answer, so just use the satellite

85
00:05:53,580 --> 00:05:56,370
operator and put up in correct answers.

86
00:05:56,370 --> 00:06:00,900
So what we're doing is that we are assigning answers, all the incorrect values.

87
00:06:00,900 --> 00:06:04,830
So as you know that incorrect answers is actually an error of incorrect answers.

88
00:06:05,550 --> 00:06:11,120
Now we're trying to do is that will be creating a pre-concert index.

89
00:06:11,490 --> 00:06:17,130
So now what this function is going to do, what I'm about to make is that it is going to assign random

90
00:06:17,130 --> 00:06:17,640
values.

91
00:06:19,320 --> 00:06:23,790
So the constant flow and, Matt, that random.

92
00:06:27,750 --> 00:06:28,470
Times for.

93
00:06:29,930 --> 00:06:30,520
All right.

94
00:06:30,800 --> 00:06:33,800
So now we're getting our data right, if we just take a look back in Europe.

95
00:06:34,010 --> 00:06:37,340
So we are having all these incorrect answers as well as the correct answer.

96
00:06:37,380 --> 00:06:40,160
Now we need to actually shuffle them between these four options, right?

97
00:06:40,190 --> 00:06:44,230
It's not that we have to show the right answer always at the top.

98
00:06:44,300 --> 00:06:47,000
We are in the moment to shuffle all those answers, right?

99
00:06:47,240 --> 00:06:48,530
So that's what we're going to do.

100
00:06:48,560 --> 00:06:49,370
We'll be shuffling up.

101
00:06:49,370 --> 00:06:50,210
Our answer is no.

102
00:06:50,630 --> 00:06:56,120
So after this, what I need to do is that we are putting a statement if our temp index.

103
00:06:58,130 --> 00:07:04,580
Triple equals three, so if our team and X equals three, then what they're supposed to do, then we're

104
00:07:04,580 --> 00:07:09,320
going to answers that push inside the answers.

105
00:07:09,320 --> 00:07:10,670
They're pushing up a correct answer.

106
00:07:12,510 --> 00:07:17,700
So if the temp index triple equals three, that means they're comparing if a temp index is has been

107
00:07:17,700 --> 00:07:22,380
added to the value of three, using this random function then will be pushing up balances inside it.

108
00:07:22,650 --> 00:07:28,050
And if not, and if not, then what to do is that will be pushing up our answers.

109
00:07:28,470 --> 00:07:29,460
So answers.

110
00:07:30,940 --> 00:07:31,630
That Bush.

111
00:07:35,310 --> 00:07:35,820
This.

112
00:07:36,870 --> 00:07:37,770
Temp index.

113
00:07:41,370 --> 00:07:45,600
All right, and after this, what they need to do is that they'll be pushing about the correct answer

114
00:07:45,600 --> 00:07:47,640
inside of a chamber next door answers.

115
00:07:50,400 --> 00:07:53,040
Temping next is going to hold up the value of a great dancer.

116
00:07:56,910 --> 00:07:58,170
It should be temp index.

117
00:07:59,430 --> 00:08:04,620
All right, so now we're shuffling of our data, now is the time to display or organize this data into

118
00:08:04,620 --> 00:08:06,210
our main function.
