Skip to content

Commit 2908cf0

Browse files
committed
150 questions finished
1 parent 6781177 commit 2908cf0

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ app.get("/contribute/issues", (req, res) => {
5353
);
5454
});
5555

56+
app.get("/questions/categories", (req, res) => {
57+
res.json(categories);
58+
});
59+
60+
app.get("/questions/categories/length", (req, res) => {
61+
res.send(categories.length);
62+
});
63+
5664
app.get("/questions/list/index/:index", (req, res) => {
5765
if (req.params.index > questions.length) {
5866
res.send("<h1>Index more than the number of questions</h1>");

questions/index.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,5 +1086,94 @@
10861086
"question": "Which of the following article constitute the 'Right to Life' in Indian Constitution",
10871087
"correct_answer": "Article 21",
10881088
"incorrect_answers": ["Article 16", "Article 15", "Article 14"]
1089+
},
1090+
{
1091+
"category": "Literature",
1092+
"difficulty": "easy",
1093+
"question": "Who wrote the poem 'If'?",
1094+
"correct_answer": "Rudyard Kipling",
1095+
"incorrect_answers": [
1096+
"Ruskin Bond",
1097+
"Rabindranath Tagore",
1098+
"J.K. Rowling"
1099+
]
1100+
},
1101+
{
1102+
"category": "Computers",
1103+
"difficulty": "medium",
1104+
"question": "Which of the following apps don't have a sending messages feature?",
1105+
"correct_answer": "Mac Notes",
1106+
"incorrect_answers": ["WhatsApp", "Twitter", "Telegram"]
1107+
},
1108+
{
1109+
"category": "Science",
1110+
"difficulty": "hard",
1111+
"question": "Choose the odd one out based on the methods of transfer of heat.",
1112+
"correct_answer": "Heatwave",
1113+
"incorrect_answers": ["Conduction", "Radiation", "Convection"]
1114+
},
1115+
{
1116+
"category": "History",
1117+
"difficulty": "easy",
1118+
"question": "Choose the order of the dynasties who ruled the Delhi Sultanate.",
1119+
"correct_answer": "Mamluk-Khalji-Tughlaq-Sayyid-Lodi",
1120+
"incorrect_answers": [
1121+
"Mamluk-Sayyid-Khalji-Lodi-Tughlaq",
1122+
"Khalji-Tughlaq-Mamluk-Sayyid-Lodi",
1123+
"Mamluk-Sayyid-Tughlaq-Khalji-Lodi"
1124+
]
1125+
},
1126+
{
1127+
"category": "Games",
1128+
"difficulty": "medium",
1129+
"question": "What was the best selling video game in December 2017?",
1130+
"correct_answer": "Call of Duty: WWII",
1131+
"incorrect_answers": ["Minecraft", "Call of Duty: Zombies", "PubG"]
1132+
},
1133+
{
1134+
"category": "Sports",
1135+
"difficulty": "hard",
1136+
"question": "In 2004, which men’s soccer team didn’t give up a single goal to their opponents?",
1137+
"correct_answer": "Argentina",
1138+
"incorrect_answers": ["Brazil", "France", "Croatia"]
1139+
},
1140+
{
1141+
"category": "Mythology",
1142+
"difficulty": "easy",
1143+
"question": "Who was the wife of Lord Ram?",
1144+
"correct_answer": "Sita",
1145+
"incorrect_answers": ["Sati", "Stai", "Siat"]
1146+
},
1147+
{
1148+
"category": "Maths",
1149+
"difficulty": "medium",
1150+
"question": "What is the formula of calculating the volume of a cylinder?",
1151+
"correct_answer": "πr2h",
1152+
"incorrect_answers": ["4/3πr3", "πr2h3", "πr2h9"]
1153+
},
1154+
{
1155+
"category": "Geography",
1156+
"difficulty": "hard",
1157+
"question": "What percentage of river Nile is located in Egypt?",
1158+
"correct_answer": "22%",
1159+
"incorrect_answers": ["100%", "83%", "45%"]
1160+
},
1161+
{
1162+
"category": "Geography",
1163+
"difficulty": "easy",
1164+
"question": "What is the oldest city of India?",
1165+
"correct_answer": "Varanasi",
1166+
"incorrect_answers": ["Ayodhya", "Patna", "Madurai"]
1167+
},
1168+
{
1169+
"category": "General",
1170+
"difficulty": "medium",
1171+
"question": "What is the full form of the chatting abbreviation - 'IDTS'",
1172+
"correct_answer": "I don't think so",
1173+
"incorrect_answers": [
1174+
"I danced thinking so",
1175+
"I don't think such",
1176+
"I don't think sour"
1177+
]
10891178
}
10901179
]

0 commit comments

Comments
 (0)