PageSourceSearch

https://www.desent.io/_next/static/chunks/pages/coding-test-qa-6fcb975a14eda807.js

js desent.io collected 2026-10-07 03:05:38 UTC 14,018 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2803],{84913:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return m},default:function(){return f}});var s=n(59499),i=n(50029),o=n(64687),r=n.n(o),a=n(9008),c=n.n(a),l=n(11163),d=n(67294),u=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=[{question:"What is the correct order of STLC phases?",options:["Requirement Analysis \u2192 Test Planning \u2192 Test Design \u2192 Environment Setup \u2192 Test Execution \u2192 Test Closure","Test Planning \u2192 Requirement Analysis \u2192 Test Execution \u2192 Test Design \u2192 Test Closure \u2192 Environment Setup","Test Design \u2192 Test Planning \u2192 Requirement Analysis \u2192 Test Execution \u2192 Environment Setup \u2192 Test Closure","Requirement Analysis \u2192 Test Execution \u2192 Test Planning \u2192 Test Closure \u2192 Test Design \u2192 Environment Setup"],correct:0},{question:"Which testing level verifies that individually tested modules work correctly when combined?",options:["Unit Testing","Integration Testing","System Testing","Acceptance Testing"],correct:1},{question:"A company logo has a typo on a rarely visited 'About Us' page. How would you classify this?",options:["High Severity, High Priority","High Severity, Low Priority","Low Severity, High Priority","Low Severity, Low Priority"],correct:3},{question:"Which of the following is NOT a standard component of a well-written test case?",options:["Preconditions","Expected Result","Source code of the feature under test","Steps to execute"],correct:2},{question:"What is the primary purpose of a Requirements Traceability Matrix (RTM)?",options:["To track developer productivity","To ensure every requirement is covered by at least one test case","To estimate the project budget","To assign bugs to developers"],correct:1},{question:"An input field accepts ages 18\u201360. Using Equivalence Class Partitioning, which set of test values best covers all partitions?",options:["18, 30, 60","17, 35, 61","0, 25, 100","15, 40, 65"],correct:1},{question:"What is the key difference between Smoke Testing and Sanity Testing?",options:["Smoke testing is done after every bug fix; sanity testing is done on initial builds","Smoke testing verifies critical functionalities of a new build; sanity testing verifies specific fixes or functionality after changes","They are the same thing with different names","Smoke testing is automated; sanity testing is always manual"],correct:1},{question:"In Risk-Based Testing, which factor combination should be tested FIRST?",options:["Low likelihood of failure, low business impact","High likelihood of failure, low business impact","High likelihood of failure, high business impact","Low likelihood of failure, high business impact"],correct:2},{question:"In integration testing, what is the role of a 'stub'?",options:["It replaces a module that calls the module under test","It replaces a module that is called by the module under test","It runs automated regression tests","It generates test data for the database"],correct:1},{question:"What does 'Regression Testing' primarily aim to verify?",options:["That new features work as specified","That previously working functionality still works after changes","That the system meets performance benchmarks","That the UI matches the design mockups"],correct:1},{question:"Which technique uses a table of combinations of inputs to ensure all pairs of input parameters are tested?",options:["Boundary Value Analysis","Decision Table Testing","Pairwise Testing","State Transition Testing"],correct:2},{question:"What is the main goal of User Acceptance Testing (UAT)?",options:["To find as many bugs as possible before release","To verify the system meets business requirements from the end user's perspective","To test the system under heavy load","To check code coverage of unit tests"],correct:1},{question:"Which of the following best describes 'Boundary Value Analysis'?",options:["Testing only the middle values of an input range","Testing at the edges (minimum, maximum, just inside, just outside) of input ranges","Testing all possible input combinations","Testing with random input values"],correct:1},{question:"What is the difference between Verification and Validation?",options:["Verification checks the product is built correctly; Validation checks the right product is built","They mean the same thing in software testing","Verification is done by developers; Validation is done by managers","Verification is dynamic testing; Validation is static testing"],correct:0},{question:"Which type of testing is performed WITHOUT knowledge of the internal 
1code structure?",options:["White-box Testing","Grey-box Testing","Black-box Testing","Glass-box Testing"],correct:2},{question:"What is a 'Test Harness'?",options:["A document listing all test cases for a project","A collection of software and test data used to test a program unit by running it under varying conditions","A meeting where test results are reviewed","A metric that measures code coverage percentage"],correct:1},{question:"When should testing activities ideally begin in the SDLC?",options:["After development is complete","During the requirements phase","Only during the dedicated testing phase","After deployment to production"],correct:1},{question:"What does 'Defect Life Cycle' refer to?",options:["The time it takes to fix a bug","The journey of a defect from discovery to closure through various states","The number of bugs found per sprint","The process of writing test cases"],correct:1},{question:"Which metric indicates the percentage of requirements covered by test cases?",options:["Code Coverage","Defect Density","Test Coverage","Cyclomatic Complexity"],correct:2},{question:"What is 'Exploratory Testing'?",options:["Testing performed strictly according to written test cases","Simultaneous test design, execution, and learning, where the tester actively explores the application","Testing only the main user flows","Automated testing using scripts"],correct:1}],m=!0;function f(){var e=(0,l.useRouter)().query.id,t=(0,d.useState)({}),n=t[0],o=t[1],a=(0,d.useState)(!1),p=a[0],m=a[1],f=(0,d.useState)(""),x=f[0],y=f[1],b=(0,d.useState)(""),v=b[0],w=b[1],T=(0,d.useState)(!1),j=T[0],q=T[1],k=Object.keys(n).length===h.length,S=h.reduce((function(e,t,s){return e+(n[s]===t.correct?1:0)}),0),N=Math.round(S/h.length*100),A=function(){var t=(0,i.Z)(r().mark((function t(s){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s.preventDefault(),q(!0),i=h.map((function(e,t){var s=n[t],i=s===e.correct;return'<tr>\n          <td style="padding:6px 8px;border:1px solid #ddd;">'.concat(t+1,'</td>\n          <td style="padding:6px 8px;border:1px solid #ddd;">').concat(e.question,'</td>\n          <td style="padding:6px 8px;border:1px solid #ddd;">').concat(e.options[s]||"\u2014",'</td>\n          <td style="padding:6px 8px;border:1px solid #ddd;color:').concat(i?"green":"red",';font-weight:bold;">').concat(i?"\u2713":"\u2717","</td>\n        </tr>")})).join(""),!e){t.next=11;break}return t.prev=4,t.next=7,fetch("/api/mark-coding-test-submitted",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({applicationId:e,quizScore:S,quizTotal:h.length})});case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(4);case 11:return t.prev=11,t.next=14,fetch("https://n8n.monis.rent/webhook/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to:"[email protected]",subject:"BOT_ACTION QA Quiz Submission \u2013 ".concat(x," (").concat(S,"/").concat(h.length,")"),html:"\n            <h2>QA Quiz Submission</h2>\n            <p><strong>Name:</strong> ".concat(x,"</p>\n            <p><strong>Email:</strong> ").concat(v,"</p>\n            ").concat(e?"<p><strong>Application ID:</strong> ".concat(e,"</p>"):"","\n            <h3>Score: ").concat(S," / ").concat(h.length," (").concat(N,'%)</h3>\n            <table style="border-collapse:collapse;width:100%;font-size:13px;">\n              <tr style="background:#f5f5f5;">\n                <th style="padding:6px 8px;border:1px solid #ddd;">#</th>\n                <th style="padding:6px 8px;border:1px solid #ddd;">Question</th>\n                <th style="padding:6px 8px;border:1px solid #ddd;">Answer</th>\n                <th style="padding:6px 8px;border:1px solid #ddd;">Result</th>\n              </tr>\n              ').concat(i,"\n            </table>\n          "),bcc:"",url:window.location.origin})});case 14:t.next=18;break;case 16:t.prev=16,t.t1=t.catch(11);case 18:m(!0),q(!1);case 20:case"end":return t.stop()}}),t,null,[[4,9],[11,16]])})));return function(e){return t.apply(this,arguments)}}();return(0,u.jsxs)("div",{className:"bg-gray-900",children:[(0,u.jsxs)(c(),{children:[(0,u.jsx)("title",{children:"QA Knowledge Quiz | Desent Solutions"}),(0,u.jsx)("meta",{name:"description",content:"QA Engineer assessment \u2014 20 multiple choice questions"},"description"),(0,u.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,u.jsx)("div",{className:"global-container pt-32 pb-20 px-4 sm:px-6 lg:pt-40 lg:px-8",children:(0,u.jsxs)("div",{className:"max-w-3xl",children:[(0,u.jsx)("p",{className:"text-sm text-prime-100 font-medium tracking-wide uppercase mb-2",children:"Desent Solutions \u2013 QA Assessment"}),(0,u.jsx)("h1",{className:"text-4xl font-bold text-white sm:text-5xl mb-4",children:"QA Knowledge Quiz"}),(0,u.jsx)("p",{className:"text-lg text-gray-300 mb-10",children:"Answer all 20 questions below and submit to see your score."}),p?(0,u.jsxs)("div",{className:"bg-gray-800 rounded-2xl p-8 ring-1 ring-gray-700 text-center",children:[(0,u.jsxs)("div",{className:"text-6xl font-bold mb-4 ".concat(N>=70?"text-green-400":N>=50?"text-yellow-400":"text-red-400"),children:[S," / ",h.length]}),(0,u.jsxs)("p",{className:"text-2xl text-white font-bold mb-2",children:[N,"%"]}),(0,u.jsx)("p",{className:"text-gray-300 mb-8",children:N>=80?"Excellent work! You have a strong understanding of QA fundamentals.":N>=60?"Good effort! You have a solid foundation but there's room for improvement.":"Keep studying! Review QA fundamentals and try again."}),(0,u.jsx)("div",{className:"space-y-4 text-left",children:h.map((function(e,t){var s=n[t],i=s===e.correct;return(0,u.jsxs)("div",{className:"rounded-xl p-4 ring-1 ".concat(i?"bg-green-900/20 ring-green-500/30":"bg-red-900/20 ring-red-500/30"),children:[(0,u.jsxs)("p",{className:"text-white font-bold text-sm mb-1",children:[t+1,". ",e.question]}),(0,u.jsxs)("p",{className:"text-sm ".concat(i?"text-green-400":"text-red-400"),children:["Your answer: ",e.options[s]]}),!i&&(0,u.jsxs)("p",{className:"text-sm text-green-400 mt-1",children:["Correct answer: ",e.options[e.correct]]})]},t)}))})]}):(0,u.jsxs)("form",{onSubmit:A,children:[(0,u.jsx)("div",{className:"space-y-6 mb-10",children:h.map((function(e,t){return(0,u.jsxs)("div",{className:"bg-gray-800 rounded-2xl p-5 ring-1 ring-gray-700",children:[(0,u.jsxs)("div",{className:"flex gap-3 mb-4",children:[(0,u.jsx)("div",{className:"shrink-0 w-7 h-7 rounded-full bg-prime-100 text-gray-900 font-bold flex items-center justify-center text-sm",children:t+1}),(0,u.jsx)("p",{className:"text-white font-bold",children:e.question})]}),(0,u.jsx)("div",{className:"space-y-2 ml-10",children:e.options.map((function(e,i){return(0,u.jsxs)("label",{className:"flex items-center gap-3 p-3 rounded-lg cursor-pointer transition-colors ".concat(n[t]===i?"bg-prime-100/10 ring-1 ring-prime-100/40":"hover:bg-gray-900"),children:[(0,u.jsx)("input",{type:"radio",name:"q".concat(t),checked:n[t]===i,onChange:function(){return o((function(e){return g(g({},e),{},(0,s.Z)({},t,i))}))},className:"h-4 w-4 text-prime-100 bg-gray-900 border-gray-700 focus:ring-prime-100"}),(0,u.jsx)("span",{className:"text-sm ".concat(n[t]===i?"text-white":"text-gray-300"),children:e})]},i)}))})]},t)}))}),(0,u.jsxs)("div",{className:"bg-gray-800 rounded-2xl p-6 ring-1 ring-gray-700 mb-6 space-y-4",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-300 mb-1.5",children:"Name"}),(0,u.jsx)("input",{id:"name",type:"text",required:!0,value:x,onChange:function(e){return y(e.target.value)},placeholder:"Your full name",className:"w-full bg-gray-900 ring-1 ring-gray-700 rounded-lg px-4 py-3 text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-prime-100"})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-1.5",children:"Email"}),(0,u.jsx)("input",{id:"email",type:"email",required:!0,value:v,onCh
1ange:function(e){return w(e.target.value)},placeholder:"[email protected]",className:"w-full bg-gray-900 ring-1 ring-gray-700 rounded-lg px-4 py-3 text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-prime-100"})]})]}),(0,u.jsx)("button",{type:"submit",disabled:!k||j,className:"w-full bg-prime-100 hover:bg-prime-200 text-gray-900 font-bold px-6 py-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:j?"Submitting...":k?"Submit Quiz":"Answer all questions (".concat(Object.keys(n).length,"/").concat(h.length,")")})]})]})})]})}},42577:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coding-test-qa",function(){return n(84913)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=42577,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.