How to calculate Phase 11 Answer Key marks

Code to Calculate SSC Selection Post Phase 11 marks

Steps

1. Open Answer key page
2. Right click on the page and select inspect.
3. Select the Console option
4. Copy and paste the code given below.
5. Press Enter to check your result.

Code

for(var totalMarks=0,s=0;s<4;s++){for(var right=0,notAttempted=0,bonus=0,i=25*s;i<25*s+25;i++){" -- "===document.getElementsByClassName("question-pnl")[i].getElementsByClassName("bold")[5].textContent&&notAttempted++;try{document.getElementsByClassName("question-pnl")[i].getElementsByClassName("rightAns")[0].textContent[0]===document.getElementsByClassName("question-pnl")[i].getElementsByClassName("bold")[5].textContent&&right++}catch{bonus++}}wrong=25-notAttempted-right-bonus,marks=2*(right+bonus)-.5*wrong,totalMarks+=marks;var sub=s+1;console.log("Subject_1 : "+sub+"\nAttempted : "+(25-notAttempted)+"\nRight Answers : "+right+"\nWrong Answers : "+wrong+"\nBonus : "+bonus+"\nMarks : "+marks)}console.log("\nTotal Marks : "+totalMarks);

No comments

Powered by Blogger.