<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6371362150798794505</id><updated>2025-01-07T18:51:50.753+05:30</updated><category term="Postal"/><category term="SBOrders"/><category term="COMPUTERS"/><category term="DOP"/><category term="Circulars"/><category term="Quiz"/><category term="Fundamentals"/><category term="Languages"/><category term="Video"/><category term="C"/><category term="Indiapost"/><category term="News"/><category term="POSB"/><category term="PS-Group-B"/><category term="CSI"/><category term="Manuals"/><category term="Mobile Money Transfer"/><category term="IPExam"/><category term="General"/><category term="SAP"/><category term="CBS"/><category term="COVID-19"/><category term="SQL"/><category term="error"/><category term="Sanchaypost"/><category term="SpeedNet"/><category term="Apps"/><category term="BackOffice"/><category term="Finacle"/><category term="Software Tips"/><category term="ePost"/><category term="employeeportal"/><category term="CarrerGuidence"/><category term="Downloads"/><category term="ForeignMail"/><category term="God-Jal"/><category term="IFSMO"/><category term="IPPB"/><category term="MCCAMISH"/><category term="MTSexam"/><category term="NSC Certificates"/><category term="PAexam"/><category term="PLI"/><category term="Point of Sale"/><category term="Postman"/><category term="Printer"/><category term="RPLI"/><category term="Treasury"/><category term="UID"/><category term="AadharPrint"/><category term="Abroad Study"/><category term="Allviewer"/><category term="BNPL"/><category term="Bag-Tracking"/><category term="CN23"/><category term="CTS"/><category term="Carrer Guidence"/><category term="ChotaATM"/><category term="DARPAN"/><category term="Domain"/><category term="Dropbox"/><category term="ECP"/><category term="Education"/><category term="Foreign Articles"/><category term="HR module"/><category term="IAM"/><category term="IMTS"/><category term="Internet"/><category term="Java"/><category term="POS"/><category term="PayRoll"/><category term="Payslip"/><category term="RICT"/><category term="SBCO"/><category term="Software Bugs"/><category term="Transfers"/><category term="UCR"/><category term="UPSC"/><category term="VPMO"/><category term="WNX"/><category term="eMO"/><title type='text'>SA Hyderabad City</title><subtitle type='html'>Postal Blog Since 2012. It publishes, all the Department of Posts information such as SAP, CBS, CSI, McCamish, Darpan, POSB Orders, Postal Manuals,</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>SA Hyd City</name><uri>http://www.blogger.com/profile/01094399591484334870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>260</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-5593600366031489738</id><published>2021-01-19T13:21:00.002+05:30</published><updated>2021-01-19T13:27:10.982+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DOP"/><category scheme="http://www.blogger.com/atom/ns#" term="News"/><title type='text'>Standard Operating Procedure for Redressal of Public Grievances</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #ff00fe; font-size: medium;&quot;&gt;&lt;b&gt;&lt;marquee&gt;Standard Operating Procedure for Redressal of Public Grievances ...&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpKyUL2abG_PaLsQU1TkePj_lmNzkcy5wO5McCvNPYnmSesZCc4QS3WDy6BfcvkdgxYc3hFbdINmhxaLKwh4a4yHAZUNhb6RwBd5poMO0m_r6KtgoiIXiGYfQhnP2VW5P0Uxg93q8efh7a/s871/PG_1.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; border=&quot;0&quot; data-original-height=&quot;871&quot; data-original-width=&quot;673&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpKyUL2abG_PaLsQU1TkePj_lmNzkcy5wO5McCvNPYnmSesZCc4QS3WDy6BfcvkdgxYc3hFbdINmhxaLKwh4a4yHAZUNhb6RwBd5poMO0m_r6KtgoiIXiGYfQhnP2VW5P0Uxg93q8efh7a/s16000/PG_1.jpg&quot; title=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghPVubFjOu7biqJzaY4CGwJzVHbD0IaWao9CWHIKRbVDR6r9BjoCPbwYjjHgwDkGWeiXE5a0ltOeAwV4ipLnwRiUtbOcoZI5adq3X2xy9dvZ1oA-CAiSPyELBtTEDguPaKbc0vaFOOASqk/s917/PG_2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; border=&quot;0&quot; data-original-height=&quot;917&quot; data-original-width=&quot;677&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghPVubFjOu7biqJzaY4CGwJzVHbD0IaWao9CWHIKRbVDR6r9BjoCPbwYjjHgwDkGWeiXE5a0ltOeAwV4ipLnwRiUtbOcoZI5adq3X2xy9dvZ1oA-CAiSPyELBtTEDguPaKbc0vaFOOASqk/s16000/PG_2.jpg&quot; title=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtC3ExWq8atJsULr6KylaZ9vT1jpTt0LgdQgBZlDtljUrlae_YQXwHquuSyqgYxSk1R9TYLYUXUlfW5LM1FDPQ8DKS11IKdw7vgvLuuKnz8HQLOY-3bOR1p_xfnumWysXskSB_eXQudsyd/s917/PG_3.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; border=&quot;0&quot; data-original-height=&quot;917&quot; data-original-width=&quot;701&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtC3ExWq8atJsULr6KylaZ9vT1jpTt0LgdQgBZlDtljUrlae_YQXwHquuSyqgYxSk1R9TYLYUXUlfW5LM1FDPQ8DKS11IKdw7vgvLuuKnz8HQLOY-3bOR1p_xfnumWysXskSB_eXQudsyd/s16000/PG_3.jpg&quot; title=&quot;Standard Operating Procedure for Redressal of Public Grievances&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/5593600366031489738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2021/01/standard-operating-procedure-for-redressal-of-public-grievance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/5593600366031489738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/5593600366031489738'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2021/01/standard-operating-procedure-for-redressal-of-public-grievance.html' title='Standard Operating Procedure for Redressal of Public Grievances'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpKyUL2abG_PaLsQU1TkePj_lmNzkcy5wO5McCvNPYnmSesZCc4QS3WDy6BfcvkdgxYc3hFbdINmhxaLKwh4a4yHAZUNhb6RwBd5poMO0m_r6KtgoiIXiGYfQhnP2VW5P0Uxg93q8efh7a/s72-c/PG_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8643130908583616913</id><published>2021-01-19T12:58:00.001+05:30</published><updated>2021-01-19T13:27:58.165+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSI"/><category scheme="http://www.blogger.com/atom/ns#" term="SAP"/><category scheme="http://www.blogger.com/atom/ns#" term="VPMO"/><title type='text'>Standard Operating Procedure for VPMO booking report</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe;&quot;&gt;&lt;marquee&gt;Standard Operating Procedure (SOP) for VPMO booking report ...&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;Modified VPMO booking report with provision to generate date wise/ article wise VPMO booked and VPMO not booked reports for single /multiple facility IDs deployed in production.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqtK8Dw_l7MOyhxogtB5sUIeGXXeyvwUYYtXY1XrJfIBwwy5NjLbIdrVD0xmnKcAh8vwRF0uVogjihGtd6F6yTmx8UQqf2qmLrlhDuun-2-d9ajfUII6VI6rWGUCwd-g3QMFl4LEqqVUC7/s2048/VPMO_1.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for VPMO booking report&quot; border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1882&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqtK8Dw_l7MOyhxogtB5sUIeGXXeyvwUYYtXY1XrJfIBwwy5NjLbIdrVD0xmnKcAh8vwRF0uVogjihGtd6F6yTmx8UQqf2qmLrlhDuun-2-d9ajfUII6VI6rWGUCwd-g3QMFl4LEqqVUC7/s16000/VPMO_1.jpg&quot; title=&quot;Standard Operating Procedure for VPMO booking report&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMqRXC_eoPCE3DmW3r55SgLRcj2nd94XIS0nrD2cnKqZWRtvBhesTDX4CJdU5UPb3eDOcLnTSvW15oC5xvTX829LTgzYp3niBR2uBpqvC6dhmPzYFjaHwztmI4fRz7iYXW0DK62yVwDMUA/s2048/VPMO_2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for VPMO booking report&quot; border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1494&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMqRXC_eoPCE3DmW3r55SgLRcj2nd94XIS0nrD2cnKqZWRtvBhesTDX4CJdU5UPb3eDOcLnTSvW15oC5xvTX829LTgzYp3niBR2uBpqvC6dhmPzYFjaHwztmI4fRz7iYXW0DK62yVwDMUA/s16000/VPMO_2.jpg&quot; title=&quot;Standard Operating Procedure for VPMO booking report&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP6Hx2BQqfSa1-_5aGPlzoMRh3fFSSmhanI1RH6B4_duSBSFCJCo8wwgGohuXwnQpj1kR8eohQTu7Y8zBwWk11xQLimrnpI5YLYse9xcKWSyOEZ_GNkKlBLDXvDgeAHLyrpL_KzhGPO3Oo/s2048/VPMO_3.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for VPMO booking report&quot; border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1561&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP6Hx2BQqfSa1-_5aGPlzoMRh3fFSSmhanI1RH6B4_duSBSFCJCo8wwgGohuXwnQpj1kR8eohQTu7Y8zBwWk11xQLimrnpI5YLYse9xcKWSyOEZ_GNkKlBLDXvDgeAHLyrpL_KzhGPO3Oo/s16000/VPMO_3.jpg&quot; title=&quot;Standard Operating Procedure for VPMO booking report&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKTrGtKi_kYJgU-tAiM-2HWg86xOweg9ctayVrN6iljVxqSXTKlT7g3os_IGlW4oT0bUndGmFNAFrKl52LTuHJ7DF0F2H8p2wxmhPWhH9Z4DAt8l26jtenixjp5U1MHbYcM_rnhCoW3pJ/s2048/VPMO_4.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Standard Operating Procedure for VPMO booking report&quot; border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1823&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKTrGtKi_kYJgU-tAiM-2HWg86xOweg9ctayVrN6iljVxqSXTKlT7g3os_IGlW4oT0bUndGmFNAFrKl52LTuHJ7DF0F2H8p2wxmhPWhH9Z4DAt8l26jtenixjp5U1MHbYcM_rnhCoW3pJ/s16000/VPMO_4.jpg&quot; title=&quot;Standard Operating Procedure for VPMO booking report&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: right;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;dpms.cept@indiapost.gov.in&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: right;&quot;&gt;&lt;b&gt;Centre for Excellence in Postal Technology&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8643130908583616913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2021/01/standard-operating-procedure-for-vpmo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8643130908583616913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8643130908583616913'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2021/01/standard-operating-procedure-for-vpmo.html' title='Standard Operating Procedure for VPMO booking report'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqtK8Dw_l7MOyhxogtB5sUIeGXXeyvwUYYtXY1XrJfIBwwy5NjLbIdrVD0xmnKcAh8vwRF0uVogjihGtd6F6yTmx8UQqf2qmLrlhDuun-2-d9ajfUII6VI6rWGUCwd-g3QMFl4LEqqVUC7/s72-c/VPMO_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-3242363066884250405</id><published>2020-12-31T19:00:00.025+05:30</published><updated>2021-01-19T13:07:13.109+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="POSB"/><category scheme="http://www.blogger.com/atom/ns#" term="SBOrders"/><title type='text'>SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes </title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-size: large;&quot;&gt;&lt;marquee&gt;SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes ...&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkqWex7TAakri4QLwiVEnG1Ed7oYiVrf1IzxvfPJRum_mgRMPRirUUwOJWi6y_usUgkE2c0jLJJTyISJikRlptpXWcRtXbWEPEXjgE41fpWbSlbT_DT8q2b6YShhOJW_Uhv8Td-dQyy_VL/s1493/SB_order_38_2020.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes&quot; border=&quot;0&quot; data-original-height=&quot;1493&quot; data-original-width=&quot;1061&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkqWex7TAakri4QLwiVEnG1Ed7oYiVrf1IzxvfPJRum_mgRMPRirUUwOJWi6y_usUgkE2c0jLJJTyISJikRlptpXWcRtXbWEPEXjgE41fpWbSlbT_DT8q2b6YShhOJW_Uhv8Td-dQyy_VL/s16000/SB_order_38_2020.jpg&quot; title=&quot;SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfvLk50OblOBTDatgYrFnZU1BQJtbdgPf083roZDGdJMeJfNSAAhvc2jbcsQXdMvtSxHRtU47NSEQtxc6J4jaGcSsLnoBsR1jS-GGmnwCiRvfkWEIG7Nmx7kp8FnFMBt31hfXfcD4jNKKR/s1329/SB_order_38_2020_2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes&quot; border=&quot;0&quot; data-original-height=&quot;1329&quot; data-original-width=&quot;1085&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfvLk50OblOBTDatgYrFnZU1BQJtbdgPf083roZDGdJMeJfNSAAhvc2jbcsQXdMvtSxHRtU47NSEQtxc6J4jaGcSsLnoBsR1jS-GGmnwCiRvfkWEIG7Nmx7kp8FnFMBt31hfXfcD4jNKKR/s16000/SB_order_38_2020_2.jpg&quot; title=&quot;SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/3242363066884250405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/sb-order-no-382020-revision-of-interest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3242363066884250405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3242363066884250405'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/sb-order-no-382020-revision-of-interest.html' title='SB Order No: 38/2020 | Revision of interest rates for National (Small) Savings Schemes '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkqWex7TAakri4QLwiVEnG1Ed7oYiVrf1IzxvfPJRum_mgRMPRirUUwOJWi6y_usUgkE2c0jLJJTyISJikRlptpXWcRtXbWEPEXjgE41fpWbSlbT_DT8q2b6YShhOJW_Uhv8Td-dQyy_VL/s72-c/SB_order_38_2020.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-1058853022781191489</id><published>2020-12-19T08:38:00.001+05:30</published><updated>2020-12-19T08:38:32.210+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 8</title><content type='html'> &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;&lt;H2&gt;PS Group B Paper 1, 2020 Part 8...&lt;/h2&gt;&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;The cases of losses of mail due to Road Accident, Railway Accident, Air Crash should be reported to the&#39;,
    
     options:[&#39;Regional PMG&#39;,&#39;Postmaster of HO&#39;,&#39;ASP/IPs of concerned office&#39;,&#39;None of these&#39;],
    answer:0
   },

   
   {
    question:&#39;Senior Citizen Saving Scheme Account can be extended further for a period of&#39;,
    options:[&#39;1 Year&#39;,&#39;3 Years&#39;,&#39;5 years&#39;,&#39;2 years&#39;],
    answer:1
   },
   {
    question:&#39; The National Disaster Management Authority functions under&#39;,
    options:[&#39;Ministry of Environment &amp; Forests&#39;,&#39;Ministry of Home Affairs&#39;,&#39;Ministry of Defence&#39;,&#39;Ministry of Finance&#39;],
    answer:1
   },
{
    question:&#39;COVID-19 stands for&#39;,
    options:[&#39;Corona Virus Influenza Disease -2019&#39;,&#39;Corona Virus Disease-2019&#39;,&#39;Corona Virus infectious Disease-2019&#39;,&#39;Covid Virus Infection Disease-2019&#39;],
    answer:1
   },
{
    question:&#39;Mission Karmayogi is a scheme approved by the Cabinet aimed at&#39;,
    options:[&#39;Popularizing Yoga&#39;,&#39;Improving agricultural out put&#39;,&#39;Capacity building Scheme for Civil Service&#39;,&#39;Strengthening Line of Control&#39;],
    answer:2
   },
{
    question:&#39;Vande Bharat Mission is an&#39;,
    options:[&#39;Operation to evacuate Indians stranded abroad due to COVID-19 restrictions&#39;,&#39; A mission to improve our performance in sports&#39;,&#39;A mission to encourage our soldiers on the LOC&#39;,&#39;A mission to encourage village children in their education&#39;],
    answer:0
   },
{
    question:&#39;A blind or illiterate or physically handicapped adult&#39;,
    
  options:[&#39;A. Cannot open any account&#39;,&#39;B. May open and operate account personally&#39;,&#39;C. May operate account through a literate agent nominated by him for the purpose.&#39;,&#39;D. Both B &amp; C above&#39;],
    answer:3
   },

{
    question:&#39;People Liberation Army is the armed force of the following Nation&#39;,
    options:[&#39;Hong Kong&#39;, &#39;Taiwan&#39;,&#39;People&amp;#39;s Republic of China&#39;,&#39;Kenya&#39;],
    answer:2
   },


{
    question:&#39; As per Annual report 2019-20, Aadhaar updation &amp; enrolment facility is available in how many Post Offices? &amp;#40;Select nearest number&amp;#41;&#39;,
    options:[&#39;10000&#39;, &#39;11000&#39;, &#39;12000&#39;, &#39;13000&#39;],
    answer:3
   },
   {
    question:&#39;Packets of registered newspapers containing more than one copy of the same issue may be transmitted by post at the special rate of postage, provided&lt;br/&gt;(i) Each packet shall contain only copies of the same registered newspaper and of the same date.&lt;br/&gt;(ii) The packets shall be posted in the same post office and on the same day as in the case of single copies of the same registered newspaper.&lt;br/&gt;(iii) The packets shall be addressed to the local agents or any place of destination whose name and address shall be communicated to the office of posting by the proprietor, manager or publisher of the registered newspaper.&lt;br/&gt;(iv) The packets shall not be delivered at the addressee&amp;#39;s residence, but shall be handed over at the window of the office of destination to the local agent or any person authorized in this behalf by the local agent.&#39;,
    options:[&#39;All the above&#39;, &#39;(i), (ii) and (iii) only&#39;,&#39;(i), (ii) and (iv) only&#39;,&#39; (i), (iii) and (iv) only&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/1058853022781191489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1058853022781191489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1058853022781191489'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-8.html' title='PS Group B Paper 1, 2020, Part 8'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-3177372503797517766</id><published>2020-12-19T08:36:00.003+05:30</published><updated>2020-12-19T08:36:48.248+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 7</title><content type='html'> &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;&lt;H2&gt;PS Group B Paper 1, 2020 Part 7...&lt;/h2&gt;&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;The terms CAPEX and OPEX you can find in&#39;,
    
     options:[&#39;CIS&#39;,&#39;Finacle&#39;,&#39;GFR&#39;,&#39;Foreign Post Manual&#39;],
    answer:2
   },

   
   {
    question:&#39;Daily docket in the prescribed form is used&#39;,
    options:[&#39;By licensee along with his last posting of franked article&#39;,&#39;The supervisor of Franking department to submit his report&#39;,&#39;For identification of licensee&amp;#39;s representative&#39;,&#39;None of these&#39;],
    answer:0
   },
   {
    question:&#39;The in-house web-based computerized customer care centre of the Department has been migrated on 30.12.2019 to the following platform:&#39;,
    options:[&#39;CRM-Oracle Based platform&#39;,&#39;CRM-SAP based platform&#39;,&#39;CRM-Plex based platform&#39;,&#39;CRM-SAGE based platform&#39;],
    answer:1
   },
{
    question:&#39;Custodian of APARS of IP/ASP/PS Group &amp;#39;B&amp;#39; in the Circle are&#39;,
    options:[&#39;Controlling Officer&#39;,&#39;Divisional Head&#39;,&#39;DPS HQ&#39;,&#39;Regional PMG&#39;],
    answer:2
   },
{
    question:&#39;Charge report is prepared in&#39;,
    options:[&#39;ACG 67&#39;,&#39;ACG 63&#39;,&#39;ACG 61&#39;,&#39;ACG 40&#39;],
    answer:2
   },
{
    question:&#39; The delivery norms for speed post article for the rest of India is&#39;,
    options:[&#39;04 to 05 days&#39;,&#39;05 to 10 days&#39;,&#39;10 to 15 days&#39;,&#39;07 to 10 days&#39;],
    answer:0
   },
{
    question:&#39;What is the current rate of Penal interest in SB branch&#39;,
    
  options:[&#39; 2.5% compound interest per year over and above the applicable SB interest&#39;,&#39;2.5% simple interest per year over and above the applicable SB interest&#39;,&#39;Double the applicable rate of SB interest&#39;,&#39;5% simple interest plus applicable SB interest&#39;],
    answer:0
   },

{
    question:&#39;Normal period of preservation of records of Foreign Post office, except those under dispute is&#39;,
    options:[&#39;1 year&#39;, &#39;18 months&#39;,&#39;3 years&#39;,&#39;24 months&#39;],
    answer:1
   },


{
    question:&#39;On Under weighment system the mails handed over to the station master are weighed in the presence of the dispatching officer and ........ of each year&#39;,
    options:[&#39;1st of January and 1st of July&#39;, &#39;21&quot; of January and 21&quot; of July&#39;, &#39;15th of January and 15th of July&#39;, &#39;15 of January and 1st of June&#39;],
    answer:1
   },
   {
    question:&#39;The World Postal Day is celebrated&#39;,
    options:[&#39;To commemorate the anniversary of creation of UPU&#39;, &#39;To celebrate the bilateral co-operation between world Postal countries&#39;,&#39;To commemorate the anniversary of creation of International Bureau of Postal Administration&#39;,&#39;To commemorate the anniversary of creation of APPU&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/3177372503797517766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3177372503797517766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3177372503797517766'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-7.html' title='PS Group B Paper 1, 2020, Part 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-5436604150641443911</id><published>2020-12-19T08:28:00.001+05:30</published><updated>2020-12-19T08:35:17.777+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020 Part 6</title><content type='html'> &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PS Group B Paper 1, 2020 Part 6...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Under PNOP, following equipments are specified for use in Parcel hub/NDC:&lt;br/&gt;1) Roller Container&lt;br/&gt;2) SWS&lt;br/&gt;3) Sequencing table&lt;br/&gt;4) Bag stand&lt;br/&gt;Which of the above statements are correct&#39;,
    
     options:[&#39;1, 2 and 3&#39;,&#39;1, 3 and 4&#39;,&#39;2, 3 and 4&#39;,&#39;1, 2, 3 and 4&#39;],
    answer:3
   },

   
   {
    question:&#39;Articles liable to export duty are detained at the outward office of exchange and the sender is informed regarding the payment of duty by:&#39;,
    options:[&#39;By the office of exchange&#39;,&#39;By the custom authorities directly&#39;,&#39;By the head office of the circle&#39;,&#39;All of the above&#39;],
    answer:1
   },
   {
    question:&#39;Stamps specifically issued for day to day postal needs and placed on sale for an unlimited period are known as:&#39;,
    options:[&#39;Commemorative stamps&#39;,&#39;Definitive stamps&#39;,&#39;Special stamps&#39;,&#39;Joint issue stamps&#39;],
    answer:1
   },
{
    question:&#39;Seniority of a person appointed on compassionate appointment would be&#39;,
    options:[&#39;Date of joining&#39;,&#39;Date of appointment&#39;,&#39;Below all candidates appointed in that year&#39;,&#39;Same as the date of all candidates appointed that year&#39;],
    answer:2
   },
{
    question:&#39;Compassionate appointment is applicable in case of&#39;,
    options:[&#39;Death of the Govt. Servant&#39;,&#39;Missing Government Servant&#39;,&#39;Death of the Govt. Servant by Suicide&#39;,&#39;All of the above&#39;],
    answer:3
   },
{
    question:&#39;Sanction for premature closure of PPF account is issued by&#39;,
    options:[&#39;Divisional Head&#39;,&#39;Head Postmaster&#39;,&#39;Sub Divisional head&#39;,&#39;Supervisor SBCO&#39;],
    answer:0
   },
{
    question:&#39;Widow appointed on compassionate appointment on remarriage is&#39;,
    
  options:[&#39;Allowed to continue&#39;,&#39;should resign&#39;,&#39;Compulsorily retired&#39;,&#39;Removed from appointment&#39;],
    answer:0
   },

{
    question:&#39;Dies- non can be marked when&#39;,
    options:[&#39;The official remains absent without prior information&#39;, &#39;When official leaves office while on duty without proper permission&#39;,&#39;Official remains in office but refuse to perform duty&#39;,&#39;All of the above&#39;],
    answer:3
   },


{
    question:&#39;Departmental Identity card is issued in form&#39;,
    options:[&#39;MS 95&#39;, &#39;MS 96&#39;, &#39;ID 95&#39;, &#39;IS 96&#39;],
    answer:0
   },
   {
    question:&#39;When the National flag of India is displayed in Indian territory with the National Flags of other countries in a straight line, it is displayed at&#39;,
    options:[&#39;Centre&#39;, &#39;Extreme right&#39;,&#39;In the alphabetical order&#39;,&#39;Extreme left&#39;],
    answer:1
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/5436604150641443911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/5436604150641443911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/5436604150641443911'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-6.html' title='PS Group B Paper 1, 2020 Part 6'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-4634165184440620304</id><published>2020-12-18T21:59:00.003+05:30</published><updated>2020-12-18T22:10:40.162+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bag-Tracking"/><category scheme="http://www.blogger.com/atom/ns#" term="CSI"/><title type='text'>Bag Tracking KPI Report in CSI/SAP</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&amp;nbsp;&lt;marquee&gt;Bag Tracking KPI Report in CSI/SAP ...&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Acrc87MpZzEJaE6R50UmvgMHiN-1qmRQsQo2kMmzQih0KjvUcLX-GR5j1Xc1GYhDhjTxC5gj3g5T1VdbDW-0fYz3JRcMe0onq8sBsXU433LHltHKTYaVER29yRIuySdJHsPnvNfA8Npr/s1025/Screenshot_2020-12-18-21-57-13-771.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Bag Tracking KPI Report in CSI/SAP&quot; border=&quot;0&quot; data-original-height=&quot;1012&quot; data-original-width=&quot;1025&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Acrc87MpZzEJaE6R50UmvgMHiN-1qmRQsQo2kMmzQih0KjvUcLX-GR5j1Xc1GYhDhjTxC5gj3g5T1VdbDW-0fYz3JRcMe0onq8sBsXU433LHltHKTYaVER29yRIuySdJHsPnvNfA8Npr/s16000/Screenshot_2020-12-18-21-57-13-771.jpeg&quot; title=&quot;Bag Tracking KPI Report in CSI/SAP&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;br /&gt;&lt;marquee&gt;&lt;br /&gt;&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/4634165184440620304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/bag-tracking-kpi-report-in-csi-sap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4634165184440620304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4634165184440620304'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/bag-tracking-kpi-report-in-csi-sap.html' title='Bag Tracking KPI Report in CSI/SAP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Acrc87MpZzEJaE6R50UmvgMHiN-1qmRQsQo2kMmzQih0KjvUcLX-GR5j1Xc1GYhDhjTxC5gj3g5T1VdbDW-0fYz3JRcMe0onq8sBsXU433LHltHKTYaVER29yRIuySdJHsPnvNfA8Npr/s72-c/Screenshot_2020-12-18-21-57-13-771.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-4203252427210942533</id><published>2020-12-18T21:40:00.000+05:30</published><updated>2020-12-18T21:40:18.327+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PLI"/><category scheme="http://www.blogger.com/atom/ns#" term="RPLI"/><title type='text'>PLI / RPLI Death Claim cases - Standard Operating Procedure</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;marquee&gt;PLI / RPLI Death Claim cases - Standard Operating Procedure ...&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdi-pPhnQbBdGX3O6ug_H_BtZqpl3yUASDNH__Ei4ih9wYsvtClYjHnsB5J_CBsW0dMaRP78tgMW3Y_6I80t0h_23EFhNcTujorHyGWV666wb5Uz_bWAfltXu4XjRQXiJClYfP8alsnuU/s842/sop1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; border=&quot;0&quot; data-original-height=&quot;842&quot; data-original-width=&quot;554&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdi-pPhnQbBdGX3O6ug_H_BtZqpl3yUASDNH__Ei4ih9wYsvtClYjHnsB5J_CBsW0dMaRP78tgMW3Y_6I80t0h_23EFhNcTujorHyGWV666wb5Uz_bWAfltXu4XjRQXiJClYfP8alsnuU/s16000/sop1.png&quot; title=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW2GH4Zg1GvBP9cKYTK13HaKNSMHKcMx7LAACNpagXTVN-AVCcr01gWUCJ3hhbihVg0i7PBd9n-fCVWzSXM1QiStFgo38YhIrteojvdk_H7HR4Gk5vqZezA6-YS-F5KZgyso79cSc0W2h2/s842/sop2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; border=&quot;0&quot; data-original-height=&quot;842&quot; data-original-width=&quot;561&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW2GH4Zg1GvBP9cKYTK13HaKNSMHKcMx7LAACNpagXTVN-AVCcr01gWUCJ3hhbihVg0i7PBd9n-fCVWzSXM1QiStFgo38YhIrteojvdk_H7HR4Gk5vqZezA6-YS-F5KZgyso79cSc0W2h2/s16000/sop2.png&quot; title=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyae5Irjr72Tt2XVZZEYxrbDjEBA7_ob3TsGqgEhL_9sfvSrk2WXwqKdDORROg5kBDHpTtRGOTzYVMsbrqS0xDN2A3Jn0SJt6yoy7RibAKvmwsMfq_7FZMEvsSkjvPz_EgCe6CrZa-xtHn/s826/sop3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; border=&quot;0&quot; data-original-height=&quot;826&quot; data-original-width=&quot;595&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyae5Irjr72Tt2XVZZEYxrbDjEBA7_ob3TsGqgEhL_9sfvSrk2WXwqKdDORROg5kBDHpTtRGOTzYVMsbrqS0xDN2A3Jn0SJt6yoy7RibAKvmwsMfq_7FZMEvsSkjvPz_EgCe6CrZa-xtHn/s16000/sop3.png&quot; title=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuw5Niv0TcOUVnI3kJFOyXsqOcDHu-HqqdgtXqLyuFr-HzRNBFOnsiWSi3SOVpN1TWLwd81YSHcWbZfg74PjfJyaogFDJviOiAnFWEhKGtF96dqm_yUvYMXk9HKRYafoqzCjZQU0NnzMkk/s842/sop4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; border=&quot;0&quot; data-original-height=&quot;842&quot; data-original-width=&quot;581&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuw5Niv0TcOUVnI3kJFOyXsqOcDHu-HqqdgtXqLyuFr-HzRNBFOnsiWSi3SOVpN1TWLwd81YSHcWbZfg74PjfJyaogFDJviOiAnFWEhKGtF96dqm_yUvYMXk9HKRYafoqzCjZQU0NnzMkk/s16000/sop4.png&quot; title=&quot;PLI / RPLI Death Claim cases - Standard Operating Procedure&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/4203252427210942533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/pli-rpli-death-claim-cases-standard-operating-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4203252427210942533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4203252427210942533'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/pli-rpli-death-claim-cases-standard-operating-procedure.html' title='PLI / RPLI Death Claim cases - Standard Operating Procedure'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdi-pPhnQbBdGX3O6ug_H_BtZqpl3yUASDNH__Ei4ih9wYsvtClYjHnsB5J_CBsW0dMaRP78tgMW3Y_6I80t0h_23EFhNcTujorHyGWV666wb5Uz_bWAfltXu4XjRQXiJClYfP8alsnuU/s72-c/sop1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-2068207784450134921</id><published>2020-12-17T21:22:00.009+05:30</published><updated>2020-12-18T21:29:30.626+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DOP"/><title type='text'>Discontinuatin of ACG11,ACG12, ACG13 &amp; ACG14</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana; font-size: large;&quot;&gt;&lt;span style=&quot;color: #ff00fe;&quot;&gt;&lt;marquee&gt;Discontinuatin of ACG11,ACG12, ACG13, ACG14...&lt;/marquee&gt;&lt;/span&gt;  
  &lt;/span&gt;&lt;/b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40Jb75-KFV2gXC4mP84Qx_48rLBnEMgTiS6KV5jLnmLcj9EPEt4zkw873sFY-BFWDy0pWKwZylJHFgcUnpTdyWSJIXEkg0YKFOJyvd34jH9FhRPfB0yahyJDVYm_k3PQ066ZCiyGOSri_/s1187/receipts1.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Discontinuatin of ACG11,ACG12, ACG13 &amp;amp; ACG14&quot; border=&quot;0&quot; data-original-height=&quot;1187&quot; data-original-width=&quot;872&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40Jb75-KFV2gXC4mP84Qx_48rLBnEMgTiS6KV5jLnmLcj9EPEt4zkw873sFY-BFWDy0pWKwZylJHFgcUnpTdyWSJIXEkg0YKFOJyvd34jH9FhRPfB0yahyJDVYm_k3PQ066ZCiyGOSri_/s16000/receipts1.jpg&quot; title=&quot;Discontinuatin of ACG11,ACG12, ACG13 &amp;amp; ACG14&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFEeYSRihe6yL_zpyoKLwwMc0AAJ-RW5x94oe5EkqgZygK0NgXR8CNHo-9e0tqAvtfBwy2Lnl4md0a3e3T5nOcomN_cjgNNbNUNAzeFptiCkIO4IkgSMspjkr_CozEsAaQm5gnzafTaHFd/s1153/receipts2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Discontinuatin of ACG11,ACG12, ACG13 &amp;amp; ACG14&quot; border=&quot;0&quot; data-original-height=&quot;1153&quot; data-original-width=&quot;892&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFEeYSRihe6yL_zpyoKLwwMc0AAJ-RW5x94oe5EkqgZygK0NgXR8CNHo-9e0tqAvtfBwy2Lnl4md0a3e3T5nOcomN_cjgNNbNUNAzeFptiCkIO4IkgSMspjkr_CozEsAaQm5gnzafTaHFd/s16000/receipts2.jpg&quot; title=&quot;Discontinuatin of ACG11,ACG12, ACG13 &amp;amp; ACG14&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/2068207784450134921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/discontinuatin-of-acg11acg12-acg13-acg14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/2068207784450134921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/2068207784450134921'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/discontinuatin-of-acg11acg12-acg13-acg14.html' title='Discontinuatin of ACG11,ACG12, ACG13 &amp; ACG14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40Jb75-KFV2gXC4mP84Qx_48rLBnEMgTiS6KV5jLnmLcj9EPEt4zkw873sFY-BFWDy0pWKwZylJHFgcUnpTdyWSJIXEkg0YKFOJyvd34jH9FhRPfB0yahyJDVYm_k3PQ066ZCiyGOSri_/s72-c/receipts1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-158832455165689877</id><published>2020-12-11T21:16:00.001+05:30</published><updated>2020-12-18T21:20:47.965+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SBCO"/><title type='text'>Change of Roles of SBCO</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;MARQUEE&gt;Change of Roles of SBCO ...&lt;/MARQUEE&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCrpXTSXxl1XgXQmS8lgzlov-3DzyBR-imHAUr4QDbUcRpRrX6s44XhTA2k1QURyOX3EcUQAQTKYVY1NVLjwOUk4hKPlY1kSFKaDVRnHDVZ_P8WkuFLLOk0EYdkBfJfmDel1iZK6sRnQ2z/s1354/sbcoroles1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1354&quot; data-original-width=&quot;922&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCrpXTSXxl1XgXQmS8lgzlov-3DzyBR-imHAUr4QDbUcRpRrX6s44XhTA2k1QURyOX3EcUQAQTKYVY1NVLjwOUk4hKPlY1kSFKaDVRnHDVZ_P8WkuFLLOk0EYdkBfJfmDel1iZK6sRnQ2z/s16000/sbcoroles1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXJ1K19DXgVy2JjcVwsYkhtf3ZhHnXqnZVXxmBCSEMFVzRYj44ICpakgIsOup2uvqUu7cnsMEfyBb0vJAX0JNSj1Q9yU477qvFNHxSAo4mA4BlT7AulSmD8WnSOdQYuijoOKytKBfjmC2J/s1239/sbcoroles2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1239&quot; data-original-width=&quot;917&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXJ1K19DXgVy2JjcVwsYkhtf3ZhHnXqnZVXxmBCSEMFVzRYj44ICpakgIsOup2uvqUu7cnsMEfyBb0vJAX0JNSj1Q9yU477qvFNHxSAo4mA4BlT7AulSmD8WnSOdQYuijoOKytKBfjmC2J/s16000/sbcoroles2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/158832455165689877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/change-of-roles-of-sbco.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/158832455165689877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/158832455165689877'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/change-of-roles-of-sbco.html' title='Change of Roles of SBCO'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCrpXTSXxl1XgXQmS8lgzlov-3DzyBR-imHAUr4QDbUcRpRrX6s44XhTA2k1QURyOX3EcUQAQTKYVY1NVLjwOUk4hKPlY1kSFKaDVRnHDVZ_P8WkuFLLOk0EYdkBfJfmDel1iZK6sRnQ2z/s72-c/sbcoroles1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-3814927062122102367</id><published>2020-12-11T21:14:00.001+05:30</published><updated>2020-12-18T21:15:00.973+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dropbox"/><title type='text'>Drop box for depositing cheques in Post Offices...</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;b&gt;&lt;marquee&gt;Drop box for depositing cheques in Post Offices...&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeChqnd5RQyL4d4yZxmWrD_gtbxy2f6zuXxmuxR6iORskQ5R1ZP7jEi7UsPIstE0eorjA2TxQpnJIHMWIIjr4dlZvl64cCvRT-DZo0D_bW8SsW7tu2V_dke9mADw9ymD02Xg9Ygyq1HQv/s1079/cheque_dropbox_sahydcity.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1079&quot; data-original-width=&quot;724&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeChqnd5RQyL4d4yZxmWrD_gtbxy2f6zuXxmuxR6iORskQ5R1ZP7jEi7UsPIstE0eorjA2TxQpnJIHMWIIjr4dlZvl64cCvRT-DZo0D_bW8SsW7tu2V_dke9mADw9ymD02Xg9Ygyq1HQv/s16000/cheque_dropbox_sahydcity.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/3814927062122102367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/drop-box-for-depositing-cheques-in-post-offices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3814927062122102367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/3814927062122102367'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/drop-box-for-depositing-cheques-in-post-offices.html' title='Drop box for depositing cheques in Post Offices...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeChqnd5RQyL4d4yZxmWrD_gtbxy2f6zuXxmuxR6iORskQ5R1ZP7jEi7UsPIstE0eorjA2TxQpnJIHMWIIjr4dlZvl64cCvRT-DZo0D_bW8SsW7tu2V_dke9mADw9ymD02Xg9Ygyq1HQv/s72-c/cheque_dropbox_sahydcity.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-834354727066178707</id><published>2020-12-11T21:04:00.001+05:30</published><updated>2020-12-18T21:15:31.399+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="POSB"/><category scheme="http://www.blogger.com/atom/ns#" term="SBOrders"/><title type='text'>Eligibility for opening of Senior Citizen Savings Scheme</title><content type='html'>&lt;b&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: large;&quot;&gt;&lt;marquee&gt;Eligibility for opening of Senior Citizen Savings Scheme...&lt;/marquee&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwRy-6vEiq7SfUmt5EwQQE27HeGN0KVuaIci7Ino9HxqcDAy41VLbEBKGpf2bJeXOiJ8MPE5C9IXs9ScqOANlo4fX7ofp8N6mHV9iXGM9jA6XBJt86jally8-odeDYQgn54iK1rjWYVK6S/s0/Screenshot_2020-12-09-09-52-56-930.jpeg&quot; style=&quot;display: block; padding: 1em 0px; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;941&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwRy-6vEiq7SfUmt5EwQQE27HeGN0KVuaIci7Ino9HxqcDAy41VLbEBKGpf2bJeXOiJ8MPE5C9IXs9ScqOANlo4fX7ofp8N6mHV9iXGM9jA6XBJt86jally8-odeDYQgn54iK1rjWYVK6S/s0/Screenshot_2020-12-09-09-52-56-930.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/834354727066178707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/senior-citizen-savings-scheme-eligibility.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/834354727066178707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/834354727066178707'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/senior-citizen-savings-scheme-eligibility.html' title='Eligibility for opening of Senior Citizen Savings Scheme'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwRy-6vEiq7SfUmt5EwQQE27HeGN0KVuaIci7Ino9HxqcDAy41VLbEBKGpf2bJeXOiJ8MPE5C9IXs9ScqOANlo4fX7ofp8N6mHV9iXGM9jA6XBJt86jally8-odeDYQgn54iK1rjWYVK6S/s72-c/Screenshot_2020-12-09-09-52-56-930.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-6844016501030927944</id><published>2020-12-09T13:20:00.003+05:30</published><updated>2020-12-09T13:20:25.536+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 5</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PS Group B Paper 1, 2020 Part 5...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;As per the citizen charter PLI/RPLI death claim in respect of normal claim and cases involving investigation to be settled within&#39;,
    
     options:[&#39;30 days and 90 days respectively&#39;,&#39;30 days and 60 days respectively&#39;,&#39;60 days and 90 days respectively&#39;,&#39;60 days and 120 days respectively&#39;],
    answer:0
   },

   
   {
    question:&#39;If more than one bidder is reflected as L1 in Gem portal in the financial bid for procurement, what is the procedure&#39;,
    options:[&#39;A. Abort bid&#39;,&#39;B. Run L1 option&#39;,&#39;C. Select at random&#39;,&#39;D. Both B and C is correct&#39;],
    answer:3
   },
   {
    question:&#39;According to GFR 2017, CPPP stands for&#39;,
    options:[&#39;Central Public Procurement Portal&#39;,&#39;Centralized Purchase &amp; Payment Portal&#39;,&#39;Common Public Procurement Portal&#39;,&#39;Comprehensive Purchase &amp; Payment Portal&#39;],
    answer:0
   },
{
    question:&#39;Blind literature packets are exempted from payment of the following fees&#39;,
    options:[&#39;postage and fee for acknowledgement&#39;,&#39;Registration fee&#39;,&#39;Fee for attested copy of the receipt&#39;,&#39;All of the above&#39;],
    answer:3
   },
{
    question:&#39;Half yearly Enumeration returns is conducted during the second week of the months of............and ........each year&#39;,
    options:[&#39;January and July&#39;,&#39;February and August&#39;,&#39;January and June&#39;,&#39;March and December&#39;],
    answer:1
   },
{
    question:&#39;Rule 157 of GFR refers to&#39;,
    options:[&#39;Limited Tender facility&#39;,&#39;Purchase through bidding&#39;,&#39;Purchase of goods without quotation&#39;,&#39;Splitting of demand into smaller quantities&#39;],
    answer:3
   },
{
    question:&#39;Full form of CPGRAMS is:&#39;,
    
  options:[&#39;Comprehensive Public Grievance Redress And Management System&#39;,&#39;Centralized Public Grievance Redress And Monitoring System&#39;,&#39;Centralized Public Grievance Response And Management System&#39;,&#39;Comprehensive Public Grievance Response And Monitoring System&#39;],
    answer:1
   },

{
    question:&#39;Central Bag Office is at&#39;,
    options:[&#39;Head quarters of Postal circle&#39;, &#39;Postal Stores Depot&#39;,&#39;Postal Directorate&#39;,&#39;Every HRO in RMS&#39;],
    answer:2
   },


{
    question:&#39;Which of the following statements are true for registered news paper?&#39;,
    options:[&#39;It should contain only news&#39;, &#39;It must be published at intervals of not more than 90 days&#39;, &#39;It should have a bona-fide list of subscribers&#39;, &#39;Registered number allotted to the licensee is optional to be printed on front page of registered newspaper &#39;],
    answer:2
   },
   {
    question:&#39;Sender of a foreign article posted in India can withdraw the article or alter the address under&#39;,
    options:[&#39;Under Rule 16 of PO guide Part I&#39;, &#39;Under Rule 17 of PO guide Part II&#39;,&#39;Under Rule 16 of PO guide Part II&#39;,&#39;None of the above&#39;],
    answer:2
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCmcCWNVCw1m75zcjtlw_kwoasBfQBAZ7Qeaj-dQ7CDzke-bMxscifxE3ZCQACVFEMkeVwj0U1DJRXjFYxao9Gnm7fphEDICi7-z6yELysX1M3am4q-ZPmchJ2v9NV9rDruZoNtfBjP9Ya/s956/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;320&quot; data-original-height=&quot;732&quot; data-original-width=&quot;956&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCmcCWNVCw1m75zcjtlw_kwoasBfQBAZ7Qeaj-dQ7CDzke-bMxscifxE3ZCQACVFEMkeVwj0U1DJRXjFYxao9Gnm7fphEDICi7-z6yELysX1M3am4q-ZPmchJ2v9NV9rDruZoNtfBjP9Ya/s320/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/6844016501030927944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/6844016501030927944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/6844016501030927944'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-5.html' title='PS Group B Paper 1, 2020, Part 5'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCmcCWNVCw1m75zcjtlw_kwoasBfQBAZ7Qeaj-dQ7CDzke-bMxscifxE3ZCQACVFEMkeVwj0U1DJRXjFYxao9Gnm7fphEDICi7-z6yELysX1M3am4q-ZPmchJ2v9NV9rDruZoNtfBjP9Ya/s72-c/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8656408016169921910</id><published>2020-12-09T13:18:00.002+05:30</published><updated>2020-12-09T13:18:21.707+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 4</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PS Group B Paper 1, 2020 Part 4...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;SARS stands for&#39;,
    
     options:[&#39;Severe Anti Respiratory Syndrome&#39;,&#39; Systematic Air Regulatory System&#39;,&#39;Severe Acute Respiratory Syndrome&#39;,&#39;Severe Asymptomatic Respiratory Syndrome&#39;],
    answer:2
   },

   
   {
    question:&#39;The Supreme Court of India recently imposed the following punishment on activist lawyer Prashant Bhushan&#39;,
    options:[&#39;Simple imprisonment of 1 month&#39;,&#39;Fine of Rs fifty thousand&#39;,&#39;Debar from practicing for 6 months&#39;,&#39;Token penalty of Rs. One&#39;],
    answer:3
   },
   {
    question:&#39;The Scheme &quot;Five Star Village&quot; has been launched by&#39;,
    options:[&#39;Ministry of Tourism&#39;,&#39;Ministry of Tribal Affairs &#39;,&#39; Department of Posts&#39;,&#39;Department of Agriculture&#39;],
    answer:2
   },
{
    question:&#39;Chandrayan-2 lunar mission was launched by&#39;,
    options:[&#39; DRDO&#39;,&#39;ISRO&#39;,&#39;NASA&#39;,&#39;RAW&#39;],
    answer:1
   },
{
    question:&#39;Rhea Chakraborty has been arrested in the Sushant Singh Rajput death case on 8th September by&#39;,
    options:[&#39;Central Bureau of Investigation&#39;,&#39;Enforcement Directorate&#39;,&#39;Narcotics Control Bureau&#39;,&#39;Maharashtra Police&#39;],
    answer:2
   },
{
    question:&#39;Indian Defence Minister recently signed the AK-203 rifle deal at&#39;,
    options:[&#39;Moscow&#39;,&#39;Paris&#39;,&#39;Washington D.C.&#39;,&#39;Berne&#39;],
    answer:0
   },
{
    question:&#39;Indira Gandhi Peace Prize for the year 2019 was awarded to&#39;,
    
  options:[&#39;Donald Trump&#39;,&#39;Sir David Attenborough&#39;,&#39;Late Shri Pranab Mukherjee&#39;,&#39;Vladimir Putin&#39;],
    answer:1
   },

{
    question:&#39; Donald Trump has been nominated for the Nobel Peace Prize 2021 for his mediation between&#39;,
    options:[&#39;Israel and UAE&#39;, &#39;India and China&#39;,&#39; India and Pakistan&#39;,&#39;China and Hongkong&#39;],
    answer:0
   },


{
    question:&#39;Rajiv Kumar, former finance secretary has been appointed as &#39;,
    options:[&#39;Election Commissioner&#39;, &#39;Central Vigilance Commissioner&#39;, &#39;UPSC Chairman&#39;, &#39;CAG&#39;],
    answer:0
   },
   {
    question:&#39;Rajiv Gandhi Khel Ratna Award for the year 2020 was given to&#39;,
    options:[&#39;Virat Kohli&#39;, &#39;Rohit Sharma&#39;,&#39;Mahendra Singh Dhoni&#39;,&#39;Om Prakash Dahiya&#39;],
    answer:1
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW8Uxhq3BQzn4jCAur3EIF-RIP5is7TUxTdmzqjkBIQzsXuGmSfpswKw2Wj61xXyGxf9hWiFOhom_z8YgkvL5-ZFJ_i-hvAEDd6t3sUIWJ1omlI-xkaYfkjroXWAUex8RX9TYQ-v18nYeV/s956/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;320&quot; data-original-height=&quot;732&quot; data-original-width=&quot;956&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW8Uxhq3BQzn4jCAur3EIF-RIP5is7TUxTdmzqjkBIQzsXuGmSfpswKw2Wj61xXyGxf9hWiFOhom_z8YgkvL5-ZFJ_i-hvAEDd6t3sUIWJ1omlI-xkaYfkjroXWAUex8RX9TYQ-v18nYeV/s320/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8656408016169921910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8656408016169921910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8656408016169921910'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-4.html' title='PS Group B Paper 1, 2020, Part 4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW8Uxhq3BQzn4jCAur3EIF-RIP5is7TUxTdmzqjkBIQzsXuGmSfpswKw2Wj61xXyGxf9hWiFOhom_z8YgkvL5-ZFJ_i-hvAEDd6t3sUIWJ1omlI-xkaYfkjroXWAUex8RX9TYQ-v18nYeV/s72-c/WhatsApp+Image+2020-12-09+at+1.03.42+PM.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-1754386901565290595</id><published>2020-12-09T13:15:00.004+05:30</published><updated>2020-12-09T13:15:59.105+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 3</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PS Group B Paper 1, 2020 Part 3...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;What is current rate of GST levied on PLI/RPLI premia&#39;,
    
     options:[&#39;5%&#39;,&#39;4.5%&#39;,&#39;10%&#39;,&#39;14.5%&#39;],
    answer:1
   },

   
   {
    question:&#39;The apportionment ratio towards Savings Fund and insurance fund from the subscription of member under Group Insurance Scheme is..................and.....................respectively.&#39;,
    options:[&#39;50;50&#39;,&#39;75;25&#39;,&#39;70;30&#39;,&#39;60;40&#39;],
    answer:1
   },
   {
    question:&#39;What was the theme for Dhai Akhar letter writing competition 2019-20&#39;,
    options:[&#39;Letter to my Mother&#39;,&#39;Letter to Dear Bapuji&#39;,&#39;Letter to my Motherland&#39;,&#39;Dear Bapu You are Immortal&#39;],
    answer:3
   },
{
    question:&#39;The amount of outlay of IT Modernization Project of the Department was approved by the Government for&#39;,
    options:[&#39; Rs 4900 crore&#39;,&#39;Rs 4909 crore&#39;,&#39;Rs 4500 crore&#39;,&#39;Rs. 5000 crore&#39;],
    answer:1
   },
{
    question:&#39;What type of articles require special treatment as per clause 21 of Post Office guide Part I&#39;,
    options:[&#39;Directorate Letters&#39;,&#39;Value Payable Letters&#39;,&#39;Letters received from Members of Parliament&#39;,&#39;Letters received from Foreign Countries.&#39;],
    answer:1
   },
{
    question:&#39;The maximum amount that can be remitted through iMO in one transaction is&#39;,
    options:[&#39;Rs. 25000&#39;,&#39;Rs. 30000&#39;,&#39;Rs. 50000&#39;,&#39;Rs. 100000&#39;],
    answer:2
   },
{
    question:&#39;Which of the following statements regarding Sukanya Samridhi Yojana are correct?&lt;br&gt;(i) Minimum deposit is 1000/- and maximum is 1,50,000/- in a financial year&lt;br/&gt;(ii) Minimum deposit is 250/- and maximum is 1,50000/- in a financial year&lt;br/&gt;(iii) Subsequent deposits can be in multiples of Rs 100/- only&lt;br/&gt;(iv) Deposit of Rs 1,50,000/- can be made in lumpsum in a financial year&#39;,
    
  options:[&#39;All the above statements are correct&#39;,&#39;(i), (iii) and (iv) are correct&#39;,&#39;(ii) and (iv) are correct&#39;,&#39;(ii), (iii) and(iv) are correct&#39;],
    answer:2
   },

{
    question:&#39;Comment on the following statements regarding CEA(Children Education Allowance)&lt;br/&gt;(i) CEA is admissible for two eldest surviving children.&lt;br/&gt; (ii) CEA can be claimed at double the rates for eligible Divyang children&lt;br/&gt;(iii) CEA can be claimed for the same class twice when the  child fails&lt;br/&gt;(iv) CEA is admissible for a third child when the second birth resulted in multiple birth&#39;,
    options:[&#39;(i), (ii) and (iv) only&#39;, &#39;(i), (ii) and (iii) only&#39;,&#39;(i), (iii) and (iv) only&#39;,&#39;All of the above&#39;],
    answer:3
   },


{
    question:&#39;TDS is deducted in case of SCSS if annual interest exceeds&#39;,
    options:[&#39;Rs. 5000/-&#39;, &#39;Rs. 10000/-&#39;, &#39; Rs. 50000/-&#39;, &#39;None of above&#39;],
    answer:2
   },
   {
    question:&#39;What is the time taken for discharge of Savings certificate, at other than the office of purchase as per Citizen Charter&#39;,
    options:[&#39;30 days&#39;, &#39;45 days&#39;,&#39; 60 days&#39;,&#39; 90 days&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s1020/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;320&quot; data-original-height=&quot;825&quot; data-original-width=&quot;1020&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s320/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/1754386901565290595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1754386901565290595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1754386901565290595'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-3.html' title='PS Group B Paper 1, 2020, Part 3'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s72-c/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-4266131575182358478</id><published>2020-12-09T13:13:00.002+05:30</published><updated>2020-12-09T13:13:24.891+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 2</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1, 2020&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PS Group B Paper 1, 2020 Part 2...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br/&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;The Chairman of District Consumer Protection council is&#39;,
    
     options:[&#39;Member of Parliament nominated by State Government&#39;,&#39;District Collector&#39;,&#39;District Judge&#39;,&#39;Any eminent person residing in the District as appointed by State Government&#39;],
    answer:1
   },

   
   {
    question:&#39;District Commission, State Commission or National Commission cannot entertain a complaint if it is not preferred from the date on which the cause of action has arisen?&#39;,
    options:[&#39;2 Years&#39;,&#39;One Year&#39;,&#39;6 months&#39;,&#39;3 months&#39;],
    answer:0
   },
   {
    question:&#39;A single bid is valid if&#39;,
    options:[&#39;Satisfactorily advertised&#39;,&#39;Sufficient time was given&#39;,&#39;Qualification criteria not unduly restrictive&#39;,&#39;All of the above&#39;],
    answer:3
   },
{
    question:&#39; Proprietary Certificate is to be submitted when&#39;,
    options:[&#39; Procuring goods above 30 lakhs&#39;,&#39;Procuring goods from a single source&#39;,&#39;As Performance Security&#39;,&#39;As Bid Security&#39;],
    answer:1
   },
{
    question:&#39;Rule 23 of GFR (General financial Rules), 2017 relates to&#39;,
    options:[&#39;Delegation of Financial Powers Rules&#39;,&#39;Expenditure only after proper sanction&#39;,&#39;Consultation with financial advisor&#39;,&#39;Fund Fund availability under relevant head&#39;],
    answer:0
   },
{
    question:&#39; What does DARPAN denote&#39;,
    options:[&#39;Digital Advancement of Rural Post Office for a New India&#39;,&#39;Digital And Rural Postal Advanced Network&#39;,&#39;Digital Advanced Rural Public Access Network&#39;,&#39;Department Advanced Rural Postal Access for New India&#39;],
    answer:0
   },
{
    question:&#39;What is the time limit and percentage of amount to be deposited, required to pay as compensation as per the orders of the state commission, for filing an appeal before the National commission?&#39;,
    
  options:[&#39;30 days and 50% of the amount of compensation ordered by the state Commission&#39;,&#39;45 days and 75 % of the amount of compensation ordered by the State Commission&#39;,&#39;3 months and 80% of the amount of compensation ordered by the State Commission&#39;,&#39;None of the above.&#39;],
    answer:0
   },

{
    question:&#39;Under Consumer Protection Act a &quot;Person&quot; also includes&#39;,
    options:[&#39; A Hindu undivided family &amp; Co-operative Society&#39;, &#39;A registered or unregistered firm&#39;,&#39;Any Corporation, Company or a body of individuals whether incorporated or not&#39;,&#39;All of the above&#39;],
    answer:3
   },


{
    question:&#39;Time factor for delivery of bulk addressee of a multi storied building is&#39;,
    options:[&#39;2 minutes per 5 articles&#39;, &#39; 3 minutes per 6 articles&#39;, &#39;2 minutes per 7 articles&#39;, &#39;5 minutes per floor&#39;],
    answer:2
   },
   {
    question:&#39;What is the threshold limit of amount of compensation claimed and fee to be remitted for filing a complaint to National Commission under Consumer Protection Act?&#39;,
    options:[&#39;Above 10 crores and Rs7500/- respectively.&#39;, &#39; Above 6 crores and Rs.6000/- respectively.&#39;,&#39; Above 5 crores and Rs.5000/- respectively.&#39;,&#39;None of the above.&#39;],
    answer:3
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s1020/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;320&quot; data-original-height=&quot;825&quot; data-original-width=&quot;1020&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s320/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/4266131575182358478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4266131575182358478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/4266131575182358478'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-2.html' title='PS Group B Paper 1, 2020, Part 2'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s72-c/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-1750824651246579967</id><published>2020-12-09T13:09:00.001+05:30</published><updated>2020-12-16T22:03:21.736+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PS Group B Paper 1, 2020, Part 1</title><content type='html'>
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PS Group B Paper 1&lt;/title&gt;
  &lt;meta content=&quot;width=device-width, initial-scale=1&quot; name=&quot;viewport&quot;&gt;&lt;/meta&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color: magenta; font-weight: bold;&quot;&gt;PS Group B Paper 1, 2020, Part 1...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button class=&quot;start-quiz-btn btn&quot; type=&quot;button&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button class=&quot;next-question-btn btn&quot; type=&quot;button&quot;&gt;Next question&lt;/button&gt;
&lt;button class=&quot;see-result-btn btn&quot; type=&quot;button&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;br /&gt; https://www.postaltechi.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button class=&quot;start-again-quiz-btn btn&quot; type=&quot;button&quot;&gt;Start Again&lt;/button&gt;
&lt;button class=&quot;go-home-btn btn&quot; type=&quot;button&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39; Who can open a Public Provident Fund Account&#39;,
    
     options:[&#39; Any individual on his own behalf&#39;,&#39;Guardian on behalf of minor&#39;,&#39;Hindu undivided family&#39;,&#39;Both A and B&#39;],
    answer:3
   },

   
   {
    question:&#39;To see the stock report of Stamps/Stationeries/IPO/NSC/ KVP the T Code is&#39;,
    options:[&#39;MB 52&#39;,&#39;MB 381&#39;,&#39;ZFI_Recon&#39;,&#39; ZFI_Receipt&#39;],
    answer:0
   },
   {
    question:&#39;Unregistered articles addressed to more than one person&#39;,
    options:[&#39;To be returned to sender&#39;,&#39;Can be delivered to anyone of the persons&#39;,&#39;To be forwarded to RLO&#39;,&#39;None of the above&#39;],
    answer:1
   },
{
    question:&#39;Two or more mail bags ordered in due mail list when a single mail bag cannot contain the bulk of  correspondence, are called?&#39;,
    options:[&#39; Extra mail bags&#39;,&#39;Bulk mail bags&#39;,&#39; Plural mail bags&#39;,&#39;Unusual mail bags&#39;],
    answer:2
   },
{
    question:&#39;Period for submission of representation against the APAR grading&#39;,
    options:[&#39;30 days from the date of receipt of communication&#39;,&#39;15 days from the date of receipt of communication&#39;,&#39; 90 days from the date of receipt of communication&#39;,&#39;20 days from the date of receipt of communication&#39;],
    answer:1
   },
{
    question:&#39;Comment on the following in respect of Senior Citizen Savings Account&lt;br/&gt;(i) SCSS account minimum deposit Rs. 1000 and maximum 15 lakhs,&lt;br/&gt;(ii) Maturity period of SCSS is 5years&lt;br/&gt;(iii) SCSS can be extended for further 5 years&lt;br/&gt;(iv) Penalty for premature closure @ 1.5% and 1% will be deducted before completion of 2 years and after completion of 2 years respectively.&#39;,
    options:[&#39;(i), (ii) and (iv) are correct&#39;,&#39;All are correct&#39;,&#39;(i), (ii) and (iii) are correct&#39;,&#39;(ii) and (iv) only&#39;],
    answer:0
   },
{
    question:&#39;T code to view POS cash balance of Sub Office&#39;,
    
  options:[&#39;FAGLLO3&#39;,&#39;ZFBL3N&#39;,&#39;ZFI_CASHBAL&#39;,&#39;ZFIR _Cash Report&#39;],
    answer:1
   },

{
    question:&#39; If the minimum balance of Rs. 500 is not maintained in Post Office Saving Account, what maintenance fee will be charged?&#39;,
    options:[&#39;Rs. 20&#39;, &#39;Rs. 50&#39;,&#39;Rs. 100&#39;,&#39;None of above&#39;],
    answer:2
   },


{
    question:&#39;During the Financial year 2017-18, our Department earned highest average revenue from&#39;,
    options:[&#39; Insurance&#39;, &#39;Speed Post&#39;, &#39;Parcel&#39;, &#39;Money order&#39;],
    answer:2
   },
   {
    question:&#39;During the Financial year 2017- 18, which Circle earned highest amount of remuneration from Savings Bank/Savings Certificate work&#39;,
    options:[&#39;Rajasthan&#39;, &#39; Andhra Pradesh&#39;,&#39;Karnataka&#39;,&#39;Punjab&#39;],
    answer:1
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s1020/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot; style=&quot;display: block; padding: 1em 0; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; data-original-height=&quot;825&quot; data-original-width=&quot;1020&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s320/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/1750824651246579967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1750824651246579967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1750824651246579967'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/ps-group-b-paper-1-2020-part-1.html' title='PS Group B Paper 1, 2020, Part 1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFtQpe5WD4jhAk1KcdiwPmBcvxglXRgUMucsv1rznLz3GPs3k8z9BJ_SLqZRboDRHn1NVwmj5R8fALI5xepxhdVYq-5ItyPjVbMJDoF9R0NQoF5Tn82BB3bzoBtU3v6bdcv2FZ6rnwyFK/s72-c/WhatsApp+Image+2020-12-09+at+1.03.42+PM+%25281%2529.jpeg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-2176484684855980004</id><published>2020-12-03T11:45:00.002+05:30</published><updated>2020-12-03T11:45:33.005+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DARPAN"/><category scheme="http://www.blogger.com/atom/ns#" term="Payslip"/><category scheme="http://www.blogger.com/atom/ns#" term="RICT"/><title type='text'>Generation of BPM Salary slip</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #ff00fe; font-family: verdana; font-size: medium;&quot;&gt;&lt;b&gt;&lt;marquee&gt;Generation of BPM Salary slip ...&lt;/marquee&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;Steps to be followed for Generation GDS BPM Salary Slip in DARPAN Device:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;1) Login to MDM portal by RICT admin user ID.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #ffa400; font-family: verdana; font-size: medium;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://darpanportal.indiapost.gov.in:9445/dop/home&quot;&gt;https://darpanportal.indiapost.gov.in:9445/dop/home&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;( This site work on Sify as well as open network like Brod band, Mobile internet etc)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;2) Click on MIS Portal&amp;nbsp; after logged in&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;3)Click on BPM menu&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;4) Then click on Active BPM report &amp;amp; select criteria&amp;nbsp; i.e. Circle, Region, Division, Sub Division etc.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;5) Export that file in XLS format.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;6) Then visit to &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;a href=&quot;http://servicedesk.indiapost.gov.in&quot;&gt;http://servicedesk.indiapost.gov.in&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;&amp;nbsp;( This site run only on Sify Network)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;7) Create new incident then fill all required filled like phone number, emai Id, office name,weg etc.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;8) Incident area should be select properly like DARPAN - SAP- HRMS etc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;9) Describe your issues properly in Description box I.e&amp;nbsp; error which showing on Device &quot; BPM is not tagged this BO&quot; etc.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;10. Attach Active BPM XLS data file &amp;amp; Save.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;11. Wait for response for ticket. Files will be triggered centrally &amp;amp; BPM will be able to generate salary Slip&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2b00fe; font-family: verdana; font-size: medium;&quot;&gt;12. After confirmation from BPM respond the ticket promptly.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/2176484684855980004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/12/generation-of-bpm-salary-slip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/2176484684855980004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/2176484684855980004'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/12/generation-of-bpm-salary-slip.html' title='Generation of BPM Salary slip'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8302702875414221329</id><published>2020-11-29T16:51:00.001+05:30</published><updated>2020-11-29T16:51:11.139+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>Post Office GUIDE PART 1 Quiz 6 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;Post Office GUIDE PART 1 Quiz 6 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;Post Office GUIDE PART 1 Quiz 6 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Enquiry of Value payable article fee is________ Ruppes&#39;,
    
    options:[&#39;Rs.1/-&#39;,&#39;Rs.10/-&#39;,&#39;Rs.2/-&#39;,&#39;Rs.20/-&#39;],
    answer:0
   },

   
   {
    question:&#39;Fee for change of  payee name of money order is ________&#39;,
    options:[&#39;Rs.10/-&#39;,&#39;Second Commission&#39;,&#39;Rs.20/-&#39;,&#39;First Commission&#39;],
    answer:1
   },
   {
    question:&#39;If a Money Order is neither paid to payee nor remitter, then it is  called as&#39;,
    options:[&#39;Deamed Money Order&#39;,&#39;Voilated Money Order&#39;,&#39;Void Money Order&#39;,&#39;Dormant Money Order&#39;],
    answer:2
   },
{
    question:&#39;If a Money Order is not paid upto __________, it is called Void Money Order&#39;,
    options:[&#39;Last date of following month&#39;,&#39;Last date of following Week&#39;,&#39;Last date of following fort night&#39;,&#39;None of the following&#39;],
    answer:0
   },
{
    question:&#39;Encashment duration of IPO  is ________&#39;,
    options:[&#39;Three Weeks&#39;,&#39;Three Months&#39;,&#39;Three year&#39;,&#39;None of the above&#39;],
    answer:2
   },
{
    question:&#39;Single copy Registered newspaper rate is&#39;,
    options:[&#39;First 50 Grams 0.25 Paise&#39;,&#39;50 Grams to 100 Grams 0.50 Paise&#39;,&#39;For each additional 100 Grams 0.20 Paise&#39;,&#39;All the above&#39;],
    answer:3
   },
{
    question:&#39;Multiple copy Registered newspaper rate is &lt;br/&gt;1.First 100 Grams 0.50 Paise&lt;br/&gt;2.For each additional 100 Grams 0.20 Paise&#39;,
    
  options:[&#39;1 Only&#39;,&#39;2 Only&#39;,&#39;Both 1 and 2&#39;,&#39;None of the above&#39;],
    answer:2
   },

{
    question:&#39;Insurance charge of an article is&lt;br/&gt;1. Upto Rs.200/- the insurance charge is Rs.100/-&lt;br/&gt;2.For each additional 100 Rupees the insurance charge is Rs.6/- &#39;,
   options:[&#39;1 Only&#39;,&#39;2 Only&#39;,&#39;Both 1 and 2&#39;,&#39;None of the above&#39;],
    answer:2
   },


{
    question:&#39;Value Payable charge of an article is&lt;br/&gt;1. Upto Rs.20/- the Value Payable charge is Rs.2/-&lt;br/&gt;2.Between Rs.20/- to Rs.50/- the Value Payable charge is Rs.3/-&lt;br/&gt;3.For more than Rs.50/- the Value Payable charge is Rs.5/- &#39;,
    options:[&#39;1 Only&#39;, &#39;1 and 2 Only&#39;, &#39;2 and 3 Only&#39;, &#39;All the above&#39;],
    answer:3
   },
   {
    question:&#39;Post offices which function in MMS VAN during COVID-19 are called  &#39;,
    options:[&#39;Post office on wheels&#39;, &#39;Post office on Road&#39;, &#39;Post office on street&#39;, &#39;Post office on VAN&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8302702875414221329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-6-for-ipo-exam-and-ps-group-b-exam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8302702875414221329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8302702875414221329'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-6-for-ipo-exam-and-ps-group-b-exam.html' title='Post Office GUIDE PART 1 Quiz 6 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-52336279137067466</id><published>2020-11-29T16:48:00.005+05:30</published><updated>2020-11-29T16:48:39.929+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>Post Office GUIDE PART 1 Quiz 5 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;Post Office GUIDE PART 1 Quiz 5 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;Post Office GUIDE PART 1 Quiz 5 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Parcel can be reserved at SO is &#39;,
    
     options:[&#39;Length 1 meter and breadth is 1.80 meter&#39;,&#39;Length 2 meter and breadth is 1.90 meter&#39;,&#39;Length 3 meter and breadth is 2.00 meter&#39;,&#39;Length 4 meter and breadth is 2.10 meter&#39;],
    answer:0
   },

   
   {
    question:&#39;No compensation will be payable in the event that &#39;,
    options:[&#39;For harm on the off chance that in which the substance of the enrolled article are fluid or transitory articles or articles of and particularly delicate nature.&#39;,&#39;Article is precluded by transmission by post &#39;,&#39;For misfortune or harm brought about by the deficiency or carelessness of the sender &#39;,&#39;All the above&#39;],
    answer:3
   },
   {
    question:&#39;In which cases registration is obligatory&#39;,
    options:[&#39;VP articles&#39;,&#39;Insured article&#39;,&#39;Any bundle surpass 4 kg&#39;,&#39;All the above&#39;],
    answer:3
   },
{
    question:&#39;Insured article limit on the off chance that money note and any estimation of article &#39;,
    options:[&#39;10,000 and 50,000&#39;,&#39;1,00,000 and 10,000&#39;,&#39;20,000 and 1,00,000 &#39;,&#39;20,000 and 10,000 &#39;],
    answer:3
   },
{
    question:&#39;The following charge are exempted to blind literature packet &#39;,
    options:[&#39;All five star mail and cash request &#39;,&#39;Parcel&#39;,&#39;Book packet	&#39;,&#39;All the above&#39;],
    answer:0
   },
{
    question:&#39;Limit to branch office for booking of insured article is &#39;,
    options:[&#39;Rs.600/-&#39;,&#39;Rs.6000/-&#39;,&#39;Rs.6000/-&#39;,&#39;None of the above&#39;],
    answer:0
   },
{
    question:&#39;Insurance is mandatory when an article contains â€¦. &#39;,
    
  options:[&#39;Currency&#39;,&#39;Jewellary&#39;,&#39;Coins&#39;,&#39;All the above&#39;],
    answer:3
   },

{
    question:&#39;VP article can be reserved to &#39;,
    options:[&#39;Rs.5000/-&#39;,&#39;Rs.500/-&#39;,&#39;Rs.50000/-&#39;,&#39;Rs.50/-&#39;],
    answer:0
   },


{
    question:&#39;Demurrage charge on VP article is recouped from recipient after &#39;,
    options:[&#39;7 days&#39;, &#39;7 weeks&#39;, &#39;5 days&#39;, &#39;5 weeks&#39;],
    answer:0
   },
   {
    question:&#39;Demurrage charge on letter and bundle is________ Rupees &#39;,
    options:[&#39;3 and 4&#39;, &#39;4 and 3&#39;, &#39;2 and 3&#39;, &#39;3 and 2&#39;],
    answer:2
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/52336279137067466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-5-for-ipo-exam-and-ps-group-b-exam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/52336279137067466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/52336279137067466'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-5-for-ipo-exam-and-ps-group-b-exam.html' title='Post Office GUIDE PART 1 Quiz 5 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-7098613661026487569</id><published>2020-11-29T16:44:00.004+05:30</published><updated>2020-11-29T16:44:38.840+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>Post Office GUIDE PART 1 Quiz 4 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;Post Office GUIDE PART 1 Quiz 4 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;Post Office GUIDE PART 1 Quiz 4 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;The weight limit of book packet is&#39;,
    
     options:[&#39;5 kg	&#39;,&#39;4 Kg	&#39;,&#39;6 kg&#39;,&#39;7 kg&#39;],
    answer:0
   },

   
   {
    question:&#39;The weight limit of book packet containing periodicals is&#39;,
    options:[&#39;5 kg	&#39;,&#39;4 Kg	&#39;,&#39;6 kg&#39;,&#39;7 kg&#39;],
    answer:0
   },
   {
    question:&#39;The weight limit of book pattern and sample packets  is&#39;,
    options:[&#39;5 kg	&#39;,&#39;4 Kg	&#39;,&#39;2 kg&#39;,&#39;7 kg&#39;],
    answer:2
   },
{
    question:&#39;The weight limit blind literature packet   is&#39;,
    options:[&#39;5 kg	&#39;,&#39;4 Kg	&#39;,&#39;2 kg&#39;,&#39;7 kg&#39;],
    answer:3
   },
{
    question:&#39;The following charge are exempted to blind literature packet &#39;,
    options:[&#39;Acknowledgement Fee&#39;,&#39;Registration Fee&#39;,&#39;Attested copy of receipt Fee&#39;,&#39;All the above&#39;],
    answer:3
   },
{
    question:&#39;License for Registered paper is given by &#39;,
    options:[&#39;Head of the circle &#39;,&#39;SSP/SP&#39;,&#39;PMG&#39;,&#39;DG Posts&#39;],
    answer:1
   },
{
    question:&#39;Late expense for recharging of registered news paper is &#39;,
    
  options:[&#39;Free of cost&#39;,&#39;Rs. 3/- only&#39;,&#39;Rs. 5/- only&#39;,&#39;Rs. 4/- only&#39;],
    answer:2
   },

{
    question:&#39;Renewal charge of reg news paper is &#39;,
    options:[&#39;Free of cost&#39;,&#39;Rs. 3/- only&#39;,&#39;Rs. 5/- only&#39;,&#39;Rs. 4/- only&#39;],
    answer:0
   },


{
    question:&#39;Unregistered Parcel can be sent up to&#39;,
    options:[&#39;40 Grams&#39;, &#39;400 Grams&#39;, &#39;4000 Grams&#39;, &#39;40000 Grams&#39;],
    answer:3
   },
   {
    question:&#39;Parcel can be reserved at BO is &#39;,
    options:[&#39;10 Grams&#39;, &#39;100 Grams&#39;, &#39;1000 Grams&#39;, &#39;10000 Grams&#39;],
    answer:3
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/7098613661026487569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-4-for-ipo-exam-and-ps-group-b-exam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/7098613661026487569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/7098613661026487569'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-4-for-ipo-exam-and-ps-group-b-exam.html' title='Post Office GUIDE PART 1 Quiz 4 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-1625179364159993920</id><published>2020-11-29T16:41:00.003+05:30</published><updated>2020-11-29T16:41:48.650+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>Post Office GUIDE PART 1 Quiz 3 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;Post Office GUIDE PART 1 Quiz 3 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;Post Office GUIDE PART 1 Quiz 3 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Instruction with respect to change of habitation is legitimate for &#39;,
    
     options:[&#39;3 months&#39;,&#39;5 months&#39;,&#39;7 months&#39;,&#39;9 months&#39;],
    answer:0
   },

   
   {
    question:&#39;Circle grumbling official is &#39;,
    options:[&#39;PMG &#39;,&#39;CPMG&#39;,&#39;DPS&#39;,&#39;Vigilence Officer&#39;],
    answer:3
   },
   {
    question:&#39;Period inside grumblings ought to be set up if there should be an occurrence of VP, misfortune/harm of regd&amp; ins article, other protest identified with inland post, unnatural birth cycle/obliteration of postal request and SP is &#39;,
    options:[&#39;24 month, half year, multi month, multi month, multi month &#39;,&#39;36 month, multi month, half year, multi month, multi month &#39;,&#39;12 month, multi month, half year, year, multi month &#39;,&#39;6 month, 3 month3 month, multi month, 1 month&#39;],
    answer:2
   },
{
    question:&#39;Legal obligation of mail center is absolved from &#39;,
    options:[&#39;Any deficiency by individual &#39;,&#39;Loss / Misconveyance / Postponement of / harm to, any postal article in course of transmission by post &#39;,&#39;Wrong installment or postponement in installment by unfamiliar postal organization of cash request gave in India. &#39;,&#39;All the above&#39;],
    answer:3
   },
{
    question:&#39;Article routed to expired individual &#39;,
    options:[&#39;Delivery such articles to any approach relative of the expired who may have applied for them in the event that uninsured article. &#39;,&#39;Delivery such articles to any approach relative of the perished who may have applied forthem in the event that do not seem to contain any significant property &#39;,&#39;Delivery such articles to any approach relative of the perished who may have applied for 	them in the event that no counter â€“ petitioner or probability of contest&#39;,&#39;All the above&#39;],
    answer:3
   },
{
    question:&#39;Size restriction of letter and roll is &#39;,
    options:[&#39;Min.11X7cm and max. 60X90cm, min. 10X17cm and max. 88X100cm &#39;,&#39;Min.11X10cm and max. 60X100cm, min. 10X15cm and max. 90X100cm&#39;,&#39;Min.11X11cm and max. 60X80cm, min. 10X20cm and max. 85X100cm&#39;,&#39;Min.11X9cm and max. 80X90cm, min. 10X15cm and max. 85X95cm&#39;],
    answer:0
   },
{
    question:&#39;Size restriction of Inland letter card collapsed and unfurled is &#39;,
    
  options:[&#39;Min.15.2X9cm and max. 21X10cm, min. 28.2X18.2cm max. 30X21cm &#39;,&#39;Min. 15.2X10cm and max. 21X10.2cm, min. 28.5X18.5cm max. 30X22cm &#39;,&#39;Min.15X9cm and max. 20X11cm, min. 28X18cm max. 30.5X21.5cm &#39;,&#39;Min.15X8cm and max. 20X9cm, min. 28X15cm max. 30.5X21cm&#39;],
    answer:0
   },

{
    question:&#39;Post card of private assembling size breaking point is &#39;,
    options:[&#39;Max. 15 cm x 10.5 Cm; min. 10X7 cm &#39;, &#39;Max. 15 cm x 10 Cm; min. 10X7.5 cm &#39;,&#39;Max. 15.5 cm x 10 Cm; min. 10.5X7.5 cm &#39;,&#39;Max. 15.5 cm x 10.5 Cm; min. 10.5X7cm &#39;],
    answer:0
   },


{
    question:&#39;Complaint can be presented in defense of recorded conveyance is inside &#39;,
    options:[&#39;8 months&#39;, &#39;6 months  &#39;, &#39;4 months&#39;, &#39;2 months&#39;],
    answer:1
   },
   {
    question:&#39;Book parcel may contain &#39;,
    options:[&#39;Printed books, paper, material &#39;, &#39;Cardboard either clear or printed &#39;,&#39;News papers, distributions, everything being equal, &#39;,&#39;All the above	&#39;],
    answer:3
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/1625179364159993920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam_67.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1625179364159993920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/1625179364159993920'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam_67.html' title='Post Office GUIDE PART 1 Quiz 3 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8541088410272767763</id><published>2020-11-29T16:38:00.004+05:30</published><updated>2020-11-29T16:38:42.528+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="PS-Group-B"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>Post Office GUIDE PART 1 Quiz 2 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;Post Office GUIDE PART 1 Quiz 2 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;Post Office GUIDE PART 1 Quiz 2 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Recall of postal article expense for each article is  &#39;,
    
     options:[&#39;Rs.10/- &#39;,&#39;Rs.8/-&#39;,&#39;Rs.6/-&#39;,&#39;Rs.4/-&#39;],
    answer:0
   },

   
   {
    question:&#39;Window conveyance will be put forth in defense of protected article vale is more than &#39;,
    options:[&#39;100 &#39;,&#39;200&#39;,&#39;500&#39;,&#39;1000&#39;],
    answer:2
   },
   {
    question:&#39;Limit of keep article in mail center which are gotten for conveyance inland and unfamiliar article &#39;,
    options:[&#39;20 days and 35 days &#39;,&#39;10 days and 25 days&#39;,&#39;7 days and 15 days&#39;,&#39;14 days and 20 days&#39;],
    answer:2
   },
{
    question:&#39;Fee for benefiting post box office is &#39;,
    options:[&#39;200 every year/50 quarterly&#39;,&#39;200 every year/100 quarterly &#39;,&#39;150 every year and 50 for each quarterly, &#39;,&#39;150 every year and 100 for each quarterly,&#39;],
    answer:2
   },
{
    question:&#39;Cost of window conveyance ticket is &#39;,
    options:[&#39;10/- &#39;,&#39;20/-&#39;,&#39;30/-&#39;,&#39;Free of cost&#39;],
    answer:3
   },
{
    question:&#39;Cost of Identity card is &#39;,
    options:[&#39;3/ -&#39;,&#39;8/-&#39;,&#39;10/-&#39;,&#39;9/-&#39;],
    answer:3
   },
{
    question:&#39;Validity time of ID card is &#39;,
    
  options:[&#39;3 years&#39;,&#39;5 years&#39;,&#39;2 years &#39;,&#39;4 years&#39;],
    answer:0
   },

{
    question:&#39;Size constraint of ID card is &#39;,
    options:[&#39;88mmX 63mm&#39;, &#39;88mmX 66mm&#39;,&#39;100mmX 70mm   &#39;,&#39;100mmX 60mm &#39;],
    answer:0
   },


{
    question:&#39;Redirection charge of bundles aside from conveyance zone/unique location is &#39;,
    options:[&#39;Half the paid ahead of time rate	&#39;, &#39;Free of cost &#39;, &#39;Full postage &#39;, &#39;Postage in addition to enlistment fee &#39;],
    answer:1
   },
   {
    question:&#39;Suggestion and complaint books are kept up by &#39;,
    options:[&#39;All Post office&#39;, &#39;Circle office&#39;,&#39;Division office&#39;,&#39;Head office&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8541088410272767763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8541088410272767763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8541088410272767763'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam_29.html' title='Post Office GUIDE PART 1 Quiz 2 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8541489174597963068</id><published>2020-11-29T16:31:00.002+05:30</published><updated>2020-11-29T16:31:42.248+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PO GUIDE PART 1 Quiz 1 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PO GUIDE PART 1 Quiz 2 for IPO exam and PS Group B exam&lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PO GUIDE PART 1 Quiz 1 for IPO exam and PS Group B exam...&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Night Post Office may reach out up to and by &#39;,
    
     options:[&#39;07:00pm &amp; HOC &#39;,&#39;06:00pm &amp; SSP&#39;,&#39;08:30 pm  &amp; DG posts&#39;,&#39;10:00pm &amp; PMG &#39;],
    answer:2
   },

   
   {
    question:&#39;Franking machine has &#39;,
    options:[&#39;License kick the bucket &#39;,&#39;Value die&#39;,&#39;None of this&#39;,&#39;Both a&amp;b&#39;],
    answer:3
   },
   {
    question:&#39;Franking article can be posted by &#39;,
    options:[&#39;Only two mailing station &#39;,&#39;Any post office&#39;,&#39;All sub offices&#39;,&#39;Head office&#39;],
    answer:0
   },
{
    question:&#39;Franking machine permit is given by &#39;,
    options:[&#39;DG posts&#39;,&#39;Head of the Circle&#39;,&#39;Head of the division &#39;,&#39;None of the above&#39;],
    answer:2
   },
{
    question:&#39;Window conveyance ticket is a &#39;,
    options:[&#39;ID of Franking machine licensee s agent&#39;,&#39;The receipt given by Post Office&#39;,&#39;Daily docket &#39;,&#39;None of the above&#39;],
    answer:0
   },
{
    question:&#39;Rebate accessible at the hour of reset of Franking machine meter is &#39;,
    options:[&#39;5%&#39;,&#39;2%&#39;,&#39;3% &#39;,&#39;None of these&#39;],
    answer:2
   },
{
    question:&#39;Error on franking impression the discount will be asserted by firm/establishment within_____ and ___ of less allowance. &#39;,
    
  options:[&#39;1 month &amp; 5%&#39;,&#39;2 months &amp; 2%&#39;,&#39;3 months &amp; 4% &#39;,&#39;6 months &amp; 1%&#39;],
    answer:0
   },

{
    question:&#39;Franking meter reset will be made by &#39;,
    options:[&#39;PRI(P) or more status&#39;, &#39;LSG postmaster&#39;,&#39;Postman  &#39;,&#39;Postal Assistant&#39;],
    answer:0
   },


{
    question:&#39;More than one impression of significant worth bite the dust yet not more than 1 licensee pass on permitted. &#39;,
    options:[&#39;True&#39;, &#39;False&#39;],
    answer:0
   },
   {
    question:&#39;Prepayment of postage on money office is approved by and how much letter might be presented on have these office.&#39;,
    options:[&#39;HOC, 	UR-500 major city and 250 little city, Reg - 50 &#39;, &#39;DG post, UR-1000 major city and 500 little city, Reg - 100 &#39;,&#39;Head of the division UR-5000 major city and 1000 little city, Reg - 500 &#39;,&#39;None of these&#39;],
    answer:0
   }

]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8541489174597963068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8541489174597963068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8541489174597963068'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/postoffice-guide-part-1-quiz-1-for-ipo-exam-and-ps-group-b-exam.html' title='PO GUIDE PART 1 Quiz 1 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6371362150798794505.post-8145731430504915953</id><published>2020-11-29T16:27:00.002+05:30</published><updated>2020-11-29T16:27:18.239+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPExam"/><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><title type='text'>PLI and RPLI Quiz 4 for IPO exam and PS Group B exam</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
&lt;/style&gt;
  &lt;title&gt;PLI and RPLI Quiz 4 for IPO exam and PS Group B exam &lt;/title&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;style&gt;
  @import url(&#39;https://fonts.googleapis.com/css?family=Montserrat:400,500,700,800&amp;display=swap&#39;);
@import url(&#39;https://fonts.googleapis.com/css?family=Concert+One&amp;display=swap&#39;);

body{
 margin:0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;
    font-family: &#39;Montserrat&#39;, sans-serif;
}
{
	box-sizing: border-box;
}
.custom-box{
	max-width: 800px;
	background-color: #ddd6e1;
	margin:30px auto;
	padding: 50px 40px;
	border-radius: 10px;
    border-style: solid;
    border-color: blueviolet;
}
.quiz-home-box{
	text-align:center;
	display: none;
}
.quiz-home-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-home-box h4{
	font-size: 30px;
    font-weight: 500;
    color:#444444;
    margin: 0 0 30px;
    border-style: ridge;
}
.btn{
    background-color: #4413ac;
    border: 2px solid #422c11;
    padding: 14px 40px;
    color: #ffffff;
    font-size: 20px;
    border-radius: 30px;
    font-family: &#39;Montserrat&#39;, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 10px;
}
.btn:focus{
    outline:none;
}
.quiz-box{
    background-color: #bad3df;
    display: none;
}
.quiz-box.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 30px;
	text-transform: uppercase;
	color: #000000;
}
.quiz-box .stats .quiz-time{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: red;*/	
	text-align: left;
}
.quiz-box .stats .time-up-text{
   /* display: inline-block;*/
    color:#f40404;
	font-weight: 500;
	display: none;
}
.quiz-box .stats .time-up-text.show{
   display:inline-block;
   animation: fadeInOut 1s linear infinite; 
}
@keyframes fadeInOut{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 2;
	}
	100%{
		opacity: 0;
	}
}
.quiz-box .stats .quiz-time .remaining-time{
	height: 60px;
	width: 60px;
	color:#096b36;
	border: 2px solid #096b36;
	font-weight: 800;
	line-height: 56px;
	text-align: center;
	border-radius: 50%;
	display:inline-block;
}
    
    
.quiz-box .stats .quiz-time .remaining-time.less-time{
    color:#b5200d;
	border-color:#b5200d;
}
.quiz-box .stats .score-board{
flex-basis: calc(50% - 20px);
max-width: calc(50% - 20px);
/*background: blue;*/
text-align: right;
	
}
.quiz-box .stats .score-board .correct-answer{
	font-weight: 800;
}
.quiz-box .question-box{
    background-color: #ffffff;
    padding: 40px 30px;
    margin-top: 40px;
    border-radius: 10px;
    font-size: 28px;
    border: 2px solid #4d330a;
    text-align:justify;
    text-justify: inter-word;

     position: relative;
}
.quiz-box .question-box .current-question-num{
	height: 70px;
	width: 70px;
	background-color: #ffffff;
	border:2px solid #4d3106;
	font-size: 20px;
	font-weight: 800;
	color:#1411e3;
	border-radius: 50%;
	line-height: 68px;
	text-align: center;
	position: absolute;
	top:-35px;
	left:50%;
	margin-left: -35px;
	z-index:1;
}
.quiz-box .question-box .question-text{
    font-size: 26px;
    font-family: sans-serif;
    color:#ac1313;
}
.quiz-box .option-box{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
}
.quiz-box .option-box .option{
	background-color: #958f8f;
	flex-basis: calc(50% - 20px);
	max-width: calc(50% - 20px);
	margin-top: 30px;
	padding: 7px 7px;
	text-align: center;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 500;
	color:#231803;
	border:2px solid #5e5a53;
	border-radius: 30px;
	cursor: pointer;
    position: relative;
    animation: zoomIn .3s linear forwards;
    opacity: 0;
}
@keyframes zoomIn{
	0%{
		transform: scale(0.8);
	}
	100%{
		transform: scale(1);
		opacity:1;
	}
}
.quiz-box .option-box .option.already-answered{
	pointer-events: none;
}
.quiz-box .option-box .option.show-correct{
    background-color: #096b36;
	border-color:#096b36;
    color: #ffffff;
    transition: all .3s ease;
}
.quiz-box .option-box .option.correct{
	background-color: #096b36;
	border-color:#096b36;
	color:#ffffff;
    opacity:1;
	animation: pulse 1s linear;
}
@keyframes pulse{
	0%{
		transform: scale(1);
	}
	50%{
		transform: scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.quiz-box .option-box .option.correct::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/correct.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
.quiz-box .option-box .option.wrong{
	background-color: #a22312;
	border-color:#a22312;
	color: #ffffff;
	opacity:1;
	animation: shake 1s linear;
}
.quiz-box .option-box .option.wrong::before{
	content: &#39;&#39;;
	position: absolute;
	height: 30px;
	width: 30px;
	right: 15px;
	top:7px;
	background-image: url(&quot;img/wrong.png&quot;);
	background-size: 20px;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInRight .5s ease;
}
@keyframes shake{
	0%,30%,50%{
		transform: translateX(10px);
	}
	20%,40%{
		transform: translateX(-10px);
	}
	60%{
		transform: translateX(-7px);
	}
	70%{
		transform: translateX(7px);
	}
	80%{
		transform: translateX(-4px);
	}
	90%{
		transform: translateX(4px);
	}
	100%{
		transform: translateX(0px);
	}
	@keyframes fadeInRight{
		0%{
			opacity:0;
			transform: translateX(40px);
		}
		100%{
			opacity: 1;
			transform: translateX(0px);
		}
	}
}
.quiz-box .answer-description{
    background-color: #ffffff;
    border:2px solid #c2af91;
    margin-top: 20px;
    padding: 15px;
    border-radius:10px;
    color; #555555;
    display: none;
    
}
.quiz-box .answer-description.show{
    display: block;
    animation: fadeInRight 1s ease;
}
.quiz-box .next-question{
	margin-top: 20px;
	text-align: center;
}
.see-result-btn,.next-question-btn{
    display: none;
}
.see-result-btn.show,
.next-question-btn.show{
    display: inline-block;
    animation: fadeInRight 1s ease;
}
.quiz-over-box{
    text-align: center;
    display: none;
}
.quiz-over-box.show{
   display: block;
   animation: fadeInRight 1s ease;
}
.quiz-over-box h1{
	font-size:50px;
	font-family: &#39;Concert One&#39;, cursive;
	color: #f85943;
	margin:0px 3 20px;	
}
.quiz-over-box h4{
	font-size:25px;
	font-weight: normal;
	color: #444444;
	margin: 15px 0 20px;
}
.quiz-over-box h4 span{
	font-weight: 800;
	color:#111111;
}
.start-again-quiz-btn,
.go-home-btn{
	margin-top: 15px;
	
}
/*responsive*/
@media (max-width: 767px){
.custom-box{
background-color: #cbe1e0;
}
.quiz-home-box h4{
    font-size: 16px;
}
.btn{
    padding: 7px 20px;
	font-size: 15px;
}
 .quiz-box .question-box{
        padding: 40px 0px;
    }
    .quiz-box .question-box .question-text{
        font-size: 17px;
        font-family: sans-serif;
        color: #1d1b19;
    }
    .custom-box{
        padding: 30px 10px 50px 10px;
        background-color: #d5deee;
    }
    .quiz-box .stat{
        font-size:20px;
    }
    .quiz-box .stats .quiz-time {
        flex-basis: calc(60% - 10px);
        max-width: calc(60% - 10px);
        font-size: 18px;
    }
    .quiz-box .stats .score-board{
        flex-basis: calc(40% - 10px);
        max-width: calc(40% - 10px);
        font-size: 16px;
    }
    .quiz-box .stats .quiz-time .remaining-time{
        height: 50px;
        width: 50px;
        line-height: 46px;
        color: #045e2e;
        border: 2px solid #045e2e;
    }
    .quiz-box .question-box .current-question-num{
        height: 60px;
        width: 60px;
        line-height: 58px;
        top: -30px;
        margin-left: -30px;
        font-size: 16px;
    }
    .quiz-box .option-box .option{
        flex-basis: 100%;
        max-width: 100%;
        font-size: 16px;
        margin-top: 15px;
    }
	.quiz-over-box h1{
        font-size: 30px;
        
    }
    .quiz-over-box h4{
        font-size: 20px;
        margin: 10px 0 15px;
    }
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;  
  &lt;marquee&gt;&lt;p style=&quot;color:magenta;font-weight:bold&quot;&gt;PLI and RPLI Quiz 4 for IPO exam and PS Group B exam&lt;/p&gt;&lt;/marquee&gt;
 &lt;div class=&quot;quiz-home-box custom-box show&quot;&gt;
 &lt;h4&gt;you&#39;ll have 30 second to answer each question.&lt;/h4&gt;
 &lt;button type=&quot;button&quot; class=&quot;start-quiz-btn btn&quot;&gt;Start The Quiz&lt;/button&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-box custom-box&quot;&gt;
&lt;div class=&quot;stats&quot;&gt;
&lt;div class=&quot;quiz-time&quot;&gt;
&lt;div class=&quot;remaining-time&quot;&gt;&lt;/div&gt;
    &lt;span class=&quot;time-up-text&quot;&gt;Time&#39;s Up&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;score-board&quot;&gt;
&lt;span class=&quot;score-text&quot;&gt;score:&lt;/span&gt;
&lt;span class=&quot;correct-answer&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;question-box&quot;&gt;
&lt;div class=&quot;current-question-num&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;question-text&quot;&gt;
    
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;option-box&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;answer-description&quot;&gt;
    
&lt;/div&gt;
&lt;div class=&quot;next-question&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;next-question-btn btn&quot;&gt;Next question&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;see-result-btn btn&quot;&gt;See Your Result&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quiz-over-box custom-box&quot;&gt;
&lt;h2&gt;https://sahydcity.blogspot.com&lt;/h2&gt;
&lt;h1&gt;Quiz Result&lt;/h1&gt;
&lt;h4&gt;Total Questions: &lt;span class=&quot;total-questions&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Attempt: &lt;span class=&quot;total-attempt&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Correct: &lt;span class=&quot;total-correct&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Wrong: &lt;span class=&quot;total-wrong&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;Percentage: &lt;span class=&quot;percentage&quot;&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;button type=&quot;button&quot; class=&quot;start-again-quiz-btn btn&quot;&gt;Start Again&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;go-home-btn btn&quot;&gt;Go To Home&lt;/button&gt;
&lt;/div&gt;
&lt;script&gt;


const questionText=document.querySelector(&quot;.question-text&quot;);
const optionBox=document.querySelector(&quot;.option-box&quot;);
const currentQuestionNum=document.querySelector(&quot;.current-question-num&quot;);
const answerDescription=document.querySelector(&quot;.answer-description&quot;);
const nextQuestionBtn=document.querySelector(&quot;.next-question-btn&quot;);
const correctAnswers=document.querySelector(&quot;.correct-answer&quot;);
const seeResultBtn=document.querySelector(&quot;.see-result-btn&quot;);
const remainingTime=document.querySelector(&quot;.remaining-time&quot;);
const timeUpText=document.querySelector(&quot;.time-up-text&quot;);
const quizHomeBox=document.querySelector(&quot;.quiz-home-box&quot;);
const quizBox=document.querySelector(&quot;.quiz-box&quot;);
const quizOverBox=document.querySelector(&quot;.quiz-over-box&quot;);
const startAgainQuizBtn=document.querySelector(&quot;.start-again-quiz-btn&quot;);
const goHomeBtn=document.querySelector(&quot;.go-home-btn&quot;);
const startQuizBtn=document.querySelector(&quot;.start-quiz-btn&quot;);
let attempt=0;
let questionIndex=0;
let score=0;
let number=0;
let myArray=[];
let interval;
    // You can put Questions Here
    // answer id 1-0, 2-1, 3-2, 4-3, 
myApp=[
    
    {
    question:&#39;Mark the inaccurate alternative &#39;,
    
     options:[&#39;20 Jan 2004&#39;,&#39;24 Mar 1995&#39;,&#39;20 Jan 2006&#39;,&#39;24 Mar 2005&#39;],
    answer:2
   },

   
   {
    question:&#39;Mark the erroneous alternative &#39;,
    options:[&#39;Not more than one arrangement will be considered for one kid. The strategy can be taken by protected for his/her own youngster as it were &#39;,&#39;The age of the youngster note over 18 years at the hour of issue of kids policy	&#39;,&#39;Not multiple youngsters in a family will be secured under this strategy. A similar youngster ought not be secured under more than one approach &#39;,&#39;The protected of principle strategy will not be matured 45 years or more at the time of taking of youngsters strategy &#39;],
    answer:1
   },
   {
    question:&#39;Mark the off base alternative identifying with Children Policy &#39;,
    options:[&#39;The least cutoff for protection under this plan will be Rs2000/ - &#39;,&#39;No advance will be appropriate to youngsterâ€™s approaches. &#39;,&#39;In the function of the demise of the protected before the expiry of the kids strategy no further excellent will be payable for the parity time of the approach.&#39;,&#39;Agency commission not accessible in this plan &#39;],
    answer:1
   }


]

function load(){
    number++;
   questionText.innerHTML=myApp[questionIndex].question;
    creatOptions();
    scoreBoard();
    currentQuestionNum.innerHTML=number + &quot; / &quot; +myApp.length;
}
function creatOptions(){
    optionBox.innerHTML=&quot;&quot;;
    let animationDelay=0.2;
    for(let i=0; i&lt;myApp[questionIndex].options.length; i++){
        const option=document.createElement(&quot;div&quot;);
              option.innerHTML=myApp[questionIndex].options[i];
              option.classList.add(&quot;option&quot;);
              option.id=i;
              option.style.animationDelay=animationDelay + &quot;s&quot;;
              animationDelay=animationDelay+0.2;
              option.setAttribute(&quot;onclick&quot;,&quot;check(this)&quot;);
              optionBox.appendChild(option);
        
    }
}

function generateRandomQuestion(){
    const randomNumber=Math.floor(Math.random() * myApp.length);
   let hitDuplicate=0;
   if(myArray.length == 0){
        questionIndex=randomNumber;
    }
    else{
        for(let i=0; i&lt;myArray.length; i++){
            if(randomNumber == myArray[i]){
                //if duplicate found
                hitDuplicate=1;
                
            }
        }
        if(hitDuplicate == 1){
            generateRandomQuestion();
            return;
        }
        else{
            questionIndex=randomNumber;
        }
    }
    
    myArray.push(randomNumber);
    console.log(myArray)
    load();
}

function check(ele){
    const id=ele.id;
    if(id==myApp[questionIndex].answer){
       ele.classList.add(&quot;correct&quot;);
        score++;
        scoreBoard();
    }
    else{
        ele.classList.add(&quot;wrong&quot;);
        //show correct option when clicked answer is wrong
        for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
            }
        }
    }
    attempt++;
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
    stopTimer();
    
    if(number == myApp.length){
        quizOver();
    }
}
function timeIsUp(){
    showTimeUpText();
    //when time is up Show Correct Answer
    for(let i=0; i&lt;optionBox.children.length; i++){
            if(optionBox.children[i].id==myApp[questionIndex].answer){
                optionBox.children[i].classList.add(&quot;show-correct&quot;);
				
            }
        }
    disableOptions()
    showAnswerDescription();
    showNextQuestionBtn();
	if(number == myApp.length){
        quizOver();
      }
}
function startTimer(){
    let timeLimit=30;
    remainingTime.innerHTML=timeLimit;
    remainingTime.classList.remove(&quot;less-time&quot;);
    interval=setInterval(()=&gt;{
      timeLimit--;
        if(timeLimit &lt; 10){
            timeLimit=&quot;0&quot;+timeLimit;
            
            }
            if(timeLimit &lt; 6){
                remainingTime.classList.add(&quot;less-time&quot;);  
            }
            remainingTime.innerHTML=timeLimit;
            if(timeLimit == 0){
            clearInterval(interval);
            timeIsUp();
    }
    },1000)
}
function stopTimer(){
    clearInterval(interval);
}
function disableOptions(){
    for(let i=0; i&lt;optionBox.children.length; i++){
        optionBox.children[i].classList.add(&quot;already-answered&quot;)
    }
}
function showAnswerDescription(){
    if(typeof myApp[questionIndex].description !== &#39;undefined&#39;){
        answerDescription.classList.add(&quot;show&quot;);
        answerDescription.innerHTML=myApp[questionIndex].description;
    }
    
}
function hideAnswerDescription(){
    answerDescription.classList.remove(&quot;show&quot;);
    answerDescription.innerHTML=&quot;&quot;;
}

function showNextQuestionBtn(){
    nextQuestionBtn.classList.add(&quot;show&quot;);
}
function hideNextQuestionBtn(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
}
function showTimeUpText(){
    timeUpText.classList.add(&quot;show&quot;);
}
function hideTimeUpText(){
    timeUpText.classList.remove(&quot;show&quot;);
    
}
function scoreBoard(){
    correctAnswers.innerHTML=score;
}

nextQuestionBtn.addEventListener(&quot;click&quot;,nextQuestion);

function nextQuestion(){
   generateRandomQuestion();
    hideNextQuestionBtn();
    hideAnswerDescription();
    hideTimeUpText();
    startTimer();
  document.documentElement.scrollTop=0;
    document.body.scrolTop=0;

}
function quizResult(){
    document.querySelector(&quot;.total-questions&quot;).innerHTML=myApp.length;
    document.querySelector(&quot;.total-attempt&quot;).innerHTML=attempt;
    document.querySelector(&quot;.total-correct&quot;).innerHTML=score;
    document.querySelector(&quot;.total-wrong&quot;).innerHTML=attempt-score;
    const percentage=(score/myApp.length)*100;
    document.querySelector(&quot;.percentage&quot;).innerHTML=percentage.toFixed(2) +&quot;%&quot;;
}
function resetQuiz(){
  attempt=0;
  //questionIndex=0;
  score=0;
  number=0;
  myArray=[];
}

function quizOver(){
    nextQuestionBtn.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.add(&quot;show&quot;);
}
seeResultBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.remove(&quot;show&quot;);
    seeResultBtn.classList.remove(&quot;show&quot;);
    quizOverBox.classList.add(&quot;show&quot;);
    quizResult();
     })

startAgainQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizBox.classList.add(&quot;show&quot;);
    quizOverBox.classList.remove(&quot;show&quot;);
    resetQuiz();
    nextQuestion();
})

goHomeBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizOverBox.classList.remove(&quot;show&quot;);
    quizHomeBox.classList.add(&quot;show&quot;)
    resetQuiz();
})
  
startQuizBtn.addEventListener(&quot;click&quot;, ()=&gt;{
    quizHomeBox.classList.remove(&quot;show&quot;);
    quizBox.classList.add(&quot;show&quot;);
    nextQuestion();
})

//window.onload=()=&gt;{
    
//}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahydcity.blogspot.com/feeds/8145731430504915953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahydcity.blogspot.com/2020/11/pli-and-rpli-quiz-4-for-ipo-exam-and-ps-group-b-exam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8145731430504915953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6371362150798794505/posts/default/8145731430504915953'/><link rel='alternate' type='text/html' href='http://sahydcity.blogspot.com/2020/11/pli-and-rpli-quiz-4-for-ipo-exam-and-ps-group-b-exam.html' title='PLI and RPLI Quiz 4 for IPO exam and PS Group B exam'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>