{"id":42,"date":"2025-10-10T13:46:55","date_gmt":"2025-10-10T13:46:55","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_bhujel\/?p=42"},"modified":"2025-10-10T13:46:56","modified_gmt":"2025-10-10T13:46:56","slug":"quiz-game","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_bhujel\/2025\/10\/10\/quiz-game\/","title":{"rendered":"Quiz game"},"content":{"rendered":"\n<p>today in class I made a Quiz game<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"700\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-1024x700.png\" alt=\"\" class=\"wp-image-43\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-1024x700.png 1024w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-300x205.png 300w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-768x525.png 768w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image.png 1146w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>after you finish the quiz, it tells you the score you got <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"164\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-1.png\" alt=\"\" class=\"wp-image-44\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-1.png 368w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-1-300x134.png 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/figure>\n\n\n\n<p>this part of the code lets you choose an answer and gives you a point if you get it correct<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"391\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-2.png\" alt=\"\" class=\"wp-image-45\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-2.png 509w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-2-300x230.png 300w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"257\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-3.png\" alt=\"\" class=\"wp-image-46\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-3.png 785w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-3-300x98.png 300w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-3-768x251.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/figure>\n\n\n\n<p>these lines of the codes are the questions and the options you get<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"81\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-4.png\" alt=\"\" class=\"wp-image-48\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-4.png 446w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-4-300x54.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p>this line prints the score you got.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>today in class I made a Quiz game after you finish the quiz, it tells you the score you got this part of the code lets you choose an answer and gives you a point if you get it correct these lines of the codes are the questions and the options you get this line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":47,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":2,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/42\/revisions\/50"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/media\/47"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}