Spaces:
Runtime error
Runtime error
Update demo_questions.py
Browse files- demo_questions.py +52 -56
demo_questions.py
CHANGED
|
@@ -1,81 +1,77 @@
|
|
|
|
|
| 1 |
# 60 demo questions (10 per subject) for SPM Exam Simulator
|
| 2 |
|
| 3 |
QUESTIONS = {
|
| 4 |
"BM": [
|
| 5 |
-
{"id": 1001, "text": "Apakah
|
| 6 |
{"id": 1002, "text": "Pilih sinonim bagi perkataan 'indah'.", "choices": ["A. Cantik", "B. Buruk", "C. Kusam", "D. Hodoh"], "answer": "A"},
|
| 7 |
{"id": 1003, "text": "Ayat yang manakah menggunakan kata ganda dengan betul?", "choices": ["A. Buku-buka", "B. Jalan-jalan", "C. Kerusi-kerusi", "D. Meja-meja"], "answer": "B"},
|
| 8 |
{"id": 1004, "text": "Perkataan manakah ialah kata adjektif?", "choices": ["A. Makan", "B. Tidur", "C. Tinggi", "D. Pergi"], "answer": "C"},
|
| 9 |
{"id": 1005, "text": "Peribahasa 'harapkan pegar, pegar makan padi' bermaksud?", "choices": ["A. Orang yang rajin", "B. Pengkhianatan oleh penjaga", "C. Hidup susah", "D. Orang baik hati"], "answer": "B"},
|
| 10 |
-
{"id": 1006, "text": "
|
| 11 |
-
{"id": 1007, "text": "
|
| 12 |
-
{"id": 1008, "text": "
|
| 13 |
-
{"id": 1009, "text": "
|
| 14 |
-
{"id": 1010, "text": "
|
| 15 |
],
|
| 16 |
-
|
| 17 |
"English": [
|
| 18 |
{"id": 2001, "text": "Choose the correct synonym for 'happy'.", "choices": ["A. Sad", "B. Joyful", "C. Angry", "D. Tired"], "answer": "B"},
|
| 19 |
{"id": 2002, "text": "Which sentence is grammatically correct?", "choices": ["A. She go to school.", "B. She goes to school.", "C. She going to school.", "D. She gone to school."], "answer": "B"},
|
| 20 |
{"id": 2003, "text": "Choose the antonym for 'hot'.", "choices": ["A. Cold", "B. Warm", "C. Heat", "D. Fire"], "answer": "A"},
|
| 21 |
{"id": 2004, "text": "Fill in the blank: He ____ playing football now.", "choices": ["A. is", "B. are", "C. am", "D. was"], "answer": "A"},
|
| 22 |
{"id": 2005, "text": "What is the plural of 'child'?", "choices": ["A. Childs", "B. Childes", "C. Children", "D. Childer"], "answer": "C"},
|
| 23 |
-
{"id": 2006, "text": "
|
| 24 |
-
{"id": 2007, "text": "Choose the correct
|
| 25 |
-
{"id": 2008, "text": "Which is
|
| 26 |
-
{"id": 2009, "text": "Choose the correct
|
| 27 |
{"id": 2010, "text": "What is the past tense of 'go'?", "choices": ["A. Goed", "B. Went", "C. Gone", "D. Going"], "answer": "B"},
|
| 28 |
],
|
| 29 |
-
|
| 30 |
"Math": [
|
| 31 |
-
{"id": 3001, "text": "
|
| 32 |
-
{"id": 3002, "text": "
|
| 33 |
-
{"id": 3003, "text": "
|
| 34 |
-
{"id": 3004, "text": "
|
| 35 |
-
{"id": 3005, "text": "
|
| 36 |
-
{"id": 3006, "text": "
|
| 37 |
-
{"id": 3007, "text": "What is
|
| 38 |
-
{"id": 3008, "text": "
|
| 39 |
-
{"id": 3009, "text": "
|
| 40 |
-
{"id": 3010, "text": "
|
| 41 |
],
|
| 42 |
-
|
| 43 |
"History": [
|
| 44 |
-
{"id": 4001, "text": "Siapakah Bapa Kemerdekaan Malaysia?", "choices": ["A.
|
| 45 |
-
{"id": 4002, "text": "
|
| 46 |
-
{"id": 4003, "text": "
|
| 47 |
-
{"id": 4004, "text": "
|
| 48 |
-
{"id": 4005, "text": "Bilakah
|
| 49 |
-
{"id": 4006, "text": "Siapakah
|
| 50 |
-
{"id": 4007, "text": "
|
| 51 |
-
{"id": 4008, "text": "
|
| 52 |
-
{"id": 4009, "text": "
|
| 53 |
-
{"id": 4010, "text": "
|
| 54 |
],
|
| 55 |
-
|
| 56 |
"Science": [
|
| 57 |
-
{"id": 5001, "text": "
|
| 58 |
-
{"id": 5002, "text": "Planet manakah yang paling hampir dengan Matahari?", "choices": ["A. Venus", "B. Bumi", "C.
|
| 59 |
-
{"id": 5003, "text": "Apakah
|
| 60 |
-
{"id": 5004, "text": "
|
| 61 |
-
{"id": 5005, "text": "Apakah
|
| 62 |
-
{"id": 5006, "text": "Apakah
|
| 63 |
-
{"id": 5007, "text": "Apakah
|
| 64 |
-
{"id": 5008, "text": "Apakah
|
| 65 |
-
{"id": 5009, "text": "Apakah
|
| 66 |
-
{"id": 5010, "text": "Apakah
|
| 67 |
],
|
| 68 |
-
|
| 69 |
"MoralStudies": [
|
| 70 |
-
{"id": 6001, "text": "Nilai
|
| 71 |
-
{"id": 6002, "text": "
|
| 72 |
-
{"id": 6003, "text": "Apakah
|
| 73 |
-
{"id": 6004, "text": "
|
| 74 |
-
{"id": 6005, "text": "
|
| 75 |
-
{"id": 6006, "text": "
|
| 76 |
-
{"id": 6007, "text": "
|
| 77 |
-
{"id": 6008, "text": "
|
| 78 |
-
{"id": 6009, "text": "
|
| 79 |
-
{"id": 6010, "text": "
|
| 80 |
-
]
|
| 81 |
}
|
|
|
|
| 1 |
+
# demo_questions.py
|
| 2 |
# 60 demo questions (10 per subject) for SPM Exam Simulator
|
| 3 |
|
| 4 |
QUESTIONS = {
|
| 5 |
"BM": [
|
| 6 |
+
{"id": 1001, "text": "Apakah kata dasar bagi perkataan 'berjalan'?", "choices": ["A. Ber", "B. Jalan", "C. An", "D. Jal"], "answer": "B"},
|
| 7 |
{"id": 1002, "text": "Pilih sinonim bagi perkataan 'indah'.", "choices": ["A. Cantik", "B. Buruk", "C. Kusam", "D. Hodoh"], "answer": "A"},
|
| 8 |
{"id": 1003, "text": "Ayat yang manakah menggunakan kata ganda dengan betul?", "choices": ["A. Buku-buka", "B. Jalan-jalan", "C. Kerusi-kerusi", "D. Meja-meja"], "answer": "B"},
|
| 9 |
{"id": 1004, "text": "Perkataan manakah ialah kata adjektif?", "choices": ["A. Makan", "B. Tidur", "C. Tinggi", "D. Pergi"], "answer": "C"},
|
| 10 |
{"id": 1005, "text": "Peribahasa 'harapkan pegar, pegar makan padi' bermaksud?", "choices": ["A. Orang yang rajin", "B. Pengkhianatan oleh penjaga", "C. Hidup susah", "D. Orang baik hati"], "answer": "B"},
|
| 11 |
+
{"id": 1006, "text": "Tukar kata ganti nama 'saya' kepada bentuk hormat.", "choices": ["A. Hamba", "B. Beta", "C. Patik", "D. Kami"], "answer": "C"},
|
| 12 |
+
{"id": 1007, "text": "Kata majmuk manakah dieja terpisah?", "choices": ["A. Kakitangan", "B. Kerjasama", "C. Tanggungjawab", "D. Setia usaha"], "answer": "D"},
|
| 13 |
+
{"id": 1008, "text": "Pilih ayat yang betul.", "choices": ["A. Mereka pergi ke sekolah setiap hari.", "B. Dia pergi sekolah tiap hari.", "C. Kami ke sekolah tiap tiap hari.", "D. Awak sekolah pergi hari-hari."], "answer": "A"},
|
| 14 |
+
{"id": 1009, "text": "Apakah maksud peribahasa 'bagai isi dengan kuku'?", "choices": ["A. Bersengketa", "B. Sangat akrab", "C. Bermusuhan", "D. Terpisah"], "answer": "B"},
|
| 15 |
+
{"id": 1010, "text": "Pilih antonim bagi perkataan 'tinggi'.", "choices": ["A. Rendah", "B. Dalam", "C. Jauh", "D. Panjang"], "answer": "A"},
|
| 16 |
],
|
|
|
|
| 17 |
"English": [
|
| 18 |
{"id": 2001, "text": "Choose the correct synonym for 'happy'.", "choices": ["A. Sad", "B. Joyful", "C. Angry", "D. Tired"], "answer": "B"},
|
| 19 |
{"id": 2002, "text": "Which sentence is grammatically correct?", "choices": ["A. She go to school.", "B. She goes to school.", "C. She going to school.", "D. She gone to school."], "answer": "B"},
|
| 20 |
{"id": 2003, "text": "Choose the antonym for 'hot'.", "choices": ["A. Cold", "B. Warm", "C. Heat", "D. Fire"], "answer": "A"},
|
| 21 |
{"id": 2004, "text": "Fill in the blank: He ____ playing football now.", "choices": ["A. is", "B. are", "C. am", "D. was"], "answer": "A"},
|
| 22 |
{"id": 2005, "text": "What is the plural of 'child'?", "choices": ["A. Childs", "B. Childes", "C. Children", "D. Childer"], "answer": "C"},
|
| 23 |
+
{"id": 2006, "text": "Identify the correct spelling.", "choices": ["A. Enviroment", "B. Environment", "C. Enviromentt", "D. Envaironment"], "answer": "B"},
|
| 24 |
+
{"id": 2007, "text": "Choose the correct article: She bought ___ apple.", "choices": ["A. a", "B. an", "C. the", "D. no article"], "answer": "B"},
|
| 25 |
+
{"id": 2008, "text": "Which word is an adjective?", "choices": ["A. Quickly", "B. Happy", "C. Jump", "D. Run"], "answer": "B"},
|
| 26 |
+
{"id": 2009, "text": "Choose the correct preposition: They live ___ Kuala Lumpur.", "choices": ["A. at", "B. in", "C. on", "D. by"], "answer": "B"},
|
| 27 |
{"id": 2010, "text": "What is the past tense of 'go'?", "choices": ["A. Goed", "B. Went", "C. Gone", "D. Going"], "answer": "B"},
|
| 28 |
],
|
|
|
|
| 29 |
"Math": [
|
| 30 |
+
{"id": 3001, "text": "Simplify: 2x + 3x", "choices": ["A. 5x", "B. 6x", "C. x^2", "D. 2x^2"], "answer": "A"},
|
| 31 |
+
{"id": 3002, "text": "Find the value of x if 2x = 10.", "choices": ["A. 2", "B. 5", "C. 10", "D. 20"], "answer": "B"},
|
| 32 |
+
{"id": 3003, "text": "What is the square root of 49?", "choices": ["A. 6", "B. 7", "C. 8", "D. 9"], "answer": "B"},
|
| 33 |
+
{"id": 3004, "text": "Solve: 12 ÷ 3 × 2", "choices": ["A. 2", "B. 4", "C. 6", "D. 8"], "answer": "D"},
|
| 34 |
+
{"id": 3005, "text": "Area of a rectangle with length 5 cm and width 3 cm?", "choices": ["A. 8 cm²", "B. 15 cm²", "C. 10 cm²", "D. 20 cm²"], "answer": "B"},
|
| 35 |
+
{"id": 3006, "text": "Perimeter of a square with side 4 cm?", "choices": ["A. 8 cm", "B. 12 cm", "C. 16 cm", "D. 20 cm"], "answer": "C"},
|
| 36 |
+
{"id": 3007, "text": "What is 15% of 200?", "choices": ["A. 15", "B. 20", "C. 25", "D. 30"], "answer": "D"},
|
| 37 |
+
{"id": 3008, "text": "Convert 0.75 to a fraction.", "choices": ["A. 3/4", "B. 2/3", "C. 4/5", "D. 7/10"], "answer": "A"},
|
| 38 |
+
{"id": 3009, "text": "Simplify: (x + 2)(x + 3)", "choices": ["A. x² + 5x + 6", "B. x² + 6x + 5", "C. x² + 3x + 2", "D. x² + 2x + 3"], "answer": "A"},
|
| 39 |
+
{"id": 3010, "text": "Find the mean of 2, 4, 6, 8, 10.", "choices": ["A. 5", "B. 6", "C. 7", "D. 8"], "answer": "B"},
|
| 40 |
],
|
|
|
|
| 41 |
"History": [
|
| 42 |
+
{"id": 4001, "text": "Siapakah tokoh yang digelar Bapa Kemerdekaan Malaysia?", "choices": ["A. Tun Abdul Razak", "B. Tunku Abdul Rahman", "C. Tun Hussein Onn", "D. Tun Mahathir Mohamad"], "answer": "B"},
|
| 43 |
+
{"id": 4002, "text": "Tahun berapakah Malaysia mencapai kemerdekaan?", "choices": ["A. 1955", "B. 1957", "C. 1963", "D. 1970"], "answer": "B"},
|
| 44 |
+
{"id": 4003, "text": "Apakah nama perjanjian yang membawa kepada pembentukan Malaysia?", "choices": ["A. Perjanjian London", "B. Perjanjian Malaysia", "C. Perjanjian Kuala Lumpur", "D. Perjanjian Singapore"], "answer": "B"},
|
| 45 |
+
{"id": 4004, "text": "Siapakah pengasas Kesultanan Melaka?", "choices": ["A. Parameswara", "B. Hang Tuah", "C. Sultan Mahmud", "D. Tun Perak"], "answer": "A"},
|
| 46 |
+
{"id": 4005, "text": "Bilakah Perang Dunia Kedua bermula?", "choices": ["A. 1914", "B. 1920", "C. 1939", "D. 1945"], "answer": "C"},
|
| 47 |
+
{"id": 4006, "text": "Siapakah pahlawan wanita Melayu yang terkenal di Negeri Sembilan?", "choices": ["A. Tun Teja", "B. Tun Fatimah", "C. Cik Siti Wan Kembang", "D. Tok Janggut"], "answer": "C"},
|
| 48 |
+
{"id": 4007, "text": "Bilakah Jepun menyerah kalah dalam Perang Dunia Kedua?", "choices": ["A. 1942", "B. 1945", "C. 1948", "D. 1950"], "answer": "B"},
|
| 49 |
+
{"id": 4008, "text": "Apakah nama perjanjian yang mengakhiri Perang Dunia Pertama?", "choices": ["A. Perjanjian Paris", "B. Perjanjian Versailles", "C. Perjanjian London", "D. Perjanjian Tokyo"], "answer": "B"},
|
| 50 |
+
{"id": 4009, "text": "Siapakah tokoh yang memperjuangkan kemerdekaan melalui akhbar 'Utusan Melayu'?", "choices": ["A. Abdul Samad Ismail", "B. Za’ba", "C. Tunku Abdul Rahman", "D. Tun Razak"], "answer": "A"},
|
| 51 |
+
{"id": 4010, "text": "Apakah maksud Dasar Ekonomi Baru (DEB)?", "choices": ["A. Menghapuskan kemiskinan", "B. Menambah hutang negara", "C. Mengurangkan pelaburan", "D. Mengurangkan pembangunan"], "answer": "A"},
|
| 52 |
],
|
|
|
|
| 53 |
"Science": [
|
| 54 |
+
{"id": 5001, "text": "Apakah simbol kimia bagi air?", "choices": ["A. O2", "B. H2O", "C. CO2", "D. HO2"], "answer": "B"},
|
| 55 |
+
{"id": 5002, "text": "Planet manakah yang paling hampir dengan Matahari?", "choices": ["A. Venus", "B. Bumi", "C. Merkuri", "D. Marikh"], "answer": "C"},
|
| 56 |
+
{"id": 5003, "text": "Apakah organ utama dalam sistem pernafasan manusia?", "choices": ["A. Hati", "B. Paru-paru", "C. Jantung", "D. Ginjal"], "answer": "B"},
|
| 57 |
+
{"id": 5004, "text": "Apakah unit SI bagi arus elektrik?", "choices": ["A. Volt", "B. Watt", "C. Ampere", "D. Ohm"], "answer": "C"},
|
| 58 |
+
{"id": 5005, "text": "Apakah bentuk orbit planet mengelilingi Matahari?", "choices": ["A. Bulat sempurna", "B. Elips", "C. Segi empat", "D. Segi tiga"], "answer": "B"},
|
| 59 |
+
{"id": 5006, "text": "Apakah fungsi klorofil pada tumbuhan?", "choices": ["A. Menyerap cahaya matahari", "B. Menyerap air", "C. Menghasilkan oksigen", "D. Menghasilkan buah"], "answer": "A"},
|
| 60 |
+
{"id": 5007, "text": "Apakah tiga keadaan jirim?", "choices": ["A. Pepejal, Cecair, Gas", "B. Air, Api, Udara", "C. Tanah, Air, Api", "D. Cahaya, Bunyi, Udara"], "answer": "A"},
|
| 61 |
+
{"id": 5008, "text": "Apakah nama planet terbesar dalam sistem suria?", "choices": ["A. Bumi", "B. Zuhal", "C. Musytari", "D. Neptun"], "answer": "C"},
|
| 62 |
+
{"id": 5009, "text": "Apakah punca utama lapisan ozon menipis?", "choices": ["A. Hujan asid", "B. Gas CFC", "C. Gas karbon monoksida", "D. Asap kenderaan"], "answer": "B"},
|
| 63 |
+
{"id": 5010, "text": "Apakah daya yang menarik objek ke bawah?", "choices": ["A. Daya geseran", "B. Daya tarikan bumi", "C. Daya magnet", "D. Daya apungan"], "answer": "B"},
|
| 64 |
],
|
|
|
|
| 65 |
"MoralStudies": [
|
| 66 |
+
{"id": 6001, "text": "Nilai manakah yang ditunjukkan apabila kita menolong rakan yang susah?", "choices": ["A. Hormat", "B. Kasih sayang", "C. Tolong-menolong", "D. Rasional"], "answer": "C"},
|
| 67 |
+
{"id": 6002, "text": "Menghormati ibu bapa merupakan contoh nilai?", "choices": ["A. Kesyukuran", "B. Tanggungjawab", "C. Hormat-menghormati", "D. Keberanian"], "answer": "C"},
|
| 68 |
+
{"id": 6003, "text": "Apakah nilai murni apabila kita mengitar semula bahan buangan?", "choices": ["A. Rasional", "B. Keberanian", "C. Cinta akan alam sekitar", "D. Hemah tinggi"], "answer": "C"},
|
| 69 |
+
{"id": 6004, "text": "Apabila kita menepati janji, kita mengamalkan nilai?", "choices": ["A. Bertanggungjawab", "B. Berdisiplin", "C. Amanah", "D. Rasional"], "answer": "C"},
|
| 70 |
+
{"id": 6005, "text": "Nilai murni manakah apabila kita mematuhi undang-undang?", "choices": ["A. Kejujuran", "B. Rasional", "C. Patriotisme", "D. Kepatuhan kepada peraturan"], "answer": "D"},
|
| 71 |
+
{"id": 6006, "text": "Apabila kita bekerja keras untuk mencapai kejayaan, kita mengamalkan nilai?", "choices": ["A. Hemah tinggi", "B. Rajin", "C. Berdikari", "D. Toleransi"], "answer": "B"},
|
| 72 |
+
{"id": 6007, "text": "Apabila kita menolong orang tua melintas jalan, nilai yang diamalkan ialah?", "choices": ["A. Toleransi", "B. Hormat", "C. Belas kasihan", "D. Keberanian"], "answer": "C"},
|
| 73 |
+
{"id": 6008, "text": "Apabila kita berkongsi makanan dengan rakan, kita mengamalkan nilai?", "choices": ["A. Hemah tinggi", "B. Kasih sayang", "C. Tolong-menolong", "D. Kejujuran"], "answer": "C"},
|
| 74 |
+
{"id": 6009, "text": "Apabila kita menghormati guru, kita mengamalkan nilai?", "choices": ["A. Kasih sayang", "B. Hormat", "C. Amanah", "D. Keberanian"], "answer": "B"},
|
| 75 |
+
{"id": 6010, "text": "Apabila kita mengutamakan kepentingan negara berbanding diri sendiri, nilai yang diamalkan ialah?", "choices": ["A. Patriotisme", "B. Tanggungjawab", "C. Rasional", "D. Kesyukuran"], "answer": "A"},
|
| 76 |
+
],
|
| 77 |
}
|