File indexing completed on 2024-04-28 15:07:45
0001 /* GCompris - calendar_dataset.js 0002 * 0003 * SPDX-FileCopyrightText: 2017 Amit Sagtani <asagtani06@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 // Contains the questions, answers and calendar configurations of every level. 0009 // Add more levels by inserting questions and answers below. 0010 // Days of weeks are indexed from 0 i.e (Sunday = 0, Monday = 1, Tuesday = 2, .... ..... .... , Saturday = 6) 0011 // Months of year are indexed from 0 i.e (January = 0, February = 1, March = 2, .... ..... ...., December = 11) 0012 //[ 0013 //MODES 0014 // findMonthOnly --> For questions based on finding month only. 0015 // findYearMonthDay --> For questions based on finding year, month and day. 0016 // findDayOfWeek --> For questions based on finding day of week only. 0017 // findDay --> For questions based on finding day of a given month and year. 0018 // ] 0019 0020 function get() { 0021 return [ 0022 [ // Level 1 0023 [ // Level 1 Configurations 0024 { 0025 "navigationBarVisible" : false, 0026 "minimumDate": "2018-03-01", 0027 "maximumDate": "2018-03-31", 0028 "visibleMonth": 2, 0029 "visibleYear": 2018, 0030 "mode": "findDay" 0031 } 0032 ], 0033 [ // Level 1 Questions 0034 { 0035 "question": qsTr("Select the 23rd"), 0036 "answer": {"year": 2018, "month": 2, "day": 23} 0037 }, 0038 { 0039 "question": qsTr("Select the 1st"), 0040 "answer": {"year": 2018, "month": 2, "day": 1} 0041 }, 0042 { 0043 "question": qsTr("Select the 16th"), 0044 "answer": {"year": 2018, "month": 2, "day": 16} 0045 }, 0046 { 0047 "question": qsTr("Select the 28th"), 0048 "answer": {"year": 2018, "month": 2, "day": 28} 0049 }, 0050 { 0051 "question": qsTr("Select the 11th"), 0052 "answer": {"year": 2018, "month": 2, "day": 11} 0053 }, 0054 { 0055 "question": qsTr("Select the 20th"), 0056 "answer": {"year": 2018, "month": 2, "day": 20} 0057 } 0058 ] 0059 0060 ], 0061 0062 [ // Level 2 0063 [ // Level 2 Configurations 0064 { 0065 "navigationBarVisible" : false, 0066 "minimumDate": "2018-03-01", 0067 "maximumDate": "2018-03-31", 0068 "visibleMonth": 2, 0069 "visibleYear": 2018, 0070 "mode": "findDayOfWeek" 0071 } 0072 ], 0073 [ // Level 2 Questions 0074 { 0075 "question": qsTr("Which day of the week is the 4th of the given month?"), 0076 "answer": {"dayOfWeek": 0} 0077 }, 0078 { 0079 "question": qsTr("Which day of the week is the 12th of the given month?"), 0080 "answer": {"dayOfWeek": 1} 0081 }, 0082 { 0083 "question": qsTr("Which day of the week is the 20th of the given month?"), 0084 "answer": {"dayOfWeek": 2} 0085 }, 0086 { 0087 "question": qsTr("Which day of the week is the 28th of the given month?"), 0088 "answer": {"dayOfWeek": 3} 0089 }, 0090 { 0091 "question": qsTr("Which day of the week is the 22nd of the given month?"), 0092 "answer": {"dayOfWeek": 4} 0093 }, 0094 { 0095 "question": qsTr("Which day of the week is the 16th of the given month?"), 0096 "answer": {"dayOfWeek": 5} 0097 }, 0098 { 0099 "question": qsTr("Which day of the week is the 10th of the given month?"), 0100 "answer": {"dayOfWeek": 6} 0101 } 0102 ] 0103 ], 0104 0105 [ // Level 3 0106 [ // Level 3 configurations 0107 { 0108 "navigationBarVisible": false, 0109 "minimumDate": "2018-03-01", 0110 "maximumDate": "2018-03-31", 0111 "visibleMonth": 2, 0112 "visibleYear": 2018, 0113 "mode": "findDay" 0114 } 0115 ], 0116 0117 [ // Level 3 Questions 0118 { 0119 "question": qsTr("Select a Monday between days 1 and 7 of the given month"), 0120 "answer": {"year": 2018, "month": 2, "day": 5} 0121 }, 0122 { 0123 "question": qsTr("Select a Tuesday between days 8 and 16 of the given month"), 0124 "answer": {"year": 2018, "month": 2, "day": 13} 0125 }, 0126 { 0127 "question": qsTr("Select a Wednesday between days 15 and 22 of the given month"), 0128 "answer": {"year": 2018, "month": 2, "day": 21} 0129 }, 0130 { 0131 "question": qsTr("Select a Thursday between days 26 and 31 of the given month"), 0132 "answer": {"year": 2018, "month": 2, "day": 29} 0133 }, 0134 { 0135 "question": qsTr("Select a Friday between days 20 and 25 of the given month"), 0136 "answer": {"year": 2018, "month": 2, "day": 23} 0137 }, 0138 { 0139 "question": qsTr("Select a Saturday between days 13 and 23 of the given month"), 0140 "answer": {"year": 2018, "month": 2, "day": 17} 0141 }, 0142 { 0143 "question": qsTr("Select a Sunday between days 5 and 17 of the given month"), 0144 "answer": {"year": 2018, "month": 2, "day": 11} 0145 } 0146 ] 0147 ], 0148 0149 [ // level 4 0150 [ // Level 4 Configurations 0151 { 0152 "navigationBarVisible" : false, 0153 "minimumDate": "2018-03-01", 0154 "maximumDate": "2018-03-31", 0155 "visibleMonth": 2, 0156 "visibleYear": 2018, 0157 "mode": "findDay" 0158 } 0159 ], 0160 [ // Level 4 Questions 0161 { 0162 "question": qsTr("Select the second day before the 15th of the given month"), 0163 "answer": {"year": 2018, "month": 2, "day": 13} 0164 }, 0165 { 0166 "question": qsTr("Select the fourth Sunday of the given month"), 0167 "answer": {"year": 2018, "month": 2, "day": 25} 0168 }, 0169 { 0170 "question": qsTr("Select the day one week after 13th of the given month"), 0171 "answer": {"year": 2018, "month": 2, "day": 20} 0172 }, 0173 { 0174 "question": qsTr("Select the fifth Thursday of the given month"), 0175 "answer": {"year": 2018, "month": 2, "day": 29} 0176 }, 0177 { 0178 "question": qsTr("Select the third day after 27th of the given month"), 0179 "answer": {"year": 2018, "month": 2, "day": 30} 0180 } 0181 ] 0182 ], 0183 0184 [ // Level 5 0185 [ // Level 5 Configurations 0186 { 0187 "navigationBarVisible" : true, 0188 "minimumDate": "2018-01-01", 0189 "maximumDate": "2018-12-31", 0190 "visibleMonth": 1, 0191 "visibleYear": 2018, 0192 "mode": "findMonthOnly" 0193 } 0194 ], 0195 [ // Level 5 Questions 0196 { 0197 "question": qsTr("Find the month starting a Thursday and having 28 days"), 0198 "answer": {"month": [1]} 0199 }, 0200 { 0201 "question": qsTr("Find a month starting a Monday and having 31 days"), 0202 "answer": {"month": [0, 9]} 0203 }, 0204 { 0205 "question": qsTr("Find the month between June and August"), 0206 "answer": {"month": [6]} 0207 }, 0208 { 0209 "question": qsTr("Find a month starting a Saturday"), 0210 "answer": {"month": [8, 11]} 0211 }, 0212 { 0213 "question": qsTr("Find a month having 30 days"), 0214 "answer": {"month": [3, 5, 8, 10]} 0215 } 0216 ] 0217 ], 0218 0219 [ // level 6 0220 [ // Level 6 Configurations 0221 { 0222 "navigationBarVisible" : true, 0223 "minimumDate": "2017-01-01", 0224 "maximumDate": "2019-12-31", 0225 "visibleMonth": 2, 0226 "visibleYear": 2018, 0227 "mode": "findYearMonthDay" 0228 } 0229 0230 ], 0231 [ // Level 6 Questions 0232 { 0233 "question": qsTr("Find the first Monday of January in the year 2019"), 0234 "answer": {"year": 2019, "month": 0, "day": 7} 0235 }, 0236 { 0237 "question": qsTr("Find the second Wednesday of February in the year 2019"), 0238 "answer": {"year": 2019, "month": 1, "day": 13} 0239 }, 0240 { 0241 "question": qsTr("Find the third Friday of March in the year 2019"), 0242 "answer": {"year": 2019, "month": 2, "day": 15} 0243 }, 0244 { 0245 "question": qsTr("Find the fifth Sunday of April in the year 2018"), 0246 "answer": {"year": 2018, "month": 3, "day": 29} 0247 }, 0248 { 0249 "question": qsTr("Find the fourth Tuesday of July in the year 2018"), 0250 "answer": {"year": 2018, "month": 6, "day": 24} 0251 }, 0252 { 0253 "question": qsTr("Find the first Monday of August in the year 2018"), 0254 "answer": {"year": 2018, "month": 7, "day": 6} 0255 }, 0256 { 0257 "question": qsTr("Find the third Thursday of September in the year 2017"), 0258 "answer": {"year": 2017, "month": 8, "day": 21} 0259 }, 0260 { 0261 "question": qsTr("Find the fifth Sunday of October in the year 2017"), 0262 "answer": {"year": 2017, "month": 9, "day": 29} 0263 }, 0264 { 0265 "question": qsTr("Find the second Friday of December in the year 2017"), 0266 "answer": {"year": 2017, "month": 11, "day": 8} 0267 } 0268 ] 0269 ], 0270 0271 [ // Level 7 0272 [ // Level 7 Configurations 0273 { 0274 "navigationBarVisible" : true, 0275 "minimumDate": "2017-01-01", 0276 "maximumDate": "2019-12-31", 0277 "visibleMonth": 1, 0278 "visibleYear": 2018, 0279 "mode": "findYearMonthDay" 0280 } 0281 ], 0282 [ // Level 7 Questions 0283 { 0284 "question": qsTr("Human Rights Day is celebrated five days after December 5.<br> Find the date of Human Rights Day in 2017."), 0285 "answer": {"year": 2017, "month": 11, "day": 10} 0286 }, 0287 { 0288 "question": qsTr("Braille Day is celebrated one day before January 5.<br> Find the date of Braille Day in 2018"), 0289 "answer": {"year": 2018, "month": 0, "day": 4} 0290 }, 0291 { 0292 "question": qsTr("Mark's birthday is on November 4. In 2017 his party was exactly two weeks later.<br> Find the date of his party in 2017"), 0293 "answer": {"year": 2017, "month": 10, "day": 18} 0294 }, 0295 { 0296 "question": qsTr("International Women's Day is celebrated two days before March 10.<br> Find the date of International Women's Day in 2018."), 0297 "answer": {"year": 2018, "month": 2, "day": 8} 0298 }, 0299 { 0300 "question": qsTr("The sports competition was held on last Friday of September 2017.<br> Select the date of the sports competition on the calendar."), 0301 "answer": {"year": 2017, "month": 8, "day": 29} 0302 } 0303 ] 0304 ] 0305 ] 0306 }