631 Question 631 EN + हिं Medium GB Which Laravel config file sets database connection settings IN कौन सी लारवेल कॉन्फ़िग फ़ाइल डेटाबेस कनेक्शन सेटिंग्स सेट करती है A .env only केवल .env B config/app.php config/app.php C config/cache.php config/cache.php D config/database.php (reads from .env variables) config/database.php (.env वेरिएबल से पढ़ता है) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) config/database.php: defines database connections (driver, host, port, database, username, password from .env). व्याख्या (हिन्दी) config/database.php: डेटाबेस कनेक्शन (ड्राइवर, होस्ट, पोर्ट, डेटाबेस, उपयोगकर्ता नाम, .env से पासवर्ड) को परिभाषित करता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions To add a new column 'marks' INT DEFAULT 0 to existing q... $table->change() in migration is used to Which PHP/Laravel code correctly inserts a question mat... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
632 Question 632 EN + हिं Medium GB DB_CONNECTION=mysql in .env sets IN DB_CONNECTION=mysql .env सेट में A The database name डेटाबेस का नाम B The username उपयोक्तानाम C The table prefix तालिका उपसर्ग D The database driver (mysql, pgsql, sqlite, sqlsrv) डेटाबेस ड्राइवर (mysql, pgsql, sqlite, sqlsrv) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) DB_CONNECTION: specifies which database driver/type to use (mysql, pgsql, sqlite, sqlsrv). व्याख्या (हिन्दी) DB_CONNECTION: निर्दिष्ट करता है कि किस डेटाबेस ड्राइवर/प्रकार का उपयोग करना है (mysql, pgsql, sqlite, sqlsrv)। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions To safely drop a column that might not exist in migrati... Which PHP/Laravel code correctly inserts a question mat... Which is the correct way to handle database errors in L... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
633 Question 633 EN + हिं Medium GB To add a new column 'marks' INT DEFAULT 0 to existing questions table in Laravel migration IN लारवेल माइग्रेशन में मौजूदा प्रश्न तालिका में एक नया कॉलम 'चिह्न' INT DEFAULT 0 जोड़ने के लिए A Schema::create('questions',fn($t)=>$t->integer('marks')) स्कीमा::create('questions',fn($t)=>$t->integer('marks')) B ALTER TABLE questions ADD marks INT DEFAULT 0 परिवर्तन तालिका प्रश्न अंक जोड़ें INT डिफ़ॉल्ट 0 C Schema::table('questions', function(Blueprint $t){ $t->integer('marks')->default(0); }) स्कीमा::टेबल('प्रश्न', फ़ंक्शन(ब्लूप्रिंट $t){ $t->पूर्णांक('अंक')->डिफ़ॉल्ट(0); }) D DB::statement('ALTER TABLE...') डीबी::कथन('तालिका बदलें...') ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Schema::table() (not create()) modifies existing table. $t->integer('marks')->default(0) adds the column. व्याख्या (हिन्दी) Schema::table() (create नहीं()) मौजूदा तालिका को संशोधित करता है। $t->integer('marks')->default(0) कॉलम जोड़ता है। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions Which PHP/Laravel code correctly inserts a question mat... Which is the correct way to handle database errors in L... $table->after('solution') in migration column definitio... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
634 Question 634 EN + हिं Medium GB $table->after('solution') in migration column definition IN $table->after('solution') माइग्रेशन कॉलम परिभाषा में A Removes the column after solution समाधान के बाद कॉलम हटा देता है B Places the new column AFTER the solution column in the table structure तालिका संरचना में समाधान कॉलम के बाद नया कॉलम रखता है C Adds constraint after solution समाधान के बाद बाधा जोड़ता है D References solution column संदर्भ समाधान स्तंभ ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ->after('col'): places new column immediately after specified column in MySQL. व्याख्या (हिन्दी) ->after('col'): MySQL में निर्दिष्ट कॉलम के तुरंत बाद नया कॉलम रखता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions Which PHP/Laravel code correctly inserts a question mat... Which Laravel config file sets database connection sett... To safely drop a column that might not exist in migrati... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
635 Question 635 EN + हिं Medium GB $table->change() in migration is used to IN माइग्रेशन में $table->change() का उपयोग किया जाता है A Drop a column एक कॉलम छोड़ें B Add new column नया कॉलम जोड़ें C Rename table तालिका का नाम बदलें D Modify existing column definition (requires doctrine/dbal package) मौजूदा कॉलम परिभाषा को संशोधित करें (सिद्धांत/डीबीएएल पैकेज की आवश्यकता है) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ->change(): modifies the definition of an existing column (requires doctrine/dbal in older Laravel versions). व्याख्या (हिन्दी) ->परिवर्तन(): मौजूदा कॉलम की परिभाषा को संशोधित करता है (पुराने लारवेल संस्करणों में सिद्धांत/डीबीएएल की आवश्यकता होती है)। 🎯 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->after('solution') in migration column definitio... DB_CONNECTION=mysql in .env sets Which SQL command shows FK constraints on questions tab... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
636 Question 636 EN + हिं Medium GB Which SQL command shows FK constraints on questions table in MySQL IN कौन सा SQL कमांड MySQL में प्रश्न तालिका पर FK बाधाओं को दिखाता है A SHOW TABLES तालिकाएँ दिखाएँ B DESCRIBE questions प्रश्नों का वर्णन करें C SHOW COLUMNS FROM questions प्रश्नों के कॉलम दिखाएं D SELECT * FROM information_schema.KEY_COLUMN_USAGE WHERE TABLE_NAME='questions' Information_schema.KEY_COLUMN_USAGE से * चुनें जहां TABLE_NAME='questions' ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) information_schema.KEY_COLUMN_USAGE: shows all key constraints including foreign keys for a table. व्याख्या (हिन्दी) information_schema.KEY_COLUMN_USAGE: किसी तालिका के लिए विदेशी कुंजियों सहित सभी प्रमुख बाधाओं को दिखाता है। 🎯 Exam Perspective यह प्रश्न DBMS ("Introduction to DBMS" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions Which Laravel config file sets database connection sett... Which PHP/Laravel code correctly inserts a question mat... DB_CONNECTION=mysql in .env sets 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
637 Question 637 EN + हिं Medium GB To safely drop a column that might not exist in migration IN उस कॉलम को सुरक्षित रूप से हटाने के लिए जो माइग्रेशन में मौजूद नहीं हो सकता है A $table->dropColumn('old_col') $टेबल->ड्रॉपकॉलम('old_col') B $table->dropIfExists('old_col') $table->dropIfExists('old_col') C DROP COLUMN IF EXISTS old_col यदि पुराना कॉलम मौजूद है तो कॉलम छोड़ें D Schema::table('questions',fn($t)=>$t->dropColumn('old_col')) in a try-catch or use Schema::hasColumn() check first स्कीमा::टेबल('प्रश्न',fn($t)=>$t->dropColumn('old_col')) ट्राई-कैच में या पहले Schema::hasColumn() चेक का उपयोग करें ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Schema::hasColumn('table','col') first, then dropColumn if it exists - prevents migration failure. व्याख्या (हिन्दी) Schema::hasColumn('table','col') पहले, फिर ड्रॉपकॉलम यदि मौजूद है - माइग्रेशन विफलता को रोकता है। 🎯 Exam Perspective DBMS ("Introduction to DBMS" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions Which Laravel config file sets database connection sett... Which SQL command shows FK constraints on questions tab... To add a new column 'marks' INT DEFAULT 0 to existing q... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
638 Question 638 EN + हिं Medium GB Which is the correct way to handle database errors in Laravel IN लारवेल में डेटाबेस त्रुटियों को संभालने का सही तरीका कौन सा है A Use die() डाई() का प्रयोग करें B Ignore errors त्रुटियों पर ध्यान न दें C Use PHP warnings PHP चेतावनियों का प्रयोग करें D Catch Illuminate\\Database\\QueryException for DB errors डीबी त्रुटियों के लिए इल्यूमिनेट\\डेटाबेस\\QueryException पकड़ें ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) QueryException: Laravel's database exception class wrapping PDO exceptions with query context. व्याख्या (हिन्दी) QueryException: लारवेल का डेटाबेस अपवाद वर्ग PDO अपवादों को क्वेरी संदर्भ के साथ लपेटता है। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में DBMS ("Introduction to DBMS" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions Which SQL command shows FK constraints on questions tab... Which PHP/Laravel code correctly inserts a question mat... $table->change() in migration is used to 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)
639 Question 639 EN + हिं Medium GB Which PHP/Laravel code correctly inserts a question matching the screenshot table format IN कौन सा PHP/Laravel कोड स्क्रीनशॉट तालिका प्रारूप से मेल खाने वाले प्रश्न को सही ढंग से सम्मिलित करता है A DB::insert('INSERT INTO questions VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',[$id,$type,$aid,$level,$q,$a,$b,$c,$d,$e,$ans,$sol,$del,$created,$updated]) DB::insert('प्रश्नों में मान डालें (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',[$id,$type,$aid,$level,$q,$a,$b,$c,$d,$e,$ans,$sol,$del,$created,$updated]) B Question::make($data) प्रश्न::बनाना($डेटा) C DB::table('questions')->insertGetId(['question_type'=>1,'assignment_id'=>1,'q_level'=>null,'question'=>'Q?','option_a'=>'A','option_b'=>'B','option_c'=>'C','option_d'=>'D','option_e'=>null,'right_answer_id'=>'option_a','solution'=>'A is correct','is_deleted'=>0,'created_at'=>now(),'updated_at'=>now()]) DB::table('questions')->insertGetId(['question_type'=>1,'assignment_id'=>1,'q_level'=>null,'question'=>'Q?','option_ a'=>'A','option_b'=>'B','option_c'=>'C','option_d'=>'D','option_e'=>null,'right_answer_id'=>'option_a','solution'=>'A सही है','is_deleted'=>0,'created_at'=>now(),'updated_at'=>now()]) D Both A and C are correct ए और सी दोनों सही हैं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Both raw SQL with bindings and Query Builder insertGetId() are valid ways to insert matching the table structure. व्याख्या (हिन्दी) बाइंडिंग के साथ कच्चे SQL और क्वेरी बिल्डर InsertGetId() दोनों तालिका संरचना से मेल खाने वाले सम्मिलित करने के वैध तरीके हैं। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो DBMS ("Introduction to DBMS" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions $table->change() in migration is used to $table->after('solution') in migration column definitio... Which Laravel config file sets database connection sett... 📚 Related Topic Database Architecture (135) Data Models (138) ER Model (138)