WBBSE Mathematics AI exam generator class 5 to class 10
This content covers WBBSE Math AI Exam Generator in detail.
WBBSE Math Question AI Exam System – Generate Question Paper, Answer Key & Model Solution
{
“@context”: “https://schema.org”,
“@type”: “WebApplication”,
“name”: “WBBSE Math AI Exam System”,
“url”: “https://allbesttool.com/wbbse-math-question-ai-exam-system/”,
“description”: “AI Powered WBBSE Math Question Paper, Answer Key and Model Solution Generator with Class-wise and Chapter-wise structure.”,
“applicationCategory”: “EducationalApplication”,
“operatingSystem”: “All”,
“creator”: {
“@type”: “Organization”,
“name”: “All Best Tool”,
“url”: “https://allbesttool.com/”
}
}
body{font-family:Segoe UI;margin:0;background:#e8f5e9}
.container{max-width:1100px;margin:auto;padding:20px}
.card{background:#fff;padding:25px;border-radius:12px;box-shadow:0 5px 20px rgba(0,0,0,.1)}
select,input,button{width:100%;padding:10px;margin:8px 0;border-radius:6px;border:1px solid #ccc}
button{background:#FF4500;color:#fff;border:none;cursor:pointer;font-weight:600}
button:hover{background:#1b5e20}
.section{margin-top:20px;background:#f9f9f9;padding:15px;border-radius:8px;white-space:pre-wrap;border-left:5px solid #2e7d32}
.progress-bar-bg{background:#ddd;border-radius:20px;overflow:hidden;height:20px;position:relative;margin-top:10px}
.progress-bar-fill{height:100%;width:0%;background:linear-gradient(90deg,#00b09b,#96c93d,#11998e,#38ef7d);background-size:400% 400%;animation:move 3s ease infinite;transition:width .3s}
@keyframes move{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.progress-text{position:absolute;width:100%;text-align:center;font-size:13px;font-weight:600;color:#000;top:0;line-height:20px}
WBBSE Math AI Question Answer Generator (Class 5 to 10)
English
Bengali
Hindi
Marathi
Gujarati
Tamil
Telugu
Kannada
Malayalam
Punjabi
Class 5
Class 6
Class 7
Class 8
Class 9
Class 10
Easy
Medium
Hard
30
50
80
100
0%
Question Paper
Answer Key
Model Solution
const API_KEY=”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″;
let savedPaper=””;
let progressInterval;
const syllabus={
“Class 5”:[“Large Numbers”,”Fractions”,”Decimals”,”Geometry Basics”,”Perimeter and Area”],
“Class 6”:[“Integers”,”Fractions and Decimals”,”Algebra”,”Ratio and Proportion”,”Mensuration”],
“Class 7”:[“Rational Numbers”,”Linear Equations”,”Triangles”,”Data Handling”,”Simple Interest”],
“Class 8”:[“Algebraic Expressions”,”Linear Equations in One Variable”,”Understanding Quadrilaterals”,”Statistics”,”Mensuration”],
“Class 9”:[“Number Systems”,”Polynomials”,”Linear Equations in Two Variables”,”Triangles”,”Surface Areas and Volumes”],
“Class 10”:[“Real Numbers”,”Quadratic Equations”,”Arithmetic Progressions”,”Trigonometry”,”Coordinate Geometry”]
};
function loadChapters(){
let cls=document.getElementById(“class”).value;
let ch=document.getElementById(“chapter”);
ch.innerHTML=””;
syllabus[cls].forEach(c=>{
let opt=document.createElement(“option”);
opt.textContent=c;
ch.appendChild(opt);
});
}
loadChapters();
function cleanAIText(text){
return text.replace(/[*#\-]{1,}/g,””).trim();
}
function getDistribution(marks){
if(marks==30) return {mcq:{q:5,m:1}, short:{q:5,m:2}, long:{q:3,m:5}};
if(marks==50) return {mcq:{q:10,m:1}, short:{q:5,m:4}, long:{q:4,m:5}};
if(marks==80) return {mcq:{q:15,m:1}, short:{q:10,m:3}, long:{q:5,m:7}};
if(marks==100) return {mcq:{q:20,m:1}, short:{q:10,m:4}, long:{q:6,m:10}};
}
function startProgress(){
let progress=0;
clearInterval(progressInterval);
progressInterval=setInterval(()=>{
if(progressupdateProgress(0),1000);
}
function updateProgress(value){
document.getElementById(“progressFill”).style.width=value+”%”;
document.getElementById(“progressText”).innerText=value+”%”;
}
async function callAI(prompt){
startProgress();
try{
let response=await fetch(“https://openrouter.ai/api/v1/chat/completions”,{
method:”POST”,
headers:{
“Authorization”:”Bearer “+API_KEY,
“Content-Type”:”application/json”
},
body:JSON.stringify({
model:”openai/gpt-4o-mini”,
temperature:0.1,
messages:[{role:”user”,content:prompt}]
})
});
let data=await response.json();
completeProgress();
return cleanAIText(data.choices[0].message.content);
}catch(e){
completeProgress();
return “AI error”;
}
}
async function generatePaper(){
let marks=parseInt(document.getElementById(“marks”).value);
let dist=getDistribution(marks);
let cls=document.getElementById(“class”).value;
let chapter=document.getElementById(“chapter”).value;
let difficulty=document.getElementById(“difficulty”).value;
let language=document.getElementById(“language”).value;
let prompt=`Create WBBSE Mathematics question paper in ${language}.
Class ${cls}
Chapter ${chapter}
Difficulty ${difficulty}
Full Marks ${marks}
SECTION A ${dist.mcq.q} MCQ ${dist.mcq.m} marks each
SECTION B ${dist.short.q} Short ${dist.short.m} marks each
SECTION C ${dist.long.q} Long ${dist.long.m} marks each
Ensure:
1. Only one correct answer in MCQ.
2. Verify numerical correctness before generating.
3. No special symbols.
Clean exam format only.`;
savedPaper=await callAI(prompt);
document.getElementById(“paper”).innerText=savedPaper;
document.getElementById(“answer”).innerText=””;
document.getElementById(“solution”).innerText=””;
}
async function generateAnswer(){
if(!savedPaper){alert(“Generate Question Paper first”);return;}
document.getElementById(“answer”).innerText=await callAI(`
You are a strict WBBSE Mathematics evaluator.
For each question:
– Solve step by step internally.
– Double check arithmetic, algebra, geometry.
– Recalculate place value carefully.
– Ensure no numerical mistake.
– If MCQ, mention correct option and exact value.
– Do not guess.
Return only final verified answers.
No special symbols.
Questions:
${savedPaper}
`);
}
async function generateSolution(){
if(!savedPaper){alert(“Generate Question Paper first”);return;}
document.getElementById(“solution”).innerText=await callAI(`
Provide detailed step-by-step mathematical solutions.
Verify each calculation twice.
No special symbols.
Questions:
${savedPaper}
`);
}
function downloadTXT(){
let content=`QUESTION PAPER\n${paper.innerText}\n\nANSWER KEY\n${answer.innerText}\n\nMODEL SOLUTION\n${solution.innerText}`;
let blob=new Blob([content],{type:”text/plain”});
let link=document.createElement(“a”);
link.href=URL.createObjectURL(blob);
link.download=”WBBSE_Mathematics_Exam.txt”;
link.click();
}
My Name is Sourav Mukherjee. I am a Website Developer and SEO Expart. AllBestTool.com is a browser-based collection of free online utilities — everything from PDF converters and text tools to SEO helpers and calculators. The idea is pretty simple: make a bunch of useful web tools available in one place without requiring users to sign up.