-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneralKnowledgeQuestions.java
More file actions
175 lines (168 loc) · 5.76 KB
/
Copy pathGeneralKnowledgeQuestions.java
File metadata and controls
175 lines (168 loc) · 5.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
Author: Gautham Radheepan
*/
package com.example.simple_quiz;
public class GeneralKnowledgeQuestions {
private int correctCounter;
private String[] questions;
private String[] aAnswers;
private String[] bAnswers;
private String[] cAnswers;
private String[] dAnswers;
private String[] correct;
public GeneralKnowledgeQuestions(){
questions = new String[20];
aAnswers = new String [20];
bAnswers = new String [20];
cAnswers = new String [20];
dAnswers = new String [20];
correct = new String[20];
}
private void setQuestions(){
questions[0]="How Many Rings are on the Olympic Flag?";
aAnswers[0]="4";
bAnswers[0]="5";
cAnswers[0]="6";
dAnswers[0]="7";
correct[0]="B";
questions[1]="Which animal does not appear in the Chinese zodiac?";
aAnswers[1]="Bear";
bAnswers[1]="Rabbit";
cAnswers[1]="Dragon";
dAnswers[1]="Dog";
correct[1]="A";
questions[2]="What are the main colours on the Canadian flag?";
aAnswers[2]="Red and White";
bAnswers[2]="Blue and White";
cAnswers[2]="Red and White";
dAnswers[2]="Red and Blue";
correct[2]="A";
questions[3]="Eritrea, which became the 182nd member of the UN in 1993, is in the continent of";
aAnswers[3]="Asia";
bAnswers[3]="Australia";
cAnswers[3]="Africa";
dAnswers[3]="Europe";
correct[3]="C";
questions[4]="What year did Neil Armstrong land on the moon?";
aAnswers[4]="1966";
bAnswers[4]="1967";
cAnswers[4]="1968";
dAnswers[4]="1969";
correct[4]="D";
questions[5]="A person born in 1992 would be how old in 2020?";
aAnswers[5]="27";
bAnswers[5]="28";
cAnswers[5]="29";
dAnswers[5]="30";
correct[5]="B";
questions[6]="'An eye for and eye, makes the whole world blind' was said by who?";
aAnswers[6]="Mahatma Gandhi";
bAnswers[6]="Nelson Mandela";
cAnswers[6]="Pierre Elliot Trudeau";
dAnswers[6]="Barack Obama";
correct[6]="A";
questions[7]="Which one of these are not a state?";
aAnswers[7]="New York";
bAnswers[7]="California";
cAnswers[7]="Miami";
dAnswers[7]="Florida";
correct[7]="C";
questions[8]="What ocean is between North America and Europe?";
aAnswers[8]="Pacific";
bAnswers[8]="Atlantic";
cAnswers[8]="Indian";
dAnswers[8]="Arctic";
correct[8]="B";
questions[9]="What animal is on the Canadian nickel?";
aAnswers[9]="Moose";
bAnswers[9]="Caribou";
cAnswers[9]="Loon";
dAnswers[9]="Beaver";
correct[9]="D";
questions[10]="How many blue stripes are there an the American flag?";
aAnswers[10]="6";
bAnswers[10]="7";
cAnswers[10]="50";
dAnswers[10]="0";
correct[10]="D";
questions[11]="Who is the only US president to resign?";
aAnswers[11]="Herbert Hoover";
bAnswers[11]="Richard Nixon";
cAnswers[11]="George W. Bush";
dAnswers[11]="John F. Kennedy";
correct[11]="B";
questions[12]="How many bones are in the human body?";
aAnswers[12]="206";
bAnswers[12]="205";
cAnswers[12]="201";
dAnswers[12]="209";
correct[12]="A";
questions[13]="How old do you have to be to enter the Hunger Games?";
aAnswers[13]="10";
bAnswers[13]="11";
cAnswers[13]="12";
dAnswers[13]="13";
correct[13]="C";
questions[14]="Which is the biggest planet in out solar system?";
aAnswers[14]="Saturn";
bAnswers[14]="Neptune";
cAnswers[14]="Jupiter";
dAnswers[14]="Earth";
correct[14]="C";
questions[15]="Which Boy Band sings the song 'I want it that way'?";
aAnswers[15]="One Direction";
bAnswers[15]="NSYNC";
cAnswers[15]="New Kids On The Block";
dAnswers[15]="Backstreet Boys";
correct[15]="D";
questions[16]="Which New York City building is the tallest?";
aAnswers[16]="Empire State Building";
bAnswers[16]="One World Trade Center";
cAnswers[16]="Bank of America Tower";
dAnswers[16]="Statue of Liberty";
correct[16]="B";
questions[17]="Who painted the Mona Lisa?";
aAnswers[17]="Van Gogh";
bAnswers[17]="da Vinci";
cAnswers[17]="Picasso";
dAnswers[17]="Monet";
correct[17]="B";
questions[18]="When the groundhog sees his shadow on Groundhogs day, it means:";
aAnswers[18]="6 more weeks of winter";
bAnswers[18]="Early spring";
cAnswers[18]="It's going to rain";
dAnswers[18]="A tornado is coming";
correct[18]="A";
questions[19]="How many days are in February during a leap year?";
aAnswers[19]="28";
bAnswers[19]="29";
cAnswers[19]="30";
dAnswers[19]="31";
correct[19]="B";
}
public String[] getQuestions() {
setQuestions();
return questions;
}
public void setCorrectCounter(){
correctCounter++;
}
public int getCorrectCounter(){
return correctCounter;
}
public String[] getaAnswers(){
return aAnswers;
}
public String[] getbAnswers(){
return bAnswers;
}
public String[] getcAnswers(){
return cAnswers;
}
public String[] getdAnswers(){
return dAnswers;
}
public String[] getCorrect(){
return correct;
}
}