2641 Question 2641 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 से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions $table->index(['assignment_id','q_level']) creates whereIn('id',[1,2,3]) generates $table->decimal('price',10,2) creates 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2642 Question 2642 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 SSC, Railway, Banking और State PCS जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions belongsTo(Post::class) on Comment means $table->softDeletes() adds whereIn('id',[1,2,3]) generates 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2643 Question 2643 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 अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions $table->decimal('price',10,2) creates paginate(15) returns DB::table('questions')->max('id') executes 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2644 Question 2644 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 के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions DB::table('questions')->skip(10)->take(5)->get() return... whereNull('q_level') generates paginate(15) returns 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2645 Question 2645 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 यह सवाल DBMS category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions $table->boolean('is_deleted') creates belongsTo(Post::class) on Comment means $table->index(['assignment_id','q_level']) creates 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2646 Question 2646 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 यह प्रश्न DBMS की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions DB::table('questions')->skip(10)->take(5)->get() return... paginate(15) returns $table->decimal('price',10,2) creates 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2647 Question 2647 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 से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions whereNull('q_level') generates $table->foreign('assignment_id')->references('id')->on(... belongsTo(Post::class) on Comment means 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2648 Question 2648 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 UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions hasMany(Comment::class) on Post means $table->index(['assignment_id','q_level']) creates Local scope scopeActive() on model allows 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2649 Question 2649 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 अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions paginate(15) returns $table->foreign('assignment_id')->references('id')->on(... DB::table('questions')->pluck('question') returns 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2650 Question 2650 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 के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions $table->decimal('price',10,2) creates DB::table('questions')->skip(10)->take(5)->get() return... $table->index(['assignment_id','q_level']) creates 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2651 Question 2651 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 यह सवाल DBMS category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions paginate(15) returns whereIn('id',[1,2,3]) generates DB::table('questions')->skip(10)->take(5)->get() return... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2652 Question 2652 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 यह प्रश्न DBMS की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions $table->softDeletes() adds $table->json('metadata') creates $table->foreign('assignment_id')->references('id')->on(... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2653 Question 2653 EN + हिं Medium GB whereIn('id',[1,2,3]) generates IN WhileIn('id',[1,2,3]) उत्पन्न करता है A WHERE id NOT IN (1,2,3) जहां आईडी नहीं है (1,2,3) B WHERE id IN (1,2,3) कहां आईडी में (1,2,3) C WHERE id BETWEEN 1 AND 3 जहां आईडी 1 और 3 के बीच है D WHERE id=1 AND id=2 AND id=3 जहां आईडी=1 और आईडी=2 और आईडी=3 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) whereIn: generates WHERE id IN (1, 2, 3). व्याख्या (हिन्दी) व्हेयरइन: व्हेयर आईडी इन (1, 2, 3) उत्पन्न करता है। 🎯 Exam Perspective DBMS से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions paginate(15) returns DB::table('questions')->max('id') executes Local scope scopeActive() on model allows 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2654 Question 2654 EN + हिं Medium GB whereNull('q_level') generates IN whereNull('q_level') उत्पन्न करता है A WHERE q_level = NULL जहां q_level = शून्य B WHERE q_level IS NULL जहां q_level शून्य है C WHERE q_level = '' जहां q_level = '' D WHERE q_level NOT NULL जहां q_level शून्य नहीं है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) whereNull: generates WHERE q_level IS NULL (not = NULL which is always UNKNOWN in SQL). व्याख्या (हिन्दी) whereNull: WHERE q_level IS NULL उत्पन्न करता है (नहीं = NULL जो SQL में हमेशा अज्ञात होता है)। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में DBMS से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions $table->softDeletes() adds belongsTo(Post::class) on Comment means $table->foreign('assignment_id')->references('id')->on(... 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)
2655 Question 2655 EN + हिं Medium GB DB::table('questions')->max('id') executes IN DB::table('questions')->max('id') निष्पादित करता है A SELECT * FROM questions प्रश्नों में से * चुनें B SELECT MAX(id) FROM questions प्रश्नों में से MAX(id) चुनें C SELECT id FROM questions ORDER BY id DESC प्रश्नों में से आईडी चुनें, आईडी विवरण के अनुसार ऑर्डर करें D UPDATE questions अद्यतन प्रश्न ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) max('column'): aggregates SELECT MAX(column) FROM table. व्याख्या (हिन्दी) अधिकतम('कॉलम'): समुच्चय तालिका से MAX(कॉलम) का चयन करें। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो DBMS का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions $table->index(['assignment_id','q_level']) creates $table->json('metadata') creates $table->softDeletes() adds 📚 Related Topic Introduction to DBMS (639) Database Architecture (135) Data Models (138)