Skip to content

ANSS Academy

Blogger Content

ANSS ACADEMY — CBT Examination Console :root { --primary-color: #0f172a; --primary-accent: #2563eb; --secondary-color: #3b82f6; --bg-color: #f8fafc; --card-bg: #ffffff; --text-color: #1e293b; --text-muted: #64748b; --font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; /* CBT Exam Status Colors */ --color-unvisited: #f1f5f9; --color-unvisited-text: #475569; --color-not-answered: #ef4444; --color-answered: #22c55e; --color-marked: #a855f7; --color-ans-marked: #8b5cf6; --border-radius-sm: 8px; --border-radius-lg: 14px; --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04); } body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-color); letter-spacing: -0.01em; user-select: none; font-size: 0.9rem; -webkit-font-smoothing: antialiased; } .hidden-screen { display: none !important; } h2 { font-size: 1.5rem !important; font-weight: 700; color: var(--primary-color); } h3 { font-size: 1.3rem !important; font-weight: 700; color: var(--primary-color); } h4 { font-size: 1.15rem !important; font-weight: 600; color: var(--primary-color); } h5 { font-size: 1.05rem !important; font-weight: 600; color: var(--primary-color); } h6 { font-size: 0.9rem !important; font-weight: 600; color: var(--primary-color); } p, ul li { font-size: 0.88rem !important; color: #475569; line-height: 1.6; } .glass-card { background: var(--card-bg); border: 1px solid #e2e8f0; border-radius: var(--border-radius-lg); box-shadow: var(--card-shadow); } .palette-btn { width: 38px; height: 36px; margin: 4px; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; cursor: pointer; user-select: none; text-align: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .palette-btn:hover { transform: translateY(-2px); } .p-unvisited { background-color: var(--color-unvisited); color: var(--color-unvisited-text); border-color: #cbd5e1; border-radius: var(--border-radius-sm); } .p-not-answered { background-color: var(--color-not-answered); color: #fff; border-radius: 4px 4px 14px 14px; } .p-answered { background-color: var(--color-answered); color: #fff; border-radius: 14px 14px 4px 4px; } .p-marked { background-color: var(--color-marked); color: #fff; border-radius: 50%; } .p-ans-marked { background-color: var(--color-ans-marked); color: #fff; border-radius: 50%; position: relative; } .p-ans-marked::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 8px; height: 8px; background-color: var(--color-answered); border-radius: 50%; border: 1.5px solid #fff; } .custom-sticky-timer-bar { position: sticky !important; top: 0; left: 0; right: 0; min-height: 65px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; z-index: 1050 !important; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.3); } .custom-lang-select { min-width: 105px !important; font-size: 0.85rem !important; font-weight: 600; padding: 6px 24px 6px 12px !important; background-color: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; color: #ffffff !important; border-radius: var(--border-radius-sm); } .custom-lang-select option { background-color: #1e293b !important; color: #ffffff !important; } .option-container { border: 1.5px solid #e2e8f0; border-radius: var(--border-radius-sm); padding: 14px 18px; margin-bottom: 12px !important; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 500; display: flex; align-items: center; background-color: #fff; font-size: 0.85rem !important; } .option-container:hover { background-color: #f8fafc; border-color: #cbd5e1; transform: translateX(4px); } .option-container.selected { border-color: var(--primary-accent); background-color: #f0f5ff; } .option-container input[type="radio"] { margin-right: 14px !important; flex-shrink: 0; transform: scale(1.2); accent-color: var(--primary-accent); } .highlighted-declaration-card { border: 2px dashed #3b82f6 !important; background-color: #eff6ff !important; transition: all 0.2s ease; } .highlighted-declaration-card:has(.form-check-input:checked) { border-style: solid !important; border-color: #22c55e !important; background-color: #f0fdf4 !important; } .highlighted-declaration-card .form-check-input { transform: scale(1.6) !important; margin-left: 5px !important; margin-right: 20px !important; cursor: pointer; border: 2px solid #3b82f6; accent-color: #22c55e; flex-shrink: 0; } .btn { border-radius: var(--border-radius-sm); font-weight: 600; transition: all 0.2s ease; } .btn-mini-control { font-size: 0.92rem !important; padding: 10px 16px !important; letter-spacing: -0.01em; white-space: nowrap; } .btn-primary { background-color: var(--primary-accent); border-color: var(--primary-accent); } .btn-success { background-color: var(--color-answered); border-color: var(--color-answered); } .btn-danger { background-color: var(--color-not-answered); border-color: var(--color-not-answered); } .btn-purple { background-color: var(--color-ans-marked); border-color: var(--color-ans-marked); color: #fff; } .btn-purple:hover { background-color: #7c3aed; border-color: #7c3aed; color: #fff; } .legend-text { font-size: 0.85rem !important; font-weight: 500; color: #475569; } .grid-matrix-layout { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 8px !important; } .analytics-metric-box { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--border-radius-lg); padding: 16px; text-align: center; height: 100%; } .analytics-metric-value { font-size: 1.35rem; font-weight: 700; color: var(--primary-color); margin-top: 4px; } .animate-pulse { animation: pulse-animation 2s infinite; } @keyframes pulse-animation { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } } #targetQuestionText { font-size: 1.00rem !important; line-height: 1.3; } .q-image-preview-frame { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; background-color: #f8fafc; } @media (max-width: 576px) { .btn-mini-control { font-size: 0.82rem !important; padding: 10px 6px !important; letter-spacing: -0.02em; } .action-grid-wrapper { gap: 4px !important; } }

ANSS ACADEMY — Philosophy Test

Duration: 60 Mins Negative Marks: 0.00
Candidates Instructions (English)
  • Read all questions carefully before choosing your target options.
  • Each question carries 2 marks. There is no negative marking.
  • Use the Question Palette to navigate through index sets directly.
  • Click "Save & Next" to lock choices. Changes won't preserve if skipped without saving.
  • The test will auto-submit when the countdown timer hits 00:00.
अभ्यर्थी निर्देश (हिन्दी)
  • सभी प्रश्नों को ध्यानपूर्वक पढ़ें और अपने विकल्पों का चयन करें।
  • प्रत्येक प्रश्न 2 अंकों का है। गलत उत्तरों पर कोई नकारात्मक अंकन नहीं होगा।
  • प्रश्नों के बीच सीधे नेविगेट करने के लिए प्रश्न पैलेट का उपयोग करें।
  • उत्तर सुरक्षित करने के लिए हमेशा "सहेजें और अगला" पर क्लिक करें।
  • समय समाप्त होने पर आपका परीक्षा सत्र स्वतः ही जमा (Auto-Submit) हो जाएगा।
Question Palette Legend Status:
1 Not Visited
2 Not Answered
3 Answered
4 Marked for Review
English हिन्दी (Hindi)
ANSS ACADEMY
Paper-2 Philosophy
English हिन्दी
60:00
Question: 1
Question Graphic

Fetching Question Data...

Candidate Exam Console
Roll: ANSS55224
0
Not Visited
0
Not Ans
0
Answered
0
Marked Review
0
Ans & Marked
Question Grid Matrix:

Test Submission Summary

Please verify your session attempts before final submission.

Metric Category StatusAllocated Count
Total Number of Questions0
Answered & Saved0
Marked for Review Status0
Not Attempted / Left Blank0

Locking Responses & Evaluating...

Please wait while the system calculates your scorecard.

ANSS Performance Scorecard

Comprehensive performance overview and detailed solutions.

Secured Score

0.00

Accuracy Rate

0%

Correct Selections

0

Incorrect Footprints

0

Total Questions
0
Taken Time
00:00
Negative Marking
0
Avg Time / Question
0.0s
Obtained Percentage

0.00%

Unattempted: 0 Questions
Performance Diagnosis:
Back to Home

Detailed Explanatory Keys

// ========================================================================= // QUESTION DATA CONFIGURATION (ADD YOUR NEW QUESTIONS INSIDE THE ARRAY BELOW) // ========================================================================= const activeTestData = { title: "Philosophy", duration: 60, // Duration in minutes questions: [ // Question 1: Match List Type { "en": { "text": "Match List-I with List-II according to Contemporary Indian Philosophy:nnList-I (Thinker)nA. Sri AurobindonB. K.C. BhattacharyyanC. J. KrishnamurtinD. Swami VivekanandannList-II (Core Concept / Treatise)n1. Evolution of Mind to Supermindn2. Subject as Freedom and Swaraj in Ideasn3. Choiceless Awareness and Freedom from the Knownn4. Practical Vedanta and Universal ReligionnnChoose the correct option:", "options": [ "A-1, B-2, C-3, D-4", "A-2, B-1, C-4, D-3", "A-3, B-4, C-1, D-2", "A-4, B-3, C-2, D-1" ], "explanation": "Sri Aurobindo formulates the evolutionary ascent from Mind to Supermind within Integral Yoga. K.C. Bhattacharyya develops Subject as Freedom. J. Krishnamurti emphasizes Choiceless Awareness. Swami Vivekananda propagates Practical Vedanta." }, "hi": { "text": "समकालीन भारतीय दर्शन के अनुसार सूची-I को सूची-II से सुमेलित कीजिए:nnसूची-I (विचारक)nA. श्री अरविन्दnB. के.सी. भट्टाचार्यnC. जे. कृष्णमूर्तिnD. स्वामी विवेकानंदnnसूची-II (मूल अवधारणा / ग्रंथ)n1. मन से अतिमन में विकासn2. विषय रूप में स्वतंत्रता एवं विचारों में स्वराजn3. चॉइसलेस अवेयरनेस और ज्ञात से मुक्तिn4. व्यावहारिक वेदांत और सार्वभौमिक धर्मnnसही विकल्प चुनें:", "options": [ "A-1, B-2, C-3, D-4", "A-2, B-1, C-4, D-3", "A-3, B-4, C-1, D-2", "A-4, B-3, C-2, D-1" ], "explanation": "श्री अरविन्द पूर्णयोग के अंतर्गत मन से अतिमन की ओर आध्यात्मीकृत विकास का प्रतिपादन करते हैं। के.सी. भट्टाचार्य 'विषय रूप में स्वतंत्रता' का विकास करते हैं। जे. कृष्णमूर्ति चॉइसलेस अवेयरनेस पर बल देते हैं। स्वामी विवेकानंद व्यावहारिक वेदांत प्रस्तुत करते हैं।" }, "correct": 0 }, // Question 2: Statement Type { "en": { "text": "Consider the following statements regarding Ludwig Wittgenstein's Philosophical Transition:nnStatement-I: In Tractatus Logico-Philosophicus, Wittgenstein holds that the essence of language is to depict reality through an isomorphic logical structure.nStatement-II: In Philosophical Investigations, Wittgenstein retains the picture theory of meaning while adding language games as stylistic rhetorical variations.nnChoose the correct option:", "options": [ "Both Statement-I and Statement-II are true", "Both Statement-I and Statement-II are false", "Statement-I is true, but Statement-II is false", "Statement-I is false, but Statement-II is true" ], "explanation": "Statement-I is true because early Wittgenstein asserted picture theory. Statement-II is false because late Wittgenstein explicitly rejected picture theory in favor of the use-theory of meaning in language games." }, "hi": { "text": "लुडविग विटगेंसटाइन के दार्शनिक रूपांतरण के संदर्भ में निम्नलिखित कथनों पर विचार कीजिए:nnकथन-I: 'ट्रैक्टेटस लॉजिको-फिलोसोफिकस' में विटगेंसटाइन का मानना है कि भाषा का सार एक समरूपी तार्किक संरचना के माध्यम से यथार्थ को चित्रित करना है।nकथन-II: 'फिलोसोफिकल इन्वेस्टिगेशन्स' में विटगेंसटाइन चित्र सिद्धांत को बरकरार रखते हुए भाषा-खेलों को शैलीगत भिन्नताओं के रूप में जोड़ते हैं।nnसही विकल्प चुनें:", "options": [ "कथन-I और कथन-II दोनों सत्य हैं", "कथन-I और कथन-II दोनों असत्य हैं", "कथन-I सत्य है, किन्तु कथन-II असत्य है", "कथन-I असत्य है, किन्तु कथन-II सत्य है" ], "explanation": "कथन-I सत्य है क्योंकि प्रारंभिक विटगेंसटाइन वाक्य को तार्किक चित्र मानते हैं। कथन-II असत्य है क्योंकि उत्तरवर्ती विटगेंसटाइन ने चित्र सिद्धांत को खारिज कर दिया।" }, "correct": 2 }, // Question 3: Assertion & Reason Type { "en": { "text": "Assertion (A): J. Krishnamurti rejects all organized religious traditions, gurus, and spiritual authority.nReason (R): Krishnamurti holds that Truth is a pathless land that cannot be reached through any mediated dogma or conditioned method.nnChoose the correct option:", "options": [ "Both A and R true, R explains A", "Both true, R does not explain A", "A true, R false", "A false, R true" ], "explanation": "Both Assertion (A) and Reason (R) are true, and R correctly explains A. In 1929, Krishnamurti declared that 'Truth is a pathless land' and cannot be reached via external authority." }, "hi": { "text": "कथन (A): जे. कृष्णमूर्ति सभी संगठित धार्मिक परंपराओं, गुरुओं और आध्यात्मिक सत्ताओं को खारिज करते हैं।nकारण (R): कृष्णमूर्ति का मानना है कि सत्य एक मार्गहीन भूमि है जिसे किसी मध्यस्थ हठधर्मिता या अनुबंधित पद्धति से प्राप्त नहीं किया जा सकता।nnसही विकल्प चुनें:", "options": [ "A और R दोनों सत्य, R A की व्याख्या करता है", "दोनों सत्य, R व्याख्या नहीं करता", "A सत्य, R असत्य", "A असत्य, R सत्य" ], "explanation": "कथन (A) और कारण (R) दोनों सत्य हैं, तथा R, A की सही व्याख्या करता है।" }, "correct": 0 }, // Question 4: Multi-Select Code Type { "en": { "text": "Which of the following statements regarding Radical and Eco-Feminism are correct?nn(i) Radical feminism asserts that the personal is political, rejecting the traditional public-private split.n(ii) Radical feminism analyzes compulsory heterosexuality and gender roles as tools of male supremacy.n(iii) Ecofeminism links the historical exploitation of nature with the patriarchal subjugation of women.n(iv) Ecofeminism accepts industrial capitalist exploitation provided women share corporate board seats equally.nnSelect the correct code:", "options": [ "(i), (ii), and (iv)", "(ii), (iii), and (iv)", "(i), (iii), and (iv)", "(i), (ii), and (iii)" ], "explanation": "Statements (i), (ii), and (iii) are correct. Statement (iv) is false because ecofeminism opposes corporate capitalist exploitation of nature." }, "hi": { "text": "आमूल-परिवर्तनवादी और पारिस्थितिक नारीवाद के संदर्भ में निम्नलिखित में से कौन से कथन सही हैं?nn(i) आमूल-परिवर्तनवादी नारीवाद दावा करता है कि 'व्यक्तिगत ही राजनीतिक है' और सार्वजनिक-निजी विभाजन को नकारता है।n(ii) आमूल-परिवर्तनवादी नारीवाद अनिवार्य विषमलैंगिकता और सामाजिक लैंगिक भूमिकाओं को पुरुष वर्चस्व का साधन मानता है।n(iii) पारिस्थितिक नारीवाद प्रकृति के दोहन को महिलाओं के पितृसत्तात्मक उत्पीड़न से जोड़ता है।n(iv) पारिस्थितिक नारीवाद औद्योगिक पूंजीवादी दोहन को स्वीकार करता है यदि महिलाओं को कॉर्पोरेट बोर्ड में समान सीटें मिलें।nnसही कोड का चयन करें:", "options": [ "(i), (ii), और (iv)", "(ii), (iii), और (iv)", "(i), (iii), और (iv)", "(i), (ii), और (iii)" ], "explanation": "कथन (i), (ii) और (iii) सही हैं। कथन (iv) असत्य है क्योंकि पारिस्थितिक नारीवाद प्रकृति के औद्योगिक दोहन का विरोध करता है।" }, "correct": 3 }, // Question 5: Direct Concept Type { "en": { "text": "In Bertrand Russell's Theory of Definite Descriptions, how is the denoting proposition 'The present King of France is bald' logically analyzed to resolve its truth-value puzzle?", "options": [ "As a complex existential conjunction asserting existence, uniqueness, and predication", "As a subjective private psychological impression devoid of logical syntax", "As an unconditioned synthetic apriori judgment in Kantian terms", "As a non-cognitive emotional utterance expressing speaker disapproval" ], "explanation": "Russell analyzes the sentence into three logical assertions: existence, uniqueness, and predication. Since existence fails, the statement evaluates logically as false." }, "hi": { "text": "बर्ट्रेंड रसेल के निश्चित विवरण के सिद्धांत में, 'फ्रांस का वर्तमान राजा गंजा है' वाक्य के सत्य-मूल्य की पहेली को सुलझाने के लिए इसका तार्किक विश्लेषण कैसे किया जाता है?", "options": [ "अस्तित्व, अनन्यता और विधेयन की पुष्टि करने वाले एक जटिल तार्किक संयोजन के रूप में", "तार्किक वाक्य-विन्यास से रहित एक व्यक्तिगत मनोवैज्ञानिक धारणा के रूप में", "कांटीय संदर्भ में एक अनपेक्षित संश्लेषणात्मक प्रागनुभविक निर्णय के रूप में", "वक्ता की नापसंदगी को व्यक्त करने वाले एक गैर-ज्ञानात्मक भावनात्मक कथन के रूप में" ], "explanation": "रसेल इस वाक्य को तीन तार्किक वाक्यों में विभाजित करते हैं: अस्तित्व, अनन्यता और विधेयन। पहला घटक असत्य होने से पूरा वाक्य असत्य सिद्ध होता है।" }, "correct": 0 } ] }; // Localizer configuration for dynamic UI buttons const langButtonLocalizer = { en: { prev: ` Prev`, clear: `Clear`, mark: `Review`, saveNext: `Save & Next `, submit: `Submit Examination Key Console ` }, hi: { prev: ` पिछला`, clear: `हटाएँ`, mark: `चिन्हित`, saveNext: `उत्तर सहेजें और अगला `, submit: `परीक्षा जमा करें ` } }; // Dynamic storage key based on current URL path const dynamicCacheStorageKey = `cbt_state_live_store_${window.location.pathname}`; let currentQuestionIndex = 0; let userAnswers = {}; let questionStatus = []; let currentLanguage = 'en'; let totalSecondsRemaining = 3600; let countdownTimerInterval = null; let autoSaveInterval = null; let bookmarkedQuestions = new Set(); let bootstrapRecoveryModalInstance = null; let bootstrapTimeOutModalInstance = null; const NEGATIVE_MARKING_VAL = 0.0; const screenInstructions = document.getElementById('screen-instructions'); const customStickyHeaderBar = document.getElementById('customStickyHeaderBar'); const examWorkspaceLayout = document.getElementById('examWorkspaceLayout'); const screenSubmission = document.getElementById('screen-submission'); const screenProcessing = document.getElementById('screen-processing'); const screenResult = document.getElementById('screen-result'); document.getElementById('declarationCheckbox').addEventListener('change', (e) => { const btn = document.getElementById('btnReadyToBegin'); e.target.checked ? btn.classList.remove('disabled') : btn.classList.add('disabled'); }); document.getElementById('btnReadyToBegin').addEventListener('click', () => { currentLanguage = document.getElementById('defaultLanguageSelect').value; document.getElementById('examLangToggle').value = currentLanguage; const cachedState = localStorage.getItem(dynamicCacheStorageKey); if (cachedState) { bootstrapRecoveryModalInstance = new bootstrap.Modal(document.getElementById('sessionRecoveryModal')); bootstrapRecoveryModalInstance.show(); document.getElementById('btnModalAcceptRecovery').onclick = function() { const parsing = JSON.parse(cachedState); userAnswers = parsing.answers; questionStatus = parsing.status; totalSecondsRemaining = parsing.time; currentQuestionIndex = parsing.index; if(parsing.bookmarks) bookmarkedQuestions = new Set(parsing.bookmarks); bootstrapRecoveryModalInstance.hide(); initializeActiveWorkspaceConsole(); }; document.getElementById('btnModalRejectRecovery').onclick = function() { localStorage.removeItem(dynamicCacheStorageKey); setupFreshCbtStateObject(); bootstrapRecoveryModalInstance.hide(); initializeActiveWorkspaceConsole(); }; } else { setupFreshCbtStateObject(); initializeActiveWorkspaceConsole(); } }); function setupFreshCbtStateObject() { userAnswers = {}; questionStatus = new Array(activeTestData.questions.length).fill('unvisited'); questionStatus[0] = 'not-answered'; totalSecondsRemaining = activeTestData.duration * 60; currentQuestionIndex = 0; bookmarkedQuestions.clear(); } function initializeActiveWorkspaceConsole() { screenInstructions.classList.add('hidden-screen'); customStickyHeaderBar.classList.remove('hidden-screen'); examWorkspaceLayout.classList.remove('hidden-screen'); window.scrollTo({ top: 0, behavior: 'instant' }); countdownTimerInterval = setInterval(() => { if(totalSecondsRemaining { const statePackage = { answers: userAnswers, status: questionStatus, time: totalSecondsRemaining, index: currentQuestionIndex, bookmarks: Array.from(bookmarkedQuestions) }; localStorage.setItem(dynamicCacheStorageKey, JSON.stringify(statePackage)); }, 5000); } function triggerTimeOutPopUpSequence() { clearInterval(autoSaveInterval); examWorkspaceLayout.classList.add('hidden-screen'); customStickyHeaderBar.classList.add('hidden-screen'); screenSubmission.classList.add('hidden-screen'); bootstrapTimeOutModalInstance = new bootstrap.Modal(document.getElementById('timeOutAutoSubmitModal')); bootstrapTimeOutModalInstance.show(); setTimeout(() => { bootstrapTimeOutModalInstance.hide(); autoSubmitExamProcedure(); }, 3500); } function formatQuestionText(text) { if (!text) return ""; return text.replace(/n/g, '
'); } function renderQuestionStateEngine() { const rawQuestion = activeTestData.questions[currentQuestionIndex]; const qData = rawQuestion[currentLanguage]; const imgContainer = document.getElementById('targetQuestionImageContainer'); const imgTag = document.getElementById('targetQuestionImg'); if (rawQuestion.image && rawQuestion.image.trim() !== "") { imgTag.src = rawQuestion.image; imgContainer.classList.remove('d-none'); } else { imgTag.src = ""; imgContainer.classList.add('d-none'); } document.getElementById('currentQNum').innerText = currentQuestionIndex + 1; document.getElementById('targetQuestionText').innerHTML = formatQuestionText(qData.text); const container = document.getElementById('targetOptionsArea'); container.innerHTML = ''; qData.options.forEach((opt, idx) => { const optionCard = document.createElement('div'); optionCard.className = `option-container ${userAnswers[currentQuestionIndex] === idx ? 'selected' : ''}`; optionCard.innerHTML = ` `; optionCard.addEventListener('click', () => { optionCard.querySelector('input').checked = true; document.querySelectorAll('.option-container').forEach(c => c.classList.remove('selected')); optionCard.classList.add('selected'); userAnswers[currentQuestionIndex] = idx; renderPaletteMatrix(); }); container.appendChild(optionCard); }); const currentLabels = langButtonLocalizer[currentLanguage]; document.getElementById('btnPrev').innerHTML = currentLabels.prev; document.getElementById('btnClear').innerHTML = currentLabels.clear; document.getElementById('btnMarkReview').innerHTML = currentLabels.mark; document.getElementById('btnSaveNext').innerHTML = currentLabels.saveNext; document.getElementById('btnSubmitTestTriggerMobile').innerHTML = currentLabels.submit; document.getElementById('btnSubmitTestTriggerDesktop').innerHTML = currentLabels.submit; const bkmk = document.getElementById('btnBookmark'); bkmk.innerHTML = bookmarkedQuestions.has(currentQuestionIndex) ? ` Bookmarked` : ` Bookmark`; document.getElementById('btnPrev').disabled = (currentQuestionIndex === 0); } function renderPaletteMatrix() { const grid = document.getElementById('paletteGrid'); grid.innerHTML = ''; let counts = { unvisited: 0, 'not-answered': 0, answered: 0, marked: 0, 'ans-marked': 0 }; activeTestData.questions.forEach((q, idx) => { const state = questionStatus[idx]; counts[state]++; const btn = document.createElement('div'); btn.className = `palette-btn p-${state}`; btn.innerText = idx + 1; if(currentQuestionIndex === idx) btn.style.boxShadow = "0 0 0 3px var(--primary-accent)"; btn.addEventListener('click', () => { if(questionStatus[idx] === 'unvisited') questionStatus[idx] = 'not-answered'; currentQuestionIndex = idx; renderQuestionStateEngine(); renderPaletteMatrix(); window.scrollTo({ top: 0, behavior: 'instant' }); }); grid.appendChild(btn); }); document.querySelector('.id-count-unvisited').innerText = counts['unvisited']; document.querySelector('.id-count-not-answered').innerText = counts['not-answered']; document.querySelector('.id-count-answered').innerText = counts['answered']; document.querySelector('.id-count-marked').innerText = counts['marked']; document.querySelector('.id-count-ansmarked').innerText = counts['ans-marked']; } document.getElementById('examLangToggle').addEventListener('change', (e) => { currentLanguage = e.target.value; renderQuestionStateEngine(); }); document.getElementById('btnSaveNext').addEventListener('click', () => { if(userAnswers[currentQuestionIndex] !== undefined) { questionStatus[currentQuestionIndex] = (questionStatus[currentQuestionIndex] === 'marked' || questionStatus[currentQuestionIndex] === 'ans-marked') ? 'ans-marked' : 'answered'; } else { if(questionStatus[currentQuestionIndex] !== 'marked') questionStatus[currentQuestionIndex] = 'not-answered'; } if(currentQuestionIndex { if(currentQuestionIndex > 0) { currentQuestionIndex--; renderQuestionStateEngine(); renderPaletteMatrix(); } }); document.getElementById('btnClear').addEventListener('click', () => { delete userAnswers[currentQuestionIndex]; questionStatus[currentQuestionIndex] = (questionStatus[currentQuestionIndex] === 'ans-marked') ? 'marked' : 'not-answered'; renderQuestionStateEngine(); renderPaletteMatrix(); }); document.getElementById('btnMarkReview').addEventListener('click', () => { questionStatus[currentQuestionIndex] = (userAnswers[currentQuestionIndex] !== undefined) ? 'ans-marked' : 'marked'; if(currentQuestionIndex { bookmarkedQuestions.has(currentQuestionIndex) ? bookmarkedQuestions.delete(currentQuestionIndex) : bookmarkedQuestions.add(currentQuestionIndex); renderQuestionStateEngine(); }); const triggerSubmissionSummaryModal = () => { document.getElementById('sm-total').innerText = activeTestData.questions.length; document.getElementById('sm-answered').innerText = questionStatus.filter(s => s === 'answered' || s === 'ans-marked').length; document.getElementById('sm-marked').innerText = questionStatus.filter(s => s === 'marked' || s === 'ans-marked').length; document.getElementById('sm-unattempted').innerText = questionStatus.filter(s => s === 'unvisited' || s === 'not-answered').length; examWorkspaceLayout.classList.add('hidden-screen'); screenSubmission.classList.remove('hidden-screen'); window.scrollTo({ top: 0, behavior: 'instant' }); }; document.getElementById('btnSubmitTestTriggerMobile').addEventListener('click', triggerSubmissionSummaryModal); document.getElementById('btnSubmitTestTriggerDesktop').addEventListener('click', triggerSubmissionSummaryModal); document.getElementById('btnCancelSubmit').addEventListener('click', () => { screenSubmission.classList.add('hidden-screen'); examWorkspaceLayout.classList.remove('hidden-screen'); }); document.getElementById('btnFinalSubmitAction').addEventListener('click', () => { screenSubmission.classList.add('hidden-screen'); customStickyHeaderBar.classList.add('hidden-screen'); screenProcessing.classList.remove('hidden-screen'); setTimeout(() => { screenProcessing.classList.add('hidden-screen'); autoSubmitExamProcedure(); }, 2500); }); function autoSubmitExamProcedure() { clearInterval(countdownTimerInterval); clearInterval(autoSaveInterval); localStorage.removeItem(dynamicCacheStorageKey); examWorkspaceLayout.classList.add('hidden-screen'); customStickyHeaderBar.classList.add('hidden-screen'); screenSubmission.classList.add('hidden-screen'); screenProcessing.classList.add('hidden-screen'); const MARKS_PER_QUESTION = 2.0; let correctHits = 0, wrongHits = 0, unattemptedCount = 0; activeTestData.questions.forEach((q, idx) => { if(userAnswers[idx] !== undefined) { parseInt(userAnswers[idx]) === q.correct ? correctHits++ : wrongHits++; } else { unattemptedCount++; } }); let scoreValue = (correctHits * MARKS_PER_QUESTION) - (wrongHits * NEGATIVE_MARKING_VAL); let totalQuestionsCount = activeTestData.questions.length; let maxPossibleScore = totalQuestionsCount * MARKS_PER_QUESTION; let accuracyRate = (correctHits + wrongHits) > 0 ? Math.round((correctHits / (correctHits + wrongHits)) * 100) : 0; let obtainedPercentage = maxPossibleScore > 0 ? ((scoreValue / maxPossibleScore) * 100).toFixed(2) : "0.00"; let totalTimeAllocatedSecs = activeTestData.duration * 60; let computedTakenTimeSecs = totalTimeAllocatedSecs - totalSecondsRemaining; if(computedTakenTimeSecs 0 ? (computedTakenTimeSecs / totalQuestionsCount).toFixed(1) : 0; document.getElementById('res-score').innerText = scoreValue.toFixed(2); document.getElementById('res-accuracy').innerText = `${accuracyRate}%`; document.getElementById('res-correct').innerText = correctHits; document.getElementById('res-wrong').innerText = wrongHits; document.getElementById('res-obtained-percentage-val').innerText = `${obtainedPercentage}%`; document.getElementById('res-unattempted-count-val').innerText = unattemptedCount; document.getElementById('res-meta-total').innerText = totalQuestionsCount; document.getElementById('res-meta-time').innerText = formattedTakenTime; document.getElementById('res-meta-negative').innerText = NEGATIVE_MARKING_VAL > 0 ? NEGATIVE_MARKING_VAL.toFixed(2) : '0'; document.getElementById('res-meta-avgtime').innerText = `${averageSpeedPerQuestion}s`; const fb = document.getElementById('weaknessDetectionText'); fb.innerHTML = wrongHits > correctHits ? "Needs Improvement: High error count noted. Review step-by-step solutions key panels closely." : "Excellent Track: Concept validation accuracy indices sustained inside target parameters."; const revContainer = document.getElementById('reviewQuestionsContainer'); revContainer.innerHTML = ''; activeTestData.questions.forEach((q, idx) => { const isAttempted = userAnswers[idx] !== undefined; const selectedIdx = isAttempted ? parseInt(userAnswers[idx]) : null; const isCorrect = isAttempted && selectedIdx === q.correct; const isBookmarked = bookmarkedQuestions.has(idx); const div = document.createElement('div'); div.className = "card p-4 border rounded-3 shadow-sm bg-white mb-3"; let reviewImgMarkup = (q.image && q.image.trim() !== "") ? `
Review Illustration Graphic
` : ""; let userSelectionMarkup = ""; if (isAttempted) { const userChoiceEn = q.en.options[selectedIdx]; const userChoiceHi = q.hi.options[selectedIdx]; const borderClass = isCorrect ? 'border-success text-success' : 'border-danger text-danger'; userSelectionMarkup = `
Your Choice / आपका उत्तर: ${userChoiceEn} / ${userChoiceHi}
`; } else { userSelectionMarkup = `
Your Choice / आपका उत्तर: Not Attempted / कोई विकल्प नहीं चुना गया
`; } let explanationMarkup = ""; if (q.en.explanation || q.hi.explanation) { explanationMarkup = `
Solution / व्याख्या: ${q.en.explanation ? `EN: ${q.en.explanation}` : ''} ${q.hi.explanation ? `HI: ${q.hi.explanation}` : ''}
`; } let bookmarkBadge = isBookmarked ? ` Bookmarked` : ''; div.innerHTML = `
Question ${idx + 1} Status: ${!isAttempted ? 'Unattempted' : (isCorrect ? 'Correct' : 'Incorrect')}
${bookmarkBadge}
${reviewImgMarkup}

EN: ${formatQuestionText(q.en.text)}

HI: ${formatQuestionText(q.hi.text)}

${userSelectionMarkup}
Correct Choice: ${q.en.options[q.correct]} / ${q.hi.options[q.correct]}
${explanationMarkup} `; revContainer.appendChild(div); }); screenResult.classList.remove('hidden-screen'); window.scrollTo({ top: 0, behavior: 'instant' }); const chartContainer = document.getElementById('resultChart'); if (chartContainer) { const ctx = chartContainer.getContext('2d'); new Chart(ctx, { type: 'doughnut', data: { labels: ['Correct', 'Incorrect', 'Unattempted'], datasets: [{ data: [correctHits, wrongHits, unattemptedCount], backgroundColor: ['#22c55e', '#ef4444', '#94a3b8'], borderWidth: 0 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { position: 'bottom', labels: { boxWidth: 12, padding: 15, font: { size: 11, weight: '500' } } } } } }); } } window.addEventListener('beforeunload', (e) => { if (!examWorkspaceLayout.classList.contains('hidden-screen') && screenResult.classList.contains('hidden-screen')) { e.preventDefault(); e.returnValue = 'Active session trace verification is operational.'; } });
✕

ANSS Academy App

Download our app for an ad-free experience.

Google Play Install Now
App icon
ANSS ACADEMY
Get the full experience in the app