526 Question 526 EN + हिं Hard GB To soft-delete all questions for assignment_id=2 in Laravel IN लारवेल में असाइनमेंट_आईडी=2 के सभी प्रश्नों को सॉफ्ट-डिलीट करने के लिए A Question::where('assignment_id',2)->delete() with SoftDeletes trait प्रश्न::where('assignment_id',2)->delete() with SoftDeletes विशेषता B Question::where('assignment_id',2)->forceDelete() प्रश्न::कहां('असाइनमेंट_आईडी',2)->फोर्सडिलीट() C DB::table('questions')->where('assignment_id',2)->delete() डीबी::तालिका('प्रश्न')->कहां('असाइनमेंट_आईडी',2)->हटाएं() D Question::truncate() प्रश्न::काटना() ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) With SoftDeletes trait: delete() sets deleted_at timestamp instead of physically removing rows. व्याख्या (हिन्दी) SoftDeletes विशेषता के साथ: delete() पंक्तियों को भौतिक रूप से हटाने के बजाय टाइमस्टैम्प पर delete_at सेट करता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Hard" कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions DB::table('questions')->doesntExist() returns To restore soft-deleted questions in Laravel Question::withCount('options') in Laravel Eloquent 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
527 Question 527 EN + हिं Hard GB To permanently delete soft-deleted questions in Laravel IN लारवेल में सॉफ्ट-डिलीट किए गए प्रश्नों को स्थायी रूप से हटाने के लिए A Question::delete() प्रश्न::हटाएं() B Question::onlyTrashed()->forceDelete() प्रश्न::onlyTrashed()->forceDelete() C Question::withTrashed()->delete() प्रश्न::withTrashed()->delete() D Question::restore() प्रश्न::पुनर्स्थापित करें() ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) onlyTrashed()->forceDelete(): gets only soft-deleted records then permanently removes them from DB. व्याख्या (हिन्दी) ओनलीट्रैश्ड()->फोर्सडिलीट(): केवल सॉफ्ट-डिलीट किए गए रिकॉर्ड प्राप्त करता है और फिर उन्हें डीबी से स्थायी रूप से हटा देता है। 🎯 Exam Perspective यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Hard", और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions Which SQL lists all tables with their row counts DB::table('questions')->orderByRaw('FIELD(q_level,3,2,1... DB::table('questions')->value('question') returns 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
528 Question 528 EN + हिं Hard GB To restore soft-deleted questions in Laravel IN लारवेल में सॉफ्ट-डिलीट किए गए प्रश्नों को पुनर्स्थापित करने के लिए A Question::delete() प्रश्न::हटाएं() B Question::withTrashed()->restore() प्रश्न::withTrashed()->restore() C Question::onlyTrashed()->restore() प्रश्न::केवल ट्रैश्ड()->पुनर्स्थापित करें() D Question::create() प्रश्न::बनाएँ() ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) onlyTrashed()->restore(): gets only soft-deleted records and restores them (sets deleted_at to NULL). व्याख्या (हिन्दी) केवल ट्रैश्ड()->रिस्टोर(): केवल सॉफ्ट-डिलीट किए गए रिकॉर्ड प्राप्त करता है और उन्हें पुनर्स्थापित करता है (deleted_at को NULL पर सेट करता है)। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Hard"। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions Question::withCount('options') in Laravel Eloquent DB::table('questions')->selectRaw('COUNT(*) as total, A... EXPLAIN output 'type=ALL' in MySQL means 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
529 Question 529 EN + हिं Hard GB In Laravel, Question::where('assignment_id',1)->get() vs Question::where('assignment_id',1)->first() IN लारवेल में, प्रश्न::कहां('असाइनमेंट_आईडी',1)->प्राप्त() बनाम प्रश्न::कहां('असाइनमेंट_आईडी',1)->प्रथम() A No difference कोई फर्क नहीं B get() returns Collection of all matches; first() returns only the first matching model or NULL get() सभी मैचों का संग्रह लौटाता है; पहला() केवल पहला मिलान मॉडल या NULL लौटाता है C first() returns Collection; get() returns single model पहला() संग्रह लौटाता है; get() एकल मॉडल लौटाता है D Both return arrays दोनों रिटर्न ऐरे ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) get(): Collection of all matching rows. first(): single model instance (first match) or NULL. व्याख्या (हिन्दी) प्राप्त करें (): सभी मिलान पंक्तियों का संग्रह। पहला(): एकल मॉडल उदाहरण (पहला मिलान) या शून्य। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Hard" उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions Which SQL lists all tables with their row counts DB::table('questions')->selectRaw('COUNT(*) as total, A... To restore soft-deleted questions in Laravel 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
530 Question 530 EN + हिं Hard GB DB::table('questions')->value('question') returns IN DB::table('questions')->value('question') रिटर्न A All question values सभी प्रश्न मान B First question's text as a plain value (not Collection/model) पहले प्रश्न का पाठ सादे मान के रूप में (संग्रह/मॉडल नहीं) C Array of all questions सभी प्रश्नों की श्रृंखला D NULL always हमेशा शून्य ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) value('col'): executes query and returns single value from first row's specified column. व्याख्या (हिन्दी) वैल्यू ('col'): क्वेरी निष्पादित करता है और पहली पंक्ति के निर्दिष्ट कॉलम से एकल मान लौटाता है। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Hard"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions To restore soft-deleted questions in Laravel DB::table('questions')->selectRaw('COUNT(*) as total, A... DB::table('questions')->doesntExist() returns 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
531 Question 531 EN + हिं Hard GB DB::table('questions')->exists() returns IN DB::table('questions')->exists() रिटर्न A All rows सभी पंक्तियाँ B Count of rows पंक्तियों की गिनती C NULL व्यर्थ D Boolean: TRUE if at least one row matches the query, FALSE otherwise बूलियन: यदि कम से कम एक पंक्ति क्वेरी से मेल खाती है तो सत्य है, अन्यथा गलत है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) exists(): returns true/false whether any rows match the query - efficient (uses EXISTS in SQL). व्याख्या (हिन्दी) मौजूद(): सही/गलत लौटाता है कि क्या कोई पंक्तियाँ क्वेरी से मेल खाती हैं - कुशल (एसक्यूएल में EXISTS का उपयोग करता है)। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Hard"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions EXPLAIN output 'type=ALL' in MySQL means DB::table('questions')->orderByRaw('FIELD(q_level,3,2,1... Which Laravel method chains multiple OR conditions clea... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
532 Question 532 EN + हिं Hard GB DB::table('questions')->doesntExist() returns IN DB::table('questions')->doesntExist() रिटर्न A All rows सभी पंक्तियाँ B Count गिनती करना C NULL व्यर्थ D Boolean: TRUE if NO rows match the query बूलियन: यदि कोई पंक्तियाँ क्वेरी से मेल नहीं खातीं तो सत्य है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) doesntExist(): returns true when NO matching rows exist - opposite of exists(). व्याख्या (हिन्दी) DontExist(): जब कोई मिलान पंक्ति मौजूद नहीं होती है तो सत्य लौटाता है - अस्तित्व() के विपरीत। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Hard" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions To get questions grouped by q_level with count in Larav... DB::table('questions')->exists() returns DB::table('questions')->value('question') returns 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
533 Question 533 EN + हिं Hard GB Question::withCount('options') in Laravel Eloquent IN प्रश्न:: लारवेल एलोक्वेंट में गिनती('विकल्प') के साथ A Counts all questions सभी प्रश्नों को गिनता है B Returns options table रिटर्न विकल्प तालिका C Adds options_count attribute with count of related options संबंधित विकल्पों की गिनती के साथ option_count विशेषता जोड़ता है D Throws error त्रुटि फेंकता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) withCount('relation'): adds a {relation}_count attribute to each model with the count of related records. व्याख्या (हिन्दी) withCount('relation'): संबंधित रिकॉर्ड की गिनती के साथ प्रत्येक मॉडल में एक {relation}_count विशेषता जोड़ता है। 🎯 Exam Perspective यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Hard", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions DB::table('questions')->selectRaw('COUNT(*) as total, A... EXPLAIN output 'type=ALL' in MySQL means To restore soft-deleted questions in Laravel 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
534 Question 534 EN + हिं Hard GB DB::table('questions')->orderByRaw('FIELD(q_level,3,2,1)')->get() in MySQL IN DB::table('questions')->orderByRaw('FIELD(q_level,3,2,1)')->get() MySQL में A Orders alphabetically वर्णानुक्रम में आदेश B Orders randomly बेतरतीब ढंग से आदेश C Orders by q_level ascending q_level आरोही क्रम से आदेश D Orders by custom field order: 3 first, then 2, then 1 कस्टम फ़ील्ड क्रम के अनुसार आदेश: पहले 3, फिर 2, फिर 1 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) FIELD(col,v1,v2,v3): MySQL function returning position in list, enabling custom sort order. व्याख्या (हिन्दी) FIELD(col,v1,v2,v3): MySQL फ़ंक्शन सूची में स्थिति लौटाता है, कस्टम सॉर्ट ऑर्डर सक्षम करता है। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Hard"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions DB::table('questions')->exists() returns EXPLAIN output 'type=ALL' in MySQL means To soft-delete all questions for assignment_id=2 in Lar... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
535 Question 535 EN + हिं Hard GB DB::table('questions')->selectRaw('COUNT(*) as total, AVG(q_level) as avg_level')->first() IN DB::table('questions')->selectRaw('COUNT(*) as total, AVG(q_level) as avg_level')->first() A Returns all questions सभी प्रश्न लौटाता है B Returns error त्रुटि लौटाता है C Returns first question only केवल पहला प्रश्न लौटाता है D Returns a stdClass with total count and average q_level कुल गिनती और औसत q_level के साथ एक stdClass लौटाता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) selectRaw with aggregates returns single row with computed total and avg_level values. व्याख्या (हिन्दी) समुच्चय के साथ चयन रॉ परिकलित कुल और avg_level मानों के साथ एकल पंक्ति लौटाता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Hard" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions In Laravel, Question::where('assignment_id',1)->get() v... DB::table('questions')->orderByRaw('FIELD(q_level,3,2,1... EXPLAIN output 'type=ALL' in MySQL means 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
536 Question 536 EN + हिं Hard GB To get questions grouped by q_level with count in Laravel IN लारवेल में गिनती के साथ q_level द्वारा समूहीकृत प्रश्न प्राप्त करने के लिए A Question::all() प्रश्न::सभी() B DB::table('questions')->groupBy('q_level')->selectRaw('q_level,COUNT(*) as cnt')->get() DB::table('प्रश्न')->groupBy('q_level')->selectRaw('q_level,COUNT(*) as cnt')->get() C Question::count('q_level') प्रश्न::गिनती('q_level') D DB::table('questions')->count() डीबी::टेबल('प्रश्न')->गिनती() ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) GROUP BY q_level + selectRaw with COUNT(*): returns count per each q_level value. व्याख्या (हिन्दी) q_level द्वारा ग्रुप + COUNT(*) के साथ सेलेक्ट रॉ: प्रत्येक q_level मान के अनुसार गिनती लौटाता है। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Hard"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions Which SQL finds the n-th highest salary (n=3rd highest) To soft-delete all questions for assignment_id=2 in Lar... Question::withCount('options') in Laravel Eloquent 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
537 Question 537 EN + हिं Hard GB Which Laravel method chains multiple OR conditions cleanly IN कौन सी लारवेल विधि एकाधिक OR स्थितियों को साफ़-साफ़ ढंग से जोड़ती है A Multiple orWhere() calls एकाधिक याwhere() कॉल B ->where(function($q){ $q->where('a',1)->orWhere('b',2) }) for grouped OR ->कहां(फ़ंक्शन($q){ $q->कहां('ए',1)->याकहां('बी',2) }) समूहीकृत के लिए या C Only raw WHERE clause केवल कच्चा WHERE खंड D Cannot use multiple ORs एकाधिक OR का उपयोग नहीं किया जा सकता ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Grouped WHERE with closure: generates WHERE (a=1 OR b=2) with proper parentheses grouping. व्याख्या (हिन्दी) क्लोजर के साथ WHERE को समूहीकृत किया गया: उचित कोष्ठक समूहन के साथ WHERE (a=1 या b=2) उत्पन्न करता है। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Hard"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions Question::withCount('options') in Laravel Eloquent In Laravel, Question::where('assignment_id',1)->get() v... Which SQL finds the n-th highest salary (n=3rd highest) 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
538 Question 538 EN + हिं Hard GB Which SQL finds the n-th highest salary (n=3rd highest) IN कौन सा SQL n-वां उच्चतम वेतन पाता है (n=तीसरा उच्चतम) A SELECT MAX(salary) FROM emp नियोक्ता से अधिकतम (वेतन) चुनें B SELECT salary FROM emp ORDER BY salary DESC LIMIT 2,1 वेतन विवरण सीमा 2,1 के अनुसार रोजगार आदेश से वेतन का चयन करें C SELECT AVG(salary) FROM emp कर्मचारी वर्ग से औसत (वेतन) चुनें D SELECT MIN(salary) FROM emp कर्मचारी से न्यूनतम (वेतन) चुनें ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) LIMIT 2,1: skip 2 rows (1st and 2nd highest), take 1 row = 3rd highest salary. व्याख्या (हिन्दी) सीमा 2,1: 2 पंक्तियाँ छोड़ें (पहली और दूसरी उच्चतम), 1 पंक्ति लें = तीसरा उच्चतम वेतन। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Hard" कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions Question::withCount('options') in Laravel Eloquent To soft-delete all questions for assignment_id=2 in Lar... In Laravel, Question::where('assignment_id',1)->get() v... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
539 Question 539 EN + हिं Hard GB Which SQL lists all tables with their row counts IN कौन सा SQL सभी तालिकाओं को उनकी पंक्ति संख्या के साथ सूचीबद्ध करता है A SHOW TABLES तालिकाएँ दिखाएँ B SELECT TABLE_NAME, TABLE_ROWS FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname' Information_schema.TABLES से TABLE_NAME, TABLE_ROWS चुनें जहां TABLE_SCHEMA='dbname' C COUNT(*) FROM all tables सभी तालिकाओं से गिनती(*)। D SELECT * FROM sys.tables Sys.tables से * चुनें ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) information_schema.TABLES contains TABLE_NAME and TABLE_ROWS for all tables in a schema. व्याख्या (हिन्दी) information_schema.TABLES में स्कीमा की सभी तालिकाओं के लिए TABLE_NAME और TABLE_ROWS शामिल हैं। 🎯 Exam Perspective यह सवाल DBMS ("Introduction to DBMS" sub-topic) category का है — difficulty level "Hard", और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions DB::table('questions')->doesntExist() returns To get questions grouped by q_level with count in Larav... DB::table('questions')->value('question') returns 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
540 Question 540 EN + हिं Hard GB EXPLAIN output 'type=ALL' in MySQL means IN MySQL में EXPLAIN आउटपुट 'type=ALL' का अर्थ है A Index is being used सूचकांक का प्रयोग किया जा रहा है B Only 1 row examined केवल 1 पंक्ति की जांच की गई C Join uses ref lookup जॉइन रेफरी लुकअप का उपयोग करता है D Full table scan - no index used (worst case for large tables) पूर्ण तालिका स्कैन - कोई अनुक्रमणिका उपयोग नहीं की गई (बड़ी तालिकाओं के लिए सबसे खराब स्थिति) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) EXPLAIN type=ALL: full table scan examining every row. Should be optimized with appropriate index. व्याख्या (हिन्दी) व्याख्या प्रकार=सभी: पूर्ण तालिका स्कैन प्रत्येक पंक्ति की जांच करता है। उपयुक्त सूचकांक के साथ अनुकूलित किया जाना चाहिए। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Hard"। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions To get questions grouped by q_level with count in Larav... DB::table('questions')->exists() returns Which SQL finds the n-th highest salary (n=3rd highest) 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)