ÿþ<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Class 6 Social Science Assignment Generator  CBSE Online</title> <!-- Add jsPDF library --> <meta name="description" content="Create free chapter-wise or full Class 6 Social Science assignments online. NCERT-aligned, printable PDF, ideal for homework and exam preparation."> <meta name="keywords" content="Class 6 Social Science Assignment Generator,CBSE Class 6 Social Science Assignment Creator,Class 6 SST Assignment Maker,Online Class 6 Social Science Assignment Generator,Generate Class 6 Social Science Assignment,Chapter-wise Class 6 Social Science Assignment,Full Combined Class 6 Social Science Assignment,CBSE Class 6 SST Assignment Online,NCERT Class 6 Social Science Assignment Generator,Class 6 Social Science Assignment PDF Generator,Create chapter-wise or full Class 6 Social Science assignments online,Free online tool to generate Class 6 Social Science assignments,Class 6 SST assignments for all chapters with PDF download,Generate Class 6 Social Science homework and practice questions,Customizable Class 6 Social Science assignment generator,Locating Places on the Earth Assignment Generator,Oceans and Continents Assignment Creator,Landforms and Life Assignment Maker,Timeline and Sources of History Assignment Generator,India, That Is Bharat Assignment Generator,The Beginnings of Indian Civilisation Assignment Creator,India s Cultural Roots Assignment Maker,Unity in Diversity Assignment Generator,Family and Community Assignment Creator,Grassroots Democracy  Part 1 Assignment Generator,Grassroots Democracy  Part 2 Assignment Creator,Grassroots Democracy  Part 3 Assignment Maker,The Value of Work Assignment Generator,Economic Activities Around Us Assignment Creator,Routera Class 6 Social Science Assignment Generator,Routera CBSE Class 6 SST Assignment Creator, Online assignment generator by Routera,Generate free Class 6 Social Science assignment PDF,Create custom Class 6 Social Science assignments online,Chapter-wise or full Class 6 Social Science assignment tool,Class 6 Social Science assignment generator for homework and exams,Free NCERT-aligned Class 6 Social Science assignment maker"> <meta name="robots" content="index, follow"> <meta name="author" content="Routera.in"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Open Graph Tags --> <meta property="og:site_name" content="routera.in"> <meta property="og:title" content="Class 6 Social Science Assignment Generator  CBSE Online"> <meta property="og:description" content="Create free chapter-wise or full Class 6 Social Science assignments online. NCERT-aligned, printable PDF, ideal for homework and exam preparation."> <meta property="og:image" content="https://www.routera.in/img/cat-2.png"> <!-- Replace with actual image URL --> <meta property="og:image:width" content="600" /> <meta property="og:image:height" content="400" /> <meta property="og:url" content="https://routera.in/cbse-class-6-Social-Science-assignment-generator.html"> <meta property="og:type" content="website"> <!-- Twitter Card Tags --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Class 6 Social Science Assignment Generator  CBSE Online"> <meta name="twitter:description" content="Create free chapter-wise or full Class 6 Social Science assignments online. NCERT-aligned, printable PDF, ideal for homework and exam preparation."> <meta name="twitter:image" content="https://www.routera.in/img/cat-2.png"> <!-- Replace with actual image URL --> <!-- Canonical Tag --> <link rel="canonical" href="https://routera.in/cbse-class-6-Social-Science-assignment-generator.html" /> <script type="application/ld+json"> { "@context": "https://schema.org", "@graph": [ { "@type": "WebPage", "name": "Class 6 Social Science Assignment Generator", "url": "https://routera.in/cbse-class-6-Social-Science-assignment-generator.html", "description": "Generate chapter-wise or full Class 6 Social Science assignments online. NCERT-aligned, printable PDF, ideal for homework and exam preparation.", "breadcrumb": { "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem","position": 1,"name": "Home","item": "https://routera.in"}, {"@type": "ListItem","position": 2,"name": "CBSE Class 6","item": "https://routera.in/cbse-class-6-study-material.html"}, {"@type": "ListItem","position": 3,"name": "Social Science Assignment Generator","item": "https://routera.in/cbse-class-6-Social-Science-assignment-generator.html"} ] } }, { "@type": "WebSite", "name": "Routera", "url": "https://routera.in", "potentialAction": { "@type": "SearchAction", "target": "https://routera.in/search?q={search_term_string}", "query-input": "required name=search_term_string" } }, { "@type": "Organization", "name": "Routera", "url": "https://routera.in", "logo": "https://www.routera.in/img/logo1.jpg", "sameAs": [ "https://www.facebook.com/routera", "https://twitter.com/routera", "https://www.linkedin.com/company/routera" ] }, { "@type": "EducationalOrganization", "name": "Routera", "url": "https://routera.in", "logo": "https://www.routera.in/img/logo1.jpg", "founder": "Routera Team", "email": "contact@routera.in", "address": { "@type": "PostalAddress", "streetAddress": "Your Street Address", "addressLocality": "Bhadohi", "addressRegion": "U. P", "postalCode": "221401", "addressCountry": "IN" } }, { "@type": "Review", "itemReviewed": { "@type": "WebPage", "name": "Class 6 Social Science Assignment Generator", "url": "https://routera.in/cbse-class-6-Social-Science-assignment-generator.html" }, "reviewRating": { "@type": "Rating", "ratingValue": "4.9", "bestRating": "5" }, "author": {"@type": "Person","name": "Students & Teachers"}, "reviewBody": "Easy-to-use online Class 6 Social Science assignment generator with chapter-wise and full combined assignments, printable PDF, and NCERT-aligned questions." }, { "@type": "Article", "headline": "Class 6 Social Science Assignment Generator  CBSE Online Tool", "description": "Create chapter-wise or full Class 6 Social Science assignments online with Routera. NCERT-aligned, printable PDF, ideal for homework and exams.", "author": {"@type": "Organization","name": "Routera"}, "publisher": { "@type": "Organization", "name": "Routera", "logo": {"@type": "ImageObject","url": "https://www.routera.in/img/logo1.jpg"} }, "datePublished": "2025-08-14", "mainEntityOfPage": "https://routera.in/cbse-class-6-Social-Science-assignment-generator.html" }, { "@type": "FAQPage", "mainEntity": [ {"@type": "Question","name": "What is the Class 6 Social Science Assignment Generator?","acceptedAnswer":{"@type": "Answer","text": "It is an online tool that lets students generate chapter-wise or full combined assignments from the NCERT book Exploring Society: India and Beyond."}}, {"@type": "Question","name": "Can I create a full assignment with all chapters?","acceptedAnswer":{"@type": "Answer","text": "Yes, the generator allows creating full combined assignments covering all 14 chapters."}}, {"@type": "Question","name": "Are the assignments aligned with CBSE syllabus?","acceptedAnswer":{"@type": "Answer","text": "Yes, all generated assignments follow NCERT and CBSE Class 6 Social Science guidelines."}}, {"@type": "Question","name": "Can I download assignments as PDF?","acceptedAnswer":{"@type": "Answer","text": "Yes, assignments can be downloaded as PDF for offline use."}}, {"@type": "Question","name": "Is it free to use the assignment generator?","acceptedAnswer":{"@type": "Answer","text": "Yes, Routera offers this tool completely free for all students."}}, {"@type": "Question","name": "Can I generate assignments for individual chapters?","acceptedAnswer":{"@type": "Answer","text": "Yes, you can select specific chapters like Oceans and Continents or Grassroots Democracy."}}, {"@type": "Question","name": "How long does it take to generate an assignment?","acceptedAnswer":{"@type": "Answer","text": "Assignments are generated instantly, allowing quick practice and revision."}}, {"@type": "Question","name": "Are the assignments suitable for homework?","acceptedAnswer":{"@type": "Answer","text": "Yes, they are perfect for homework, revision, and exam practice."}}, {"@type": "Question","name": "Can teachers use this tool for class assignments?","acceptedAnswer":{"@type": "Answer","text": "Yes, teachers can generate customized chapter-wise or full assignments for students."}}, {"@type": "Question","name": "Does the generator include important questions and HOTS exercises?","acceptedAnswer":{"@type": "Answer","text": "Yes, all assignments include important questions, short-answer, long-answer, and HOTS exercises for effective learning."}} ] }, { "@type": "HowTo", "name": "How to Use Class 6 Social Science Assignment Generator", "step": [ {"@type": "HowToStep","text": "Select the chapters you want to generate assignments for."}, {"@type": "HowToStep","text": "Choose chapter-wise or full combined assignment mode."}, {"@type": "HowToStep","text": "Click generate to create your assignment PDF."}, {"@type": "HowToStep","text": "Download or print the PDF for practice and homework."} ] }, { "@type": "Product", "name": "Class 6 Social Science Assignment Generator", "description": "Free online tool to generate chapter-wise or full Class 6 Social Science assignments, printable PDF, NCERT-aligned.", "brand": "Routera", "offers": {"@type": "Offer","url": "https://routera.in/cbse-class-6-Social-Science-assignment-generator.html","price": "0","priceCurrency": "INR"} }, { "@type": "Course", "name": "Class 6 Social Science Study Program", "description": "Complete Class 6 Social Science assignments and study material aligned with NCERT syllabus.", "provider": {"@type": "EducationalOrganization","name": "Routera","sameAs": "https://routera.in"} }, { "@type": "ItemList", "itemListElement": [ {"@type": "ListItem","position": 1,"name": "Locating Places on the Earth"}, {"@type": "ListItem","position": 2,"name": "Oceans and Continents"}, {"@type": "ListItem","position": 3,"name": "Landforms and Life"}, {"@type": "ListItem","position": 4,"name": "Timeline and Sources of History"}, {"@type": "ListItem","position": 5,"name": "India, That Is Bharat"}, {"@type": "ListItem","position": 6,"name": "The Beginnings of Indian Civilisation"}, {"@type": "ListItem","position": 7,"name": "India s Cultural Roots"}, {"@type": "ListItem","position": 8,"name": "Unity in Diversity"}, {"@type": "ListItem","position": 9,"name": "Family and Community"}, {"@type": "ListItem","position": 10,"name": "Grassroots Democracy  Part 1"}, {"@type": "ListItem","position": 11,"name": "Grassroots Democracy  Part 2"}, {"@type": "ListItem","position": 12,"name": "Grassroots Democracy  Part 3"}, {"@type": "ListItem","position": 13,"name": "The Value of Work"}, {"@type": "ListItem","position": 14,"name": "Economic Activities Around Us"} ] }, { "@type": "EducationalOccupationalProgram", "educationalProgramMode": "Online", "educationalCredentialAwarded": "Class 6 Social Science Assignment Completion", "provider": {"@type": "EducationalOrganization","name": "Routera","sameAs": "https://routera.in"} } ] } </script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4930137336556867" crossorigin="anonymous"></script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-KMZ9RJ62EY"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-KMZ9RJ62EY'); </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> /* All CSS styles remain the same as before */ :root { --primary: #4361ee; --primary-dark: #3f37c9; --secondary: #4895ef; --danger: #f72585; --success: #4cc9f0; --light: #f8f9fa; --dark: #212529; --gray: #6c757d; --border-radius: 12px; --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; color: var(--dark); line-height: 1.6; } .container { width: 100%; max-width: 900px; background: white; border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; transition: var(--transition); animation: fadeIn 0.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; } .header::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; } .header h1 { font-size: 2rem; margin-bottom: 10px; font-weight: 700; position: relative; z-index: 1; } .header p { font-size: 1rem; opacity: 0.9; position: relative; z-index: 1; } .content-area { padding: 30px; } .hidden { display: none !important; } .btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-align: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); margin: 10px 5px; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(67, 97, 238, 0.3); } .btn-success { background: var(--success); color: white; } .btn-success:hover { background: #3ab0d6; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(76, 201, 240, 0.3); } .btn-danger { background: var(--danger); color: white; } .btn-danger:hover { background: #d3166b; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(247, 37, 133, 0.3); } .btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0; } .section-title { text-align: center; margin-bottom: 25px; color: var(--primary-dark); font-size: 1.5rem; position: relative; padding-bottom: 10px; } .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--secondary); border-radius: 3px; } .checkbox-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 25px 0; } .checkbox-item { display: flex; align-items: center; } .checkbox-item input { margin-right: 10px; width: 18px; height: 18px; cursor: pointer; } .checkbox-item label { cursor: pointer; font-size: 0.95rem; } .generated-paper { padding: 30px; } .paper-header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid var(--primary); padding-bottom: 20px; } .paper-header h2 { color: var(--primary-dark); margin-bottom: 5px; font-size: 1.8rem; } .paper-header h3 { color: var(--gray); margin-bottom: 5px; font-size: 1.2rem; font-weight: 500; } .paper-meta { display: flex; justify-content: space-between; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; font-weight: 500; } .instructions { margin-bottom: 30px; padding: 20px; background: #f8f9fa; border-radius: var(--border-radius); } .instructions ol { padding-left: 20px; margin-top: 10px; } .instructions li { margin-bottom: 8px; } .question-section { margin-bottom: 30px; } .section-heading { font-weight: 600; color: var(--primary-dark); margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px solid #eee; } .question { margin-bottom: 20px; page-break-inside: avoid; } .question-text { font-weight: 500; margin-bottom: 8px; } .option { margin-left: 20px; margin-bottom: 5px; } .action-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 40px; } @media (max-width: 768px) { .header h1 { font-size: 1.6rem; } .content-area { padding: 20px; } .checkbox-container { grid-template-columns: 1fr; } .btn { padding: 10px 20px; font-size: 0.9rem; } .paper-header h2 { font-size: 1.4rem; } .paper-header h3 { font-size: 1rem; } } @media (max-width: 480px) { .header { padding: 20px 15px; } .section-title { font-size: 1.3rem; } .paper-meta { flex-direction: column; gap: 10px; } .action-buttons { flex-direction: column; align-items: center; } .btn { width: 100%; max-width: 250px; } } @media print { body { background: none; padding: 0; } .container { box-shadow: none; max-width: 100%; } .action-buttons { display: none; } .question { page-break-inside: avoid; } } </style> <style> /* Ensure header styling is preserved */ .header { background: linear-gradient(135deg, #4361ee, #3f37c9) !important; color: white !important; padding: 30px 20px !important; text-align: center !important; position: relative !important; overflow: hidden !important; width: 100% !important; } .header h1, .header h2, .header h3 { color: white !important; font-weight: bold !important; } .temp-pdf-container { font-family: Arial, sans-serif; line-height: 1.5; width: 794px; /* A4 width in pixels (210mm) */ background-color: white; color: black; } /* Page break control */ .question { page-break-inside: avoid; break-inside: avoid; } .question-section { page-break-after: auto; } @media print { body { margin: 0 !important; padding: 0 !important; background: white !important; } .container { width: 100% !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; } .header { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } } /* Home icon styles */ .home-icon { position: absolute; top: 20px; left: 20px; color: white; font-size: 24px; cursor: pointer; transition: var(--transition); z-index: 2; } .home-icon:hover { transform: scale(1.1); color: rgba(255, 255, 255, 0.8); } @media (max-width: 480px) { .home-icon { font-size: 20px; top: 15px; left: 15px; } } @media print { .home-icon { display: none; } } </style> </head> <body> <div class="container" id="startContainer"> <div class="header"> <!-- Home icon added here --> <a href="cbse-class-6-to-8-assignment-generator.html" class="home-icon"> <i class="fas fa-home"></i> </a> <h1>Class VI Social Science</h1> <p>Generate Customized Assignments</p> </div> <div class="content-area"> <div id="startScreen"> <h2 class="section-title">Social Science Assignment Generator</h2> <div class="btn-group"> <button class="btn btn-primary" id="startGeneratingBtn">Start Generating</button> </div> </div> <div id="subjectOptions" class="hidden"> <h2 class="section-title">Select Social Science Subject</h2> <div class="btn-group"> <button class="btn btn-primary" id="selectSocialBtn">Social Science</button> </div> </div> <div id="chapterSelection" class="hidden"> <h2 class="section-title">Select Chapters</h2> <form id="chapterForm"> <div class="checkbox-container"> <div class="checkbox-item"> <input type="checkbox" id="fullPaper" name="chapter" value="Full Paper"> <label for="fullPaper">Full Syllabus (All Chapters)</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter1" name="chapter" value="Chapter 1"> <label for="chapter1">1. Locating Places on the Earth</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter2" name="chapter" value="Chapter 2"> <label for="chapter2">2. Oceans and Continents</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter3" name="chapter" value="Chapter 3"> <label for="chapter3">3. Landforms and Life</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter4" name="chapter" value="Chapter 4"> <label for="chapter4">4. Timeline and Sources of History</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter5" name="chapter" value="Chapter 5"> <label for="chapter5">5. India, That Is Bharat</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter6" name="chapter" value="Chapter 6"> <label for="chapter6">6. The Beginnings of Indian Civilisation</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter7" name="chapter" value="Chapter 7"> <label for="chapter7">7. India's Cultural Roots</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter8" name="chapter" value="Chapter 8"> <label for="chapter8">8. Unity in Diversity, or 'Many in the One'</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter9" name="chapter" value="Chapter 9"> <label for="chapter9">9. Family and Community</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter10" name="chapter" value="Chapter 10"> <label for="chapter10">10. Grassroots Democracy  Part 1: Governance</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter11" name="chapter" value="Chapter 11"> <label for="chapter11">11. Grassroots Democracy  Part 2: Local Government in Rural Areas</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter12" name="chapter" value="Chapter 12"> <label for="chapter12">12. Grassroots Democracy  Part 3: Local Government in Urban Areas</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter13" name="chapter" value="Chapter 13"> <label for="chapter13">13. The Value of Work</label> </div> <div class="checkbox-item"> <input type="checkbox" id="chapter14" name="chapter" value="Chapter 14"> <label for="chapter14">14. Economic Activities Around Us</label> </div> </div> </form> <div id="message" class="hidden"></div> <div class="btn-group"> <button class="btn btn-danger" id="backToStartBtn">Back to Start</button> <button class="btn btn-success" id="generateAssignmentBtn">Generate Assignment</button> </div> </div> </div> </div> <div class="container hidden" id="generatedPaperContainer"></div> <script> // Initialize jsPDF const { jsPDF } = window.jspdf; // DOM Elements const startContainer = document.getElementById('startContainer'); const startScreen = document.getElementById('startScreen'); const subjectOptions = document.getElementById('subjectOptions'); const chapterSelection = document.getElementById('chapterSelection'); const generatedPaperContainer = document.getElementById('generatedPaperContainer'); // Buttons const startGeneratingBtn = document.getElementById('startGeneratingBtn'); const selectSocialBtn = document.getElementById('selectSocialBtn'); const backToStartBtn = document.getElementById('backToStartBtn'); const generateAssignmentBtn = document.getElementById('generateAssignmentBtn'); const fullPaperCheckbox = document.getElementById('fullPaper'); const chapterCheckboxes = document.querySelectorAll('input[name="chapter"]:not(#fullPaper)'); // Event Listeners startGeneratingBtn.addEventListener('click', showSubjectOptions); selectSocialBtn.addEventListener('click', showChapters); backToStartBtn.addEventListener('click', backToStart); generateAssignmentBtn.addEventListener('click', generateAssignment); fullPaperCheckbox.addEventListener('change', toggleChapters); const questions = { "Chapter 1": { mcq: [ { question: "What is the imaginary line that divides the Earth into Northern and Southern Hemispheres called?", options: ["Equator", "Prime Meridian", "Tropic of Cancer", "Tropic of Capricorn"], answer: "Equator" }, { question: "Which of these is NOT a component of a map?", options: ["Scale", "Symbols", "Compass", "Globe"], answer: "Globe" }, { question: "What do we call the angular distance of a place north or south of the equator?", options: ["Longitude", "Latitude", "Altitude", "Prime Meridian"], answer: "Latitude" } ], fillBlank: [ { question: "The __________ is the starting point for measuring longitude.", answer: "Prime Meridian" }, { question: "The Earth completes one rotation on its axis in __________ hours.", answer: "24" } ], trueFalse: [ { question: "The Tropic of Capricorn lies in the Northern Hemisphere.", answer: "False" }, { question: "All meridians of longitude are of equal length.", answer: "True" } ], veryShort: [ "Define the term 'latitude'.", "What is the purpose of a compass on a map?" ], short: [ "Explain the difference between a map and a globe.", "Describe how latitude affects climate." ], long: [ "Discuss the importance of the grid system in locating places on Earth.", "Explain how time zones are determined and why they are necessary." ] }, "Chapter 2": { mcq: [ { question: "Which is the largest ocean on Earth?", options: ["Atlantic", "Indian", "Arctic", "Pacific"], answer: "Pacific" }, { question: "Which continent is known as the 'Dark Continent'?", options: ["Asia", "Africa", "Australia", "Antarctica"], answer: "Africa" }, { question: "The Suez Canal connects which two water bodies?", options: ["Mediterranean Sea and Red Sea", "Atlantic and Pacific", "Indian Ocean and Bay of Bengal", "Caribbean Sea and Gulf of Mexico"], answer: "Mediterranean Sea and Red Sea" } ], fillBlank: [ { question: "The __________ is the world's largest hot desert.", answer: "Sahara" }, { question: "The __________ Ocean is named after a country.", answer: "Indian" } ], trueFalse: [ { question: "Australia is both a continent and a country.", answer: "True" }, { question: "Europe and Asia are separated by the Ural Mountains.", answer: "True" } ], veryShort: [ "Name the seven continents of the world.", "Which ocean surrounds Antarctica?" ], short: [ "Explain the importance of oceans for human life.", "Compare the sizes of the continents." ], long: [ "Discuss the major physical features of any two continents.", "Explain how human activities are affecting the oceans and what can be done to protect them." ] }, "Chapter 3": { mcq: [ { question: "Which of these is a fold mountain?", options: ["Kilimanjaro", "Himalayas", "Deccan Plateau", "Mount Fuji"], answer: "Himalayas" }, { question: "Which landform is created by the deposition of sediments at a river's mouth?", options: ["Delta", "Canyon", "Mesa", "Volcano"], answer: "Delta" }, { question: "What type of landform is the Great Barrier Reef?", options: ["Mountain", "Coral reef", "Desert", "Plateau"], answer: "Coral reef" } ], fillBlank: [ { question: "The __________ is the highest plateau in the world.", answer: "Tibetan Plateau" }, { question: "The Grand Canyon was formed by the __________ River.", answer: "Colorado" } ], trueFalse: [ { question: "Plains are generally more suitable for agriculture than mountains.", answer: "True" }, { question: "All deserts are hot.", answer: "False" } ], veryShort: [ "Name two types of plateaus.", "What is a volcano?" ], short: [ "Explain how mountains affect climate.", "Describe the formation of a delta." ], long: [ "Discuss the different types of landforms and their importance to human life.", "Explain how human activities can lead to changes in landforms." ] }, "Chapter 4": { mcq: [ { question: "Which of these is NOT a source of historical information?", options: ["Coins", "Textbooks", "Inscriptions", "Monuments"], answer: "Textbooks" }, { question: "The study of coins is called:", options: ["Archaeology", "Numismatics", "Epigraphy", "Paleontology"], answer: "Numismatics" }, { question: "Which period came first in Indian history?", options: ["Mauryan", "Gupta", "Indus Valley", "Mughal"], answer: "Indus Valley" } ], fillBlank: [ { question: "The study of inscriptions is called __________.", answer: "Epigraphy" }, { question: "The __________ were the first to use coins in India.", answer: "Punch-marked coins" } ], trueFalse: [ { question: "Oral traditions are not considered reliable sources of history.", answer: "False" }, { question: "The Christian era begins with the birth of Jesus Christ.", answer: "True" } ], veryShort: [ "What is archaeology?", "Name two archaeological sources of history." ], short: [ "Explain the importance of inscriptions in studying history.", "Differentiate between BC and AD." ], long: [ "Discuss the various sources of history and their importance.", "Explain how historians use different types of evidence to reconstruct the past." ] }, "Chapter 5": { mcq: [ { question: "Which is the southernmost point of mainland India?", options: ["Kanyakumari", "Indira Point", "Rameswaram", "Goa"], answer: "Kanyakumari" }, { question: "India is located in which continent?", options: ["Africa", "Europe", "Asia", "Australia"], answer: "Asia" }, { question: "The Tropic of Cancer passes through how many Indian states?", options: ["6", "8", "10", "12"], answer: "8" } ], fillBlank: [ { question: "India shares its longest border with __________.", answer: "Bangladesh" }, { question: "The __________ is India's southern neighbor island country.", answer: "Sri Lanka" } ], trueFalse: [ { question: "India has a coastline on the Arabian Sea.", answer: "True" }, { question: "New Delhi is the capital of India.", answer: "True" } ], veryShort: [ "Name India's neighboring countries to the northwest.", "What is the latitudinal extent of India?" ], short: [ "Describe India's geographical location and its advantages.", "Explain the significance of India's central location in Asia." ], long: [ "Discuss the physical divisions of India and their characteristics.", "Explain how India's geographical features have influenced its history and culture." ] }, "Chapter 6": { mcq: [ { question: "Which of these was a major city of the Indus Valley Civilization?", options: ["Harappa", "Taxila", "Pataliputra", "Ujjain"], answer: "Harappa" }, { question: "What was the main occupation of the Harappan people?", options: ["Agriculture", "Fishing", "Hunting", "Mining"], answer: "Agriculture" }, { question: "Which metal was NOT known to the Harappans?", options: ["Copper", "Bronze", "Gold", "Iron"], answer: "Iron" } ], fillBlank: [ { question: "The Great Bath was discovered at __________.", answer: "Mohenjo-Daro" }, { question: "The Harappan script has __________ been deciphered.", answer: "not" } ], trueFalse: [ { question: "The Harappan cities had well-planned drainage systems.", answer: "True" }, { question: "The Indus Valley people worshipped only male deities.", answer: "False" } ], veryShort: [ "Name two animals domesticated by the Harappans.", "What was the main building material used in Harappan cities?" ], short: [ "Describe the town planning of Harappan cities.", "Explain why the Indus Valley Civilization is called a Bronze Age civilization." ], long: [ "Discuss the economic life of the Harappan people.", "Explain the possible reasons for the decline of the Indus Valley Civilization." ] }, "Chapter 7": { mcq: [ { question: "Which Veda contains hymns in praise of various gods?", options: ["Rigveda", "Samaveda", "Yajurveda", "Atharvaveda"], answer: "Rigveda" }, { question: "The Upanishads are concerned with:", options: ["Rituals", "Philosophy", "Medicine", "Astronomy"], answer: "Philosophy" }, { question: "Which language were the Vedas composed in?", options: ["Pali", "Prakrit", "Sanskrit", "Tamil"], answer: "Sanskrit" } ], fillBlank: [ { question: "The __________ were the teachers in ancient India.", answer: "Gurus" }, { question: "The __________ system was the basis of society in ancient India.", answer: "Varna" } ], trueFalse: [ { question: "The Ramayana was written by Ved Vyasa.", answer: "False" }, { question: "The Mahabharata is the longest epic in the world.", answer: "True" } ], veryShort: [ "Name the four Vedas.", "What is an ashrama?" ], short: [ "Explain the importance of the Gurukul system in ancient India.", "Describe the main teachings of the Upanishads." ], long: [ "Discuss the Vedic literature and its importance in understanding ancient Indian culture.", "Explain how the epics Ramayana and Mahabharata reflect Indian values and traditions." ] }, "Chapter 8": { mcq: [ { question: "Which of these is a classical dance form of India?", options: ["Bharatanatyam", "Kathak", "Odissi", "All of these"], answer: "All of these" }, { question: "The festival of Baisakhi is celebrated mainly in:", options: ["Kerala", "Punjab", "Tamil Nadu", "West Bengal"], answer: "Punjab" }, { question: "Which religion originated in India?", options: ["Hinduism", "Buddhism", "Jainism", "All of these"], answer: "All of these" } ], fillBlank: [ { question: "The __________ is India's national bird.", answer: "Peacock" }, { question: "__________ is known as the festival of lights.", answer: "Diwali" } ], trueFalse: [ { question: "All Indians speak the same language.", answer: "False" }, { question: "India has a rich tradition of folk arts.", answer: "True" } ], veryShort: [ "Name two major religions practiced in India.", "What is the official language of India?" ], short: [ "Explain the concept of 'unity in diversity' with examples from India.", "Describe how Indian festivals promote social harmony." ], long: [ "Discuss the linguistic diversity of India and its challenges and advantages.", "Explain how India's geographical diversity has contributed to its cultural diversity." ] }, "Chapter 9": { mcq: [ { question: "Which of these is NOT a type of family?", options: ["Nuclear", "Joint", "Extended", "Circular"], answer: "Circular" }, { question: "In a joint family, decisions are usually made by:", options: ["Children", "Eldest male member", "Youngest member", "All members equally"], answer: "Eldest male member" }, { question: "Which of these is a function of the family?", options: ["Emotional support", "Socialization", "Economic support", "All of these"], answer: "All of these" } ], fillBlank: [ { question: "The process of learning social norms is called __________.", answer: "socialization" }, { question: "A __________ family consists of parents and their children.", answer: "nuclear" } ], trueFalse: [ { question: "All families follow the same structure across cultures.", answer: "False" }, { question: "Families provide economic security to their members.", answer: "True" } ], veryShort: [ "Define the term 'family'.", "Name two functions of a family." ], short: [ "Compare nuclear and joint families.", "Explain how families contribute to the socialization of children." ], long: [ "Discuss the changing structure of families in modern India.", "Explain the role of family in preserving cultural traditions." ] }, "Chapter 10": { mcq: [ { question: "Who is the head of a Gram Panchayat?", options: ["Sarpanch", "Mukhiya", "Pradhan", "All of these"], answer: "All of these" }, { question: "The Panchayati Raj system has how many tiers?", options: ["One", "Two", "Three", "Four"], answer: "Three" }, { question: "Which amendment introduced Panchayati Raj in India?", options: ["42nd", "44th", "73rd", "74th"], answer: "73rd" } ], fillBlank: [ { question: "The __________ is the intermediate level in the Panchayati Raj system.", answer: "Panchayat Samiti" }, { question: "The __________ is the highest level in the Panchayati Raj system.", answer: "Zila Parishad" } ], trueFalse: [ { question: "Gram Sabha includes all adults in a village.", answer: "True" }, { question: "Women have no representation in Panchayats.", answer: "False" } ], veryShort: [ "What is the term of a Gram Panchayat?", "Name one function of a Gram Panchayat." ], short: [ "Explain the structure of the Panchayati Raj system.", "Describe the role of the Gram Sabha in village administration." ], long: [ "Discuss the importance of local self-government in a democracy.", "Explain how the 73rd Amendment has strengthened grassroots democracy in India." ] }, "Chapter 11": { mcq: [ { question: "Which of these is NOT a source of income for Panchayats?", options: ["Taxes", "Grants from State Government", "Donations from villagers", "Loans from foreign banks"], answer: "Loans from foreign banks" }, { question: "Who implements development programs at the village level?", options: ["Gram Panchayat", "State Government", "Central Government", "All of these"], answer: "Gram Panchayat" }, { question: "Which committee recommended the three-tier Panchayati Raj system?", options: ["Ashok Mehta", "Balwant Rai Mehta", "K. Santhanam", "L.M. Singhvi"], answer: "Balwant Rai Mehta" } ], fillBlank: [ { question: "The __________ maintains records of births and deaths in the village.", answer: "Gram Panchayat" }, { question: "One-third of seats in Panchayats are reserved for __________.", answer: "women" } ], trueFalse: [ { question: "Panchayats can impose taxes on land and houses.", answer: "True" }, { question: "The Sarpanch is appointed by the District Collector.", answer: "False" } ], veryShort: [ "What is the main function of a Panchayat Samiti?", "Name one problem faced by Panchayats." ], short: [ "Explain the financial resources of Panchayats.", "Describe the relationship between Gram Panchayat and Gram Sabha." ], long: [ "Discuss the achievements and challenges of the Panchayati Raj system in India.", "Explain how Panchayats contribute to rural development." ] }, "Chapter 12": { mcq: [ { question: "Which of these is an urban local body?", options: ["Municipal Corporation", "Municipality", "Nagar Panchayat", "All of these"], answer: "All of these" }, { question: "Who is the head of a Municipal Corporation?", options: ["Mayor", "Commissioner", "Chairman", "Sarpanch"], answer: "Mayor" }, { question: "Which amendment introduced urban local bodies in India?", options: ["42nd", "44th", "73rd", "74th"], answer: "74th" } ], fillBlank: [ { question: "The __________ is the executive head of a Municipal Corporation.", answer: "Municipal Commissioner" }, { question: "Small towns have __________ as their local government.", answer: "Municipalities" } ], trueFalse: [ { question: "Municipal Councils are for smaller urban areas.", answer: "True" }, { question: "Urban local bodies have no role in public health.", answer: "False" } ], veryShort: [ "Name one function of a Municipal Corporation.", "What is the term of urban local bodies?" ], short: [ "Compare Municipal Corporations and Municipalities.", "Explain the composition of a Municipal Corporation." ], long: [ "Discuss the functions of urban local bodies in city administration.", "Explain the challenges faced by urban local governments in India." ] }, "Chapter 13": { mcq: [ { question: "Which of these is NOT considered productive work?", options: ["Farming", "Teaching", "Begging", "Manufacturing"], answer: "Begging" }, { question: "What percentage of India's workforce is engaged in agriculture?", options: ["About 25%", "About 50%", "About 75%", "About 90%"], answer: "About 50%" }, { question: "Which sector includes banking and insurance?", options: ["Primary", "Secondary", "Tertiary", "Quaternary"], answer: "Tertiary" } ], fillBlank: [ { question: "The __________ sector involves extraction of natural resources.", answer: "primary" }, { question: "__________ workers are those who don't get fair wages.", answer: "Exploited" } ], trueFalse: [ { question: "All work has equal dignity.", answer: "True" }, { question: "The service sector is the largest employer in India.", answer: "False" } ], veryShort: [ "Define the term 'work'.", "Name two primary sector occupations." ], short: [ "Explain the difference between economic and non-economic activities.", "Describe the importance of dignity of labor." ], long: [ "Discuss the three sectors of the economy with examples.", "Explain how technological changes are affecting the nature of work." ] }, "Chapter 14": { mcq: [ { question: "Which of these is a primary sector activity?", options: ["Fishing", "Weaving", "Banking", "Teaching"], answer: "Fishing" }, { question: "The 'Make in India' initiative promotes which sector?", options: ["Agriculture", "Manufacturing", "Services", "Mining"], answer: "Manufacturing" }, { question: "Which of these is NOT a factor of production?", options: ["Land", "Labor", "Capital", "Profit"], answer: "Profit" } ], fillBlank: [ { question: "The __________ sector transforms raw materials into goods.", answer: "secondary" }, { question: "People who start businesses are called __________.", answer: "entrepreneurs" } ], trueFalse: [ { question: "Agriculture is part of the primary sector.", answer: "True" }, { question: "All economic activities generate income.", answer: "True" } ], veryShort: [ "Name two secondary sector activities.", "What is unemployment?" ], short: [ "Explain the interdependence of different economic sectors.", "Describe how technology has changed economic activities." ], long: [ "Discuss the importance of each economic sector for India's development.", "Explain the challenges faced by workers in the informal sector." ] } }; function getRandomQuestions(chapters, type, count) { try { let allQuestions = []; chapters.forEach(chapter => { if (questions[chapter] && questions[chapter][type]) { allQuestions = allQuestions.concat(questions[chapter][type]); } }); allQuestions = allQuestions.sort(() => Math.random() - 0.5); return allQuestions.slice(0, count); } catch (error) { console.error("Error in getRandomQuestions:", error); return []; } } function showSubjectOptions() { startScreen.classList.add('hidden'); subjectOptions.classList.remove('hidden'); } function showChapters() { subjectOptions.classList.add('hidden'); chapterSelection.classList.remove('hidden'); } function toggleChapters() { chapterCheckboxes.forEach(cb => cb.disabled = fullPaperCheckbox.checked); } function backToStart() { generatedPaperContainer.classList.add('hidden'); startContainer.classList.remove('hidden'); chapterSelection.classList.add('hidden'); startScreen.classList.remove('hidden'); } function generateAssignment() { try { console.log("Generating assignment..."); // Hide start container and show assignment container startContainer.classList.add('hidden'); generatedPaperContainer.classList.remove('hidden'); generatedPaperContainer.innerHTML = ''; // Get selected chapters const selectedChapters = fullPaperCheckbox.checked ? Object.keys(questions) : Array.from(document.querySelectorAll('input[name="chapter"]:checked')).map(cb => cb.value); if (selectedChapters.length === 0) { alert("Please select at least one chapter!"); startContainer.classList.remove('hidden'); return; } console.log("Selected chapters:", selectedChapters); const chapterNames = selectedChapters.map(ch => { if (ch === "Full Paper") return "Full Syllabus"; const label = document.querySelector(`label[for="${ch.toLowerCase()}"]`); return label ? ch + ". " + label.textContent.split(". ")[1] : ch; }).join(", "); console.log("Chapter names:", chapterNames); // Create assignment content let paperContent = ` <div class="header"> <h2>Class VI Social Science Assignment</h2> <h3>${selectedChapters.length === Object.keys(questions).length ? "Full Syllabus" : chapterNames}</h3> </div> <div class="content-area"> <div class="instructions"> <p><strong>General Instructions:</strong></p> <ol> <li>Complete all questions in your notebook.</li> <li>Write answers in complete sentences.</li> <li>Draw diagrams/maps wherever necessary.</li> <li>Submit the assignment by the due date.</li> <li>Use blue or black ink only.</li> </ol> </div> `; // Get random questions const mcqs = getRandomQuestions(selectedChapters, 'mcq', 10); const fillBlanks = getRandomQuestions(selectedChapters, 'fillBlank', 5); const trueFalse = getRandomQuestions(selectedChapters, 'trueFalse', 5); const veryShort = getRandomQuestions(selectedChapters, 'veryShort', 5); const short = getRandomQuestions(selectedChapters, 'short', 5); const long = getRandomQuestions(selectedChapters, 'long', 5); console.log("Questions retrieved:", { mcqs, fillBlanks, trueFalse, veryShort, short, long }); let questionNumber = 1; // Section A - MCQ paperContent += ` <div class="question-section"> <h4 class="section-heading">Section A - Multiple Choice Questions (1 mark each)</h4> <p>Choose the correct option for each question:</p> `; mcqs.forEach(mcq => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${mcq.question}</p> ${mcq.options.map((opt, idx) => `<p class="option">${String.fromCharCode(65 + idx)}. ${opt}</p>` ).join('')} </div> `; }); // Section B - Fill in the blanks paperContent += ` </div> <div class="question-section"> <h4 class="section-heading">Section B - Fill in the Blanks (1 mark each)</h4> <p>Fill in the blanks with appropriate words:</p> `; fillBlanks.forEach(fb => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${fb.question}</p> </div> `; }); // Section C - True/False paperContent += ` </div> <div class="question-section"> <h4 class="section-heading">Section C - True/False Questions (1 mark each)</h4> <p>State whether the following statements are True or False:</p> `; trueFalse.forEach(tf => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${tf.question}</p> </div> `; }); // Section D - Very Short Questions paperContent += ` </div> <div class="question-section"> <h4 class="section-heading">Section D - Very Short Answer Questions (2 marks each)</h4> `; veryShort.forEach(q => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${q}</p> </div> `; }); // Section E - Short Questions paperContent += ` </div> <div class="question-section"> <h4 class="section-heading">Section E - Short Answer Questions (3 marks each)</h4> `; short.forEach(q => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${q}</p> </div> `; }); // Section F - Long Questions paperContent += ` </div> <div class="question-section"> <h4 class="section-heading">Section F - Long Answer Questions (5 marks each)</h4> `; long.forEach(q => { paperContent += ` <div class="question"> <p class="question-text">${questionNumber++}. ${q}</p> </div> `; }); // Add buttons below the generated paper paperContent += ` </div> <div class="action-buttons"> <button class="btn btn-primary" onclick="downloadPDF()">Download as PDF</button> <button class="btn btn-success" onclick="window.print()">Print</button> <button class="btn btn-danger" onclick="backToStart()">Back to Start</button> </div> </div> `; console.log("Final paper content generated"); generatedPaperContainer.innerHTML = paperContent; console.log("Assignment generated successfully"); } catch (error) { console.error("Error generating assignment:", error); alert("An error occurred while generating the assignment. Please check the console for details."); backToStart(); } } async function downloadPDF() { const element = document.getElementById('generatedPaperContainer'); // Create a temporary div with optimized settings const tempDiv = document.createElement('div'); tempDiv.style.position = 'absolute'; tempDiv.style.left = '-9999px'; tempDiv.style.width = '794px'; // A4 width in pixels (210mm) tempDiv.style.backgroundColor = 'white'; tempDiv.style.padding = '20px'; tempDiv.innerHTML = element.innerHTML; document.body.appendChild(tempDiv); try { const pdf = new jsPDF('p', 'mm', 'a4'); const pageWidth = pdf.internal.pageSize.getWidth() - 25.4; // 0.5" margins const pageHeight = pdf.internal.pageSize.getHeight() - 25.4; // Split content into pages let position = 12.7; // Start with 0.5" top margin let remainingHeight = tempDiv.scrollHeight; let pageNum = 1; while (remainingHeight > 0) { // Capture the current page section const canvas = await html2canvas(tempDiv, { scale: 2, windowHeight: pageHeight * 3.78, // mm to px windowWidth: pageWidth * 3.78, y: position * 3.78, // mm to px height: pageHeight * 3.78, useCORS: true, backgroundColor: '#ffffff', logging: false }); const imgData = canvas.toDataURL('image/jpeg', 0.92); // Add page to PDF if (pageNum > 1) { pdf.addPage('a4', 'portrait'); } pdf.addImage(imgData, 'JPEG', 12.7, 12.7, pageWidth, canvas.height * pageWidth / canvas.width); position += pageHeight; remainingHeight -= pageHeight * 3.78; // px pageNum++; } // Save PDF pdf.save('Class_6_Social_Science_Assignment.pdf'); console.log("PDF saved successfully"); } catch (error) { console.error('PDF generation error:', error); alert('Error generating PDF. Please check the console for details.'); // Remove temporary div if it exists const tempDiv = document.querySelector('.temp-pdf-container'); if (tempDiv) { document.body.removeChild(tempDiv); } } } </script> </body> </html>