361 Question 361 EN + हिं Medium GB $table->string('question') creates IN $table->string('question') बनाता है A INTEGER column पूर्णांक स्तंभ B TEXT column पाठ स्तंभ C VARCHAR(255) column named question VARCHAR(255) कॉलम का नाम प्रश्न है D CHAR(255) चार(255) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) string('column') creates VARCHAR(255) by default. व्याख्या (हिन्दी) स्ट्रिंग('कॉलम') डिफ़ॉल्ट रूप से VARCHAR(255) बनाता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions hasMany(Comment::class) on Post means $table->decimal('price',10,2) creates $table->boolean('is_deleted') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
362 Question 362 EN + हिं Medium GB $table->text('solution') creates IN $table->text('solution') बनाता है A VARCHAR(255) वर्चर(255) B INTEGER पूर्णांक C TEXT column for large text content बड़ी पाठ्य सामग्री के लिए टेक्स्ट कॉलम D BLOB ब्लॉब ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) text('column'): creates TEXT column for larger text (up to 65,535 characters). व्याख्या (हिन्दी) टेक्स्ट('कॉलम'): बड़े टेक्स्ट (65,535 अक्षरों तक) के लिए टेक्स्ट कॉलम बनाता है। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions $table->index(['assignment_id','q_level']) creates DB::table('questions')->skip(10)->take(5)->get() return... $table->foreign('assignment_id')->references('id')->on(... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
363 Question 363 EN + हिं Medium GB $table->timestamps() adds IN $table->timestamps() जोड़ता है A One timestamp column एक टाइमस्टैम्प कॉलम B A date column एक दिनांक स्तंभ C created_at and updated_at TIMESTAMP NULL columns create_at और update_at TIMESTAMP NULL कॉलम D Only updated_at केवल अपडेटेड_एट ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) timestamps(): adds both created_at AND updated_at NULLABLE TIMESTAMP columns. व्याख्या (हिन्दी) टाइमस्टैम्प(): create_at और अपडेटेड_at NULLABLE TIMESTAMP कॉलम दोनों जोड़ता है। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions paginate(15) returns $table->foreign('assignment_id')->references('id')->on(... $table->boolean('is_deleted') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
364 Question 364 EN + हिं Medium GB $table->softDeletes() adds IN $table->softDeletes() जोड़ता है A is_deleted BOOLEAN बूलियन हटा दिया गया है B deleted TIMESTAMP NOT NULL हटाया गया टाइमस्टैम्प शून्य नहीं है C deleted_at NULLABLE TIMESTAMP column शून्य टाइमस्टैम्प कॉलम में हटा दिया गया D archived_at संग्रहीत_पर ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) softDeletes(): adds deleted_at NULLABLE TIMESTAMP column for Eloquent SoftDeletes trait. व्याख्या (हिन्दी) SoftDeletes(): एलोक्वेंट SoftDeletes विशेषता के लिए NULLABLE TIMESTAMP कॉलम में delete_at जोड़ता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions $table->decimal('price',10,2) creates belongsTo(Post::class) on Comment means $table->timestamps() adds 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
365 Question 365 EN + हिं Medium GB $table->boolean('is_deleted') creates IN $table->boolean('is_deleted') बनाता है A INT(1) आईएनटी(1) B VARCHAR(5) वर्चर(5) C TINYINT(1) MySQL boolean column TINYINT(1) MySQL बूलियन कॉलम D BIT(1) बिट(1) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) boolean('col'): creates TINYINT(1) in MySQL (1=true, 0=false). व्याख्या (हिन्दी) बूलियन('col'): MySQL में TINYINT(1) बनाता है (1=सही, 0=गलत)। 🎯 Exam Perspective यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Medium", और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions $table->softDeletes() adds belongsTo(Post::class) on Comment means $table->json('metadata') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
366 Question 366 EN + हिं Medium GB $table->foreign('assignment_id')->references('id')->on('assignments') creates IN $table->foreign('assignment_id')->references('id')->on('assignments') बनाता है A Index only केवल सूचकांक B UNIQUE constraint अनोखी बाधा C PRIMARY KEY प्राथमिक कुंजी D Foreign key constraint referencing assignments.id असाइनमेंट.आईडी को संदर्भित करने वाली विदेशी कुंजी बाधा ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) foreign()->references()->on(): creates proper FK constraint with referential integrity. व्याख्या (हिन्दी) विदेशी()->संदर्भ()->पर(): संदर्भात्मक अखंडता के साथ उचित एफके बाधा बनाता है। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions Local scope scopeActive() on model allows $table->string('question') creates belongsTo(Post::class) on Comment means 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
367 Question 367 EN + हिं Medium GB $table->decimal('price',10,2) creates IN $table->दशमलव('कीमत',10,2) बनाता है A FLOAT(10,2) फ़्लोट(10,2) B DOUBLE(10,2) डबल(10,2) C DECIMAL(10,2) - 10 total digits 2 decimal places दशमलव(10,2) - 10 कुल अंक 2 दशमलव स्थान D INTEGER पूर्णांक ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) decimal(name,precision,scale): creates DECIMAL type - exact numeric for currency/financial data. व्याख्या (हिन्दी) दशमलव (नाम, परिशुद्धता, पैमाना): दशमलव प्रकार बनाता है - मुद्रा/वित्तीय डेटा के लिए सटीक संख्यात्मक। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions DB::table('questions')->pluck('question') returns $table->boolean('is_deleted') creates $table->text('solution') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
368 Question 368 EN + हिं Medium GB $table->json('metadata') creates IN $table->json('metadata') बनाता है A TEXT column पाठ स्तंभ B VARCHAR(4000) वर्चर(4000) C JSON column for native JSON storage देशी JSON भंडारण के लिए JSON कॉलम D BLOB ब्लॉब ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) json('col'): creates JSON column with native JSON support and validation. व्याख्या (हिन्दी) json('col'): मूल JSON समर्थन और सत्यापन के साथ JSON कॉलम बनाता है। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions hasMany(Comment::class) on Post means $table->index(['assignment_id','q_level']) creates $table->string('question') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
369 Question 369 EN + हिं Medium GB $table->index(['assignment_id','q_level']) creates IN $table->index(['assignment_id','q_level']) बनाता है A Two separate indexes दो अलग-अलग सूचकांक B UNIQUE index अद्वितीय सूचकांक C PRIMARY KEY प्राथमिक कुंजी D Composite index on (assignment_id, q_level) समग्र सूचकांक (असाइनमेंट_आईडी, क्यू_लेवल) पर ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) index(['col1','col2']): creates a composite index on multiple columns. व्याख्या (हिन्दी) इंडेक्स(['col1','col2']): एकाधिक कॉलम पर एक समग्र इंडेक्स बनाता है। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions $table->text('solution') creates paginate(15) returns Local scope scopeActive() on model allows 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
370 Question 370 EN + हिं Medium GB hasMany(Comment::class) on Post means IN पोस्ट पर hasMany(Comment::class) का मतलब है A Comment has many Posts कमेंट में कई पोस्ट हैं B Post belongs to Comment पोस्ट टिप्पणी से संबंधित है C Post HAS MANY Comments (FK post_id in comments table) पोस्ट में कई टिप्पणियाँ हैं (टिप्पणियाँ तालिका में FK post_id) D Many-to-many अनेक-से-अनेक ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) hasMany: Post has many Comments. FK (post_id) lives in Comments table. व्याख्या (हिन्दी) hasMany: पोस्ट में कई टिप्पणियाँ हैं। FK (post_id) टिप्पणी तालिका में रहता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions paginate(15) returns $table->index(['assignment_id','q_level']) creates $table->timestamps() adds 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
371 Question 371 EN + हिं Medium GB belongsTo(Post::class) on Comment means IN टिप्पणियाँ पर (पोस्ट::क्लास) का मतलब है A Post belongs to Comment पोस्ट टिप्पणी से संबंधित है B Comment HAS MANY Posts टिप्पणी में कई पोस्ट हैं C Comment belongs to ONE Post (stores FK post_id) टिप्पणी एक पोस्ट से संबंधित है (स्टोर FK पोस्ट_आईडी) D Many-to-many अनेक-से-अनेक ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) belongsTo: Comment belongs to Post. FK (post_id) is stored in comments table. व्याख्या (हिन्दी) इससे संबंधित: टिप्पणी पोस्ट से संबंधित है। FK (post_id) टिप्पणी तालिका में संग्रहीत है। 🎯 Exam Perspective यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions hasMany(Comment::class) on Post means $table->index(['assignment_id','q_level']) creates $table->boolean('is_deleted') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
372 Question 372 EN + हिं Medium GB Local scope scopeActive() on model allows IN मॉडल पर स्थानीय स्कोप scopeActive() अनुमति देता है A Creating views विचार बनाना B Reusable query constraint callable as Question::active()->get() पुन: प्रयोज्य क्वेरी बाधा को प्रश्न::सक्रिय()->प्राप्त() के रूप में कॉल किया जा सकता है C Migration shortcuts माइग्रेशन शॉर्टकट D Global application वैश्विक अनुप्रयोग ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Local scopes: define scopeActive() on model, use as Question::active()->get(). व्याख्या (हिन्दी) स्थानीय स्कोप: मॉडल पर स्कोपएक्टिव() को परिभाषित करें, प्रश्न::एक्टिव()->गेट() के रूप में उपयोग करें। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions hasMany(Comment::class) on Post means belongsTo(Post::class) on Comment means DB::table('questions')->pluck('question') returns 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
373 Question 373 EN + हिं Medium GB paginate(15) returns IN पेजिनेट(15) रिटर्न A All 15 records only सभी 15 रिकॉर्ड केवल B Paginator with 15 records per page plus metadata (total, pages, etc.) प्रति पृष्ठ 15 रिकॉर्ड प्लस मेटाडेटा (कुल, पृष्ठ, आदि) के साथ पेजिनेटर C Random 15 records यादृच्छिक 15 रिकॉर्ड D Error if over 15 records 15 से अधिक रिकॉर्ड होने पर त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) paginate(15): returns 15 records per page + pagination metadata for page navigation links. व्याख्या (हिन्दी) पेजिनेट(15): प्रति पेज 15 रिकॉर्ड + पेज नेविगेशन लिंक के लिए पेजिनेशन मेटाडेटा लौटाता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions $table->softDeletes() adds belongsTo(Post::class) on Comment means $table->foreign('assignment_id')->references('id')->on(... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
374 Question 374 EN + हिं Medium GB DB::table('questions')->pluck('question') returns IN DB::table('questions')->pluck('question') रिटर्न A Collection of stdClass objects stdClass वस्तुओं का संग्रह B Flat Collection of values from question column only केवल प्रश्न कॉलम से मूल्यों का फ्लैट संग्रह C Array of full rows पूरी पंक्तियों की श्रृंखला D Count गिनती करना ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) pluck('column'): returns flat Collection of values from that single column. व्याख्या (हिन्दी) प्लक ('कॉलम'): उस एकल कॉलम से मूल्यों का फ्लैट संग्रह लौटाता है। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions $table->text('solution') creates $table->index(['assignment_id','q_level']) creates $table->decimal('price',10,2) creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
375 Question 375 EN + हिं Medium GB DB::table('questions')->skip(10)->take(5)->get() returns IN डीबी::टेबल('प्रश्न')->स्किप(10)->टेक(5)->गेट() रिटर्न A First 10 questions पहले 10 प्रश्न B Last 5 questions अंतिम 5 प्रश्न C Questions 11 through 15 (offset 10, limit 5) प्रश्न 11 से 15 (ऑफ़सेट 10, सीमा 5) D 5 random 5 यादृच्छिक ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) skip(offset)->take(limit): SELECT * FROM questions LIMIT 5 OFFSET 10 → rows 11-15. व्याख्या (हिन्दी) स्किप(ऑफसेट)->टेक(लिमिट): चुनें * प्रश्नों में से सीमा 5 ऑफसेट 10 → पंक्तियाँ 11-15। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions paginate(15) returns belongsTo(Post::class) on Comment means $table->json('metadata') creates 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)