Connection restored!
Notification Center
Loading notifications...
Loading announcements...
INCOMING 1v1 DUEL! 10:00
@friend challenged you!
Topic · Room #HQ-0000
Accept & Join
Mention Scholar ↑↓ Enter / Click
Last time you were studying on Page 2.
STUDY & LEARNING DECK Filtered: Most Important

Govt Exam PYQs

Showing 25 of 1220 total questions (Latest Added First).

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

Try clearing filters or unchecking "Saved" / "Hide".

Question 501 NEW
Most Important EASY
Which statement best summarizes why MySQL is one of the world's most popular Relational Database Management Systems?
कौन सा कथन सबसे अच्छी तरह बताता है कि MySQL दुनिया के सबसे लोकप्रिय रिलेशनल डेटाबेस मैनेजमेंट सिस्टम में से एक क्यों है?
A
It is open-source, fast, reliable, ACID-compliant (via InnoDB), cross-platform, and integrates seamlessly with Java, Python, PHP, and cloud platforms
यह ओपन-सोर्स, तेज़, विश्वसनीय, ACID-अनुपालक (InnoDB द्वारा), क्रॉस-प्लेटफॉर्म है और Java, Python, PHP व क्लाउड के साथ आसानी से जुड़ता है
Correct
B
It works only without SQL
यह केवल बिना SQL के काम करता है
C
It cannot store text or dates
यह टेक्स्ट या तारीख स्टोर नहीं कर सकता
D
It runs only on MS-DOS
यह केवल MS-DOS पर चलता है
Solution Breakdown:
-> MySQL powers millions of websites, enterprise applications, and cloud databases worldwide due to its speed, reliability, and strong community support. -> Hence, Option (A) is the correct answer.
-> अपनी गति, सुरक्षा और ओपन-सोर्स प्रकृति के कारण MySQL दुनिया भर की लाखों वेबसाइटों और एप्लिकेशनों का आधार है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 502 NEW
Most Important EASY
Which SQL clause is used in MySQL to prevent returning 1,000,000 rows by mistake and instead fetch only a small page of results?
गलती से लाखों पंक्तियाँ लोड होने से बचने और केवल एक छोटा परिणाम सेट (जैसे 20 पंक्तियाँ) प्राप्त करने के लिए MySQL में किस क्लॉज़ का उपयोग किया जाता है?
A
`LIMIT`
`LIMIT`
Correct
B
`STOP`
`STOP`
C
`CUT`
`CUT`
D
`END`
`END`
Solution Breakdown:
-> Adding `LIMIT 20` caps the query output to at most 20 rows, keeping web applications fast and responsive. -> Hence, Option (A) is the correct answer.
-> `LIMIT` क्लॉज़ क्वेरी से आने वाली पंक्तियों की संख्या को सीमित करके एप्लिकेशन को तेज़ रखता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 503 NEW
Most Important MEDIUM
Match the MySQL Command with its Action: 1. `SHOW TABLES;` — (a) Exports database backup to `.sql` file 2. `DESC students;` — (b) Selects a database to work in 3. `USE school_db;` — (c) Lists all tables in the current database 4. `mysqldump` — (d) Displays column names, types, and keys of `students`
MySQL कमांड को उसके कार्य से सुमेलित करें: 1. `SHOW TABLES;` — (a) डेटाबेस का बैकअप `.sql` फाइल में एक्सपोर्ट करता है 2. `DESC students;` — (b) काम करने के लिए डेटाबेस चुनता है 3. `USE school_db;` — (c) वर्तमान डेटाबेस की सभी टेबल्स की सूची दिखाता है 4. `mysqldump` — (d) `students` टेबल के कॉलम, प्रकार और कीज़ दिखाता है
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-c, 2-b, 3-d, 4-a
1-c, 2-b, 3-d, 4-a
C
1-c, 2-d, 3-b, 4-a
1-c, 2-d, 3-b, 4-a
Correct
D
1-d, 2-c, 3-b, 4-a
1-d, 2-c, 3-b, 4-a
Solution Breakdown:
-> Correct matches: `SHOW TABLES` (Lists tables), `DESC` (Shows table structure), `USE` (Selects DB), `mysqldump` (Backup utility). -> Hence, Option (C) is the correct answer.
-> सही मिलान: 1-c, 2-d, 3-b, 4-a। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 504 NEW
Most Important MEDIUM
Match the MySQL Function with its Category: 1. `CONCAT()` — (a) Date/Time Function 2. `NOW()` — (b) Aggregate Function 3. `ROUND()` — (c) String Function 4. `AVG()` — (d) Math / Numeric Function
MySQL फंक्शन को उसकी श्रेणी से सुमेलित करें: 1. `CONCAT()` — (a) डेट/टाइम फंक्शन 2. `NOW()` — (b) एग्रीगेट फंक्शन 3. `ROUND()` — (c) स्ट्रिंग फंक्शन 4. `AVG()` — (d) गणितीय फंक्शन
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-c, 2-a, 3-d, 4-b
1-c, 2-a, 3-d, 4-b
Correct
C
1-c, 2-d, 3-a, 4-b
1-c, 2-d, 3-a, 4-b
D
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
Solution Breakdown:
-> Correct matches: `CONCAT()` (String), `NOW()` (Date/Time), `ROUND()` (Math), `AVG()` (Aggregate). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-c, 2-a, 3-d, 4-b। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 505 NEW
Most Important EASY
Identify the ODD one out from the following SQL functions:
निम्नलिखित SQL फंक्शंस में से विषम की पहचान करें:
A
`SUM()`
`SUM()`
B
`AVG()`
`AVG()`
C
`MAX()`
`MAX()`
D
`TRIM()`
`TRIM()`
Correct
Solution Breakdown:
-> `SUM()`, `AVG()`, and `MAX()` are Aggregate Functions operating on multiple rows, whereas `TRIM()` is a String Function operating on a single text value. -> Hence, Option (D) is the correct answer.
-> `TRIM()` एक स्ट्रिंग फंक्शन है, जबकि बाकी तीनों एग्रीगेट फंक्शन हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 506 NEW
Most Important EASY
Identify the ODD one out from the following MySQL functions:
निम्नलिखित MySQL फंक्शंस में से विषम की पहचान करें:
A
`UPPER()`
`UPPER()`
B
`LOWER()`
`LOWER()`
C
`CONCAT()`
`CONCAT()`
D
`CURDATE()`
`CURDATE()`
Correct
Solution Breakdown:
-> `UPPER()`, `LOWER()`, and `CONCAT()` are String functions, whereas `CURDATE()` is a Date/Time function. -> Hence, Option (D) is the correct answer.
-> `CURDATE()` एक डेट/टाइम फंक्शन है, जबकि बाकी तीनों स्ट्रिंग फंक्शन हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 507 NEW
Most Important MEDIUM
Evaluate the following statements about SQL/MySQL: (I) `WHERE` clause can directly use aggregate functions like `SUM(salary) > 50000`. (II) `HAVING` clause is used to filter grouped results after `GROUP BY`.
SQL/MySQL के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) `WHERE` क्लॉज़ सीधे `SUM(salary) > 50000` जैसे एग्रीगेट फंक्शन का उपयोग कर सकता है। (II) `HAVING` क्लॉज़ का उपयोग `GROUP BY` के बाद समूहों को फ़िल्टर करने के लिए होता है।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
C
Only (II) is true
केवल (II) सत्य है
Correct
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is false because `WHERE` cannot use aggregate functions directly. Statement (II) is true. -> Hence, Option (C) is the correct answer.
-> कथन (I) असत्य है और कथन (II) सत्य है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 508 NEW
Most Important MEDIUM
Evaluate the following statements about MySQL: (I) `SHOW DATABASES;` lists all databases on the MySQL server. (II) `InnoDB` is MySQL's default storage engine and supports ACID transactions.
MySQL के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) `SHOW DATABASES;` MySQL सर्वर पर मौजूद सभी डेटाबेस की सूची दिखाता है। (II) `InnoDB` MySQL का डिफ़ॉल्ट स्टोरेज इंजन है और ACID ट्रांज़ैक्शन को सपोर्ट करता है।
A
Only (I) is true
केवल (I) सत्य है
B
Only (II) is true
केवल (II) सत्य है
C
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Both statements are completely accurate MySQL facts. -> Hence, Option (C) is the correct answer.
-> दोनों कथन बिल्कुल सही हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 509 NEW
Most Important MEDIUM
What is "Collation" in MySQL (e.g., `utf8mb4_general_ci`)?
MySQL में "कोलेशन" (Collation) क्या होता है?
A
The set of rules that defines how text characters are compared and sorted (e.g., `_ci` means Case-Insensitive comparison)
नियमों का वह समूह जो तय करता है कि टेक्स्ट अक्षरों की तुलना और सॉर्टिंग कैसे होगी (जैसे `_ci` का अर्थ केस-इनसेंसिटिव तुलना है)
Correct
B
Compressing a table
टेबल को कंप्रेस करना
C
Backing up a database
डेटाबेस का बैकअप लेना
D
Counting rows
पंक्तियाँ गिनना
Solution Breakdown:
-> Because default MySQL collations end in `_ci` (case-insensitive), `'Delhi'` and `'delhi'` match as equal in `WHERE` comparisons unless a `_cs` (case-sensitive) or `_bin` collation is used. -> Hence, Option (A) is the correct answer.
-> कोलेशन टेक्स्ट की तुलना और सॉर्टिंग के नियम तय करता है (`_ci` = केस-इनसेंसिटिव, `_cs` = केस-सेंसिटिव)। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 510 NEW
Most Important EASY
What is the default character set in modern MySQL 8.0 that fully supports all global languages (including Hindi/Devanagari) and 4-byte Emojis?
आधुनिक MySQL 8.0 में डिफ़ॉल्ट कैरेक्टर सेट कौन सा है जो हिंदी और इमोजी सहित सभी वैश्विक भाषाओं को पूरी तरह सपोर्ट करता है?
A
`utf8mb4`
`utf8mb4`
Correct
B
`ascii`
`ascii`
C
`latin1`
`latin1`
D
`cp1252`
`cp1252`
Solution Breakdown:
-> `utf8mb4` supports full 4-byte UTF-8 Unicode characters (unlike older MySQL `utf8`/`utf8mb3` which only supported 3 bytes and failed on emojis). -> Hence, Option (A) is the correct answer.
-> `utf8mb4` आधुनिक MySQL 8.0 का डिफ़ॉल्ट कैरेक्टर सेट है जो हिंदी और इमोजी सहित पूरे यूनिकोड को सपोर्ट करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 511 NEW
Most Important MEDIUM
What is a "Composite Index" in MySQL?
MySQL में "कम्पोज़िट इंडेक्स" क्या होता है?
A
A single index created across TWO OR MORE columns together (e.g., `CREATE INDEX idx_name ON users(last_name, first_name);`)
दो या अधिक कॉलम को मिलाकर बनाया गया एक सिंगल इंडेक्स
Correct
B
An index that stores images
इमेज स्टोर करने वाला इंडेक्स
C
A backup of all indexes
सभी इंडेक्स का बैकअप
D
A deleted index
डिलीट किया गया इंडेक्स
Solution Breakdown:
-> Composite indexes speed up queries that filter on multiple columns simultaneously (following the Leftmost Prefix rule). -> Hence, Option (A) is the correct answer.
-> कम्पोज़िट इंडेक्स उन क्वेरी को तेज़ करता है जिनमें एक साथ कई कॉलम पर `WHERE` शर्त लगी हो। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 512 NEW
Most Important MEDIUM
Which SQL query correctly counts how many students are in each `city`, showing ONLY cities that have MORE THAN 5 students?
प्रत्येक `city` में छात्रों की संख्या गिनने और केवल उन शहरों को दिखाने के लिए जिनमें 5 से अधिक छात्र हैं, कौन सी SQL क्वेरी सही है?
A
`SELECT city, COUNT(*) FROM students GROUP BY city HAVING COUNT(*) > 5;`
`SELECT city, COUNT(*) FROM students GROUP BY city HAVING COUNT(*) > 5;`
Correct
B
`SELECT city, COUNT(*) FROM students WHERE COUNT(*) > 5 GROUP BY city;`
`SELECT city, COUNT(*) FROM students WHERE COUNT(*) > 5 GROUP BY city;`
C
`SELECT city FROM students ORDER BY COUNT(*) > 5;`
`SELECT city FROM students ORDER BY COUNT(*) > 5;`
D
`SELECT COUNT(city) > 5 FROM students;`
`SELECT COUNT(city) > 5 FROM students;`
Solution Breakdown:
-> Aggregate conditions like `COUNT(*) > 5` MUST be placed in the `HAVING` clause after `GROUP BY`—never in the `WHERE` clause. -> Hence, Option (A) is the correct answer.
-> एग्रीगेट शर्त (`COUNT(*) > 5`) हमेशा `GROUP BY` के बाद `HAVING` क्लॉज़ में ही लिखी जाती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 513 NEW
Most Important MEDIUM
What is the difference between `DELETE FROM t WHERE id=1` and `DROP TABLE t` regarding `ROLLBACK`?
`ROLLBACK` के संदर्भ में `DELETE` और `DROP TABLE` में क्या मुख्य अंतर है?
A
`DELETE` (DML) can be undone using `ROLLBACK` inside a transaction, whereas `DROP TABLE` (DDL) causes an implicit commit in MySQL and CANNOT be rolled back
`DELETE` (DML) को ट्रांज़ैक्शन के अंदर `ROLLBACK` से वापस लाया जा सकता है, जबकि `DROP TABLE` (DDL) को रोलबैक नहीं किया जा सकता
Correct
B
Both can be undone with `Ctrl + Z`
दोनों को `Ctrl + Z` से वापस लाया जा सकता है
C
Neither can be rolled back
दोनों में से कोई रोलबैक नहीं हो सकता
D
`DROP TABLE` can be rolled back, `DELETE` cannot
`DROP TABLE` रोलबैक हो सकता है, `DELETE` नहीं
Solution Breakdown:
-> In MySQL, DDL commands (`CREATE`, `ALTER`, `DROP`, `TRUNCATE`) trigger an automatic implicit commit, making them permanent immediately. -> Hence, Option (A) is the correct answer.
-> MySQL में DDL कमांड्स तुरंत स्थायी (Implicit commit) हो जाते हैं और रोलबैक नहीं हो सकते। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 514 NEW
Most Important EASY
Which MySQL command is used to insert MULTIPLE rows into a table in a single fast `INSERT` statement?
एक ही `INSERT` स्टेटमेंट में टेबल के अंदर एक साथ कई पंक्तियाँ जोड़ने का सही सिंटैक्स कौन सा है?
A
`INSERT INTO t (a) VALUES (1), (2), (3);`
`INSERT INTO t (a) VALUES (1), (2), (3);`
Correct
B
`INSERT INTO t (a) VALUES (1) AND (2);`
`INSERT INTO t (a) VALUES (1) AND (2);`
C
`INSERT MULTIPLE INTO t (1, 2, 3);`
`INSERT MULTIPLE INTO t (1, 2, 3);`
D
`ADD ROWS INTO t (1, 2, 3);`
`ADD ROWS INTO t (1, 2, 3);`
Solution Breakdown:
-> Separating multiple value tuples with commas inside a single `INSERT INTO ... VALUES (...), (...);` is much faster than running separate `INSERT` statements one by one. -> Hence, Option (A) is the correct answer.
-> कॉमा से अलग करके कई टपल्स एक ही `VALUES` क्लॉज़ में लिखने से एक साथ कई पंक्तियाँ तेज़ी से जुड़ जाती हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 515 NEW
Most Important MEDIUM
Which MySQL function returns the total number of rows affected by the most recent `INSERT`, `UPDATE`, or `DELETE` statement?
हाल ही में चलाए गए `INSERT`, `UPDATE` या `DELETE` स्टेटमेंट से प्रभावित कुल पंक्तियों की संख्या कौन सा MySQL फंक्शन बताता है?
A
`ROW_COUNT()`
`ROW_COUNT()`
Correct
B
`TOTAL_ROWS()`
`TOTAL_ROWS()`
C
`COUNT_ALL()`
`COUNT_ALL()`
D
`AFFECTED()`
`AFFECTED()`
Solution Breakdown:
-> `SELECT ROW_COUNT();` returns how many rows were modified by the immediately preceding DML command. -> Hence, Option (A) is the correct answer.
-> `ROW_COUNT()` पिछले DML कमांड से प्रभावित पंक्तियों की संख्या लौटाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 516 NEW
Most Important MEDIUM
What is a `FOREIGN KEY ... ON DELETE SET NULL` rule in MySQL?
MySQL में `FOREIGN KEY ... ON DELETE SET NULL` नियम क्या करता है?
A
When a parent row is deleted, the matching Foreign Key column in child rows is automatically set to `NULL` instead of deleting the child rows
पैरेंट पंक्ति डिलीट होने पर चाइल्ड पंक्तियों को डिलीट करने के बजाय उनके फॉरेन की कॉलम में अपने आप `NULL` सेट कर देता है
Correct
B
Deletes the child table
चाइल्ड टेबल को डिलीट कर देता है
C
Sets all columns to `0`
सभी कॉलम को `0` कर देता है
D
Throws a syntax error
सिंटैक्स एरर देता है
Solution Breakdown:
-> This is useful when you want to keep child records (e.g., keep `Employees` even if their `Department` is closed, setting `dept_id = NULL`). -> Hence, Option (A) is the correct answer.
-> यह चाइल्ड रिकॉर्ड को सुरक्षित रखते हुए केवल उसके फॉरेन की लिंक को `NULL` कर देता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 517 NEW
Most Important MEDIUM
What is a `FOREIGN KEY ... ON DELETE CASCADE` rule in MySQL?
MySQL में `FOREIGN KEY ... ON DELETE CASCADE` नियम क्या करता है?
A
Automatically deletes all matching child rows whenever their referenced parent row is deleted, preserving Referential Integrity
जब पैरेंट टेबल से कोई पंक्ति डिलीट की जाती है, तो चाइल्ड टेबल की उससे जुड़ी सभी पंक्तियों को भी अपने आप डिलीट कर देता है
Correct
B
Prevents deleting any row
किसी भी पंक्ति को डिलीट होने से रोकता है
C
Deletes the entire database
पूरा डेटाबेस डिलीट कर देता है
D
Copies the deleted row to another table
डिलीट की गई पंक्ति को दूसरी टेबल में कॉपी करता है
Solution Breakdown:
-> For example, deleting a `User` with `ON DELETE CASCADE` automatically deletes all of that user's `Orders` or `Comments` so no orphan rows are left behind. -> Hence, Option (A) is the correct answer.
-> `ON DELETE CASCADE` पैरेंट रिकॉर्ड डिलीट होने पर उससे जुड़े सभी चाइल्ड रिकॉर्ड्स को स्वतः हटा देता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 518 NEW
Most Important EASY
What is "MariaDB"?
"मारियाडीबी" (MariaDB) क्या है?
A
A community-developed, open-source drop-in replacement fork of MySQL created by MySQL's original founder (Michael Widenius)
MySQL के मूल संस्थापक द्वारा बनाया गया MySQL का एक ओपन-सोर्स, सामुदायिक विकल्प (Fork)
Correct
B
A video editor
एक वीडियो एडिटर
C
An operating system
एक ऑपरेटिंग सिस्टम
D
A web browser
एक वेब ब्राउज़र
Solution Breakdown:
-> MariaDB remains highly compatible with MySQL commands, drivers, and tools while staying strictly open-source. -> Hence, Option (A) is the correct answer.
-> MariaDB, MySQL का एक प्रसिद्ध ओपन-सोर्स विकल्प है जो MySQL के साथ पूरी तरह संगत है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 519 NEW
Most Important EASY
What is "MySQL Workbench"?
"MySQL वर्कबेंच" क्या है?
A
The official visual desktop GUI tool from Oracle for designing E-R diagrams, running SQL queries, and administering MySQL servers
ओरेकल का आधिकारिक डेस्कटॉप GUI टूल जिसका उपयोग E-R आरेख डिज़ाइन करने, SQL क्वेरी चलाने और MySQL सर्वर को मैनेज करने के लिए होता है
Correct
B
A physical wooden table
एक भौतिक लकड़ी की मेज़
C
A web browser
एक वेब ब्राउज़र
D
A mobile game
एक मोबाइल गेम
Solution Breakdown:
-> MySQL Workbench provides visual database modeling, query profiling, and server performance dashboards. -> Hence, Option (A) is the correct answer.
-> MySQL वर्कबेंच डेटाबेस डिज़ाइन और SQL क्वेरी चलाने का आधिकारिक डेस्कटॉप टूल है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 520 NEW
Most Important EASY
What is `phpMyAdmin` in the MySQL ecosystem?
MySQL इकोसिस्टम में `phpMyAdmin` क्या है?
A
A free, open-source web-based graphical administration tool written in PHP to visually manage MySQL/MariaDB databases in a browser
PHP में लिखा एक मुफ्त, ओपन-सोर्स वेब-आधारित ग्राफिकल टूल जिसकी मदद से ब्राउज़र में MySQL/MariaDB डेटाबेस को आसानी से मैनेज किया जाता है
Correct
B
A programming language
एक प्रोग्रामिंग भाषा
C
A hardware server
एक हार्डवेयर सर्वर
D
An antivirus utility
एक एंटीवायरस यूटिलिटी
Solution Breakdown:
-> `phpMyAdmin` (often bundled with XAMPP/WAMP) lets users create tables, run SQL queries, and import/export backups visually without typing every command manually. -> Hence, Option (A) is the correct answer.
-> `phpMyAdmin` ब्राउज़र के ज़रिए MySQL डेटाबेस को ग्राफिकल रूप से मैनेज करने का लोकप्रिय टूल है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 521 NEW
Most Important EASY
Which MySQL command is used to permanently delete an entire database named `test_db`?
MySQL में `test_db` नामक पूरे डेटाबेस को स्थायी रूप से हटाने के लिए किस कमांड का उपयोग किया जाता है?
A
`DELETE DATABASE test_db;`
`DELETE DATABASE test_db;`
B
`DROP DATABASE test_db;`
`DROP DATABASE test_db;`
Correct
C
`REMOVE DATABASE test_db;`
`REMOVE DATABASE test_db;`
D
`TRUNCATE DATABASE test_db;`
`TRUNCATE DATABASE test_db;`
Solution Breakdown:
-> `DROP DATABASE test_db;` permanently removes the database and every table inside it. -> Hence, Option (B) is the correct answer.
-> पूरा डेटाबेस हटाने के लिए `DROP DATABASE` कमांड उपयोग होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 522 NEW
Most Important EASY
Which MySQL command is used to rename an existing table `old_tbl` to `new_tbl`?
MySQL में किसी मौजूदा टेबल `old_tbl` का नाम बदलकर `new_tbl` करने के लिए किस कमांड का उपयोग किया जाता है?
A
`RENAME TABLE old_tbl TO new_tbl;`
`RENAME TABLE old_tbl TO new_tbl;`
Correct
B
`CHANGE TABLE old_tbl TO new_tbl;`
`CHANGE TABLE old_tbl TO new_tbl;`
C
`UPDATE TABLE old_tbl = new_tbl;`
`UPDATE TABLE old_tbl = new_tbl;`
D
`MOVE TABLE old_tbl TO new_tbl;`
`MOVE TABLE old_tbl TO new_tbl;`
Solution Breakdown:
-> Both `RENAME TABLE old_tbl TO new_tbl;` and `ALTER TABLE old_tbl RENAME TO new_tbl;` work in MySQL. -> Hence, Option (A) is the correct answer.
-> MySQL में टेबल का नाम बदलने के लिए `RENAME TABLE` कमांड का उपयोग होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 523 NEW
Most Important MEDIUM
What is the output of `SELECT * FROM students WHERE name LIKE '_a%';`?
`SELECT * FROM students WHERE name LIKE '_a%';` क्वेरी किन नामों को दिखाएगी?
A
Names where the FIRST letter is `'a'`
जिनका पहला अक्षर `'a'` है
B
Names where the SECOND letter is `'a'`
जिनका दूसरा अक्षर `'a'` है
Correct
C
Names with exactly 2 letters
ठीक 2 अक्षरों वाले नाम
D
Names ending with `'a'`
`'a'` पर खत्म होने वाले नाम
Solution Breakdown:
-> The single underscore `_` matches any 1 first character, followed by `'a'` as the exact 2nd character, followed by `%` (any remaining characters)—matching `'Rahul'`, `'Karan'`, `'Sagar'`. -> Hence, Option (B) is the correct answer.
-> `_` पहले एक अक्षर को और उसके बाद `a` दूसरे अक्षर को दर्शाता है, अतः यह उन नामों को दिखाता है जिनका दूसरा अक्षर `'a'` हो। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 524 NEW
Most Important MEDIUM
What is the output of `SELECT * FROM students WHERE name LIKE '%a';`?
`SELECT * FROM students WHERE name LIKE '%a';` क्वेरी क्या परिणाम दिखाएगी?
A
All students whose name STARTS with `'a'`
वे सभी छात्र जिनका नाम `'a'` से शुरू होता है
B
All students whose name ENDS with `'a'`
वे सभी छात्र जिनका नाम `'a'` पर समाप्त होता है
Correct
C
All students whose name has only 1 letter
केवल 1 अक्षर वाले नाम
D
All students whose name does not contain `'a'`
जिनमें `'a'` नहीं है
Solution Breakdown:
-> `'%a'` matches any sequence of characters ending with `'a'` (like `'Neha'`, `'Pooja'`), whereas `'a%'` matches names starting with `'a'`, and `'%a%'` matches names containing `'a'` anywhere. -> Hence, Option (B) is the correct answer.
-> `'%a'` उन सभी नामों से मेल खाता है जिनका अंतिम अक्षर `'a'` है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 525 NEW
Most Important EASY
What is the difference between `AND` and `OR` operators in a SQL `WHERE` clause?
SQL के `WHERE` क्लॉज़ में `AND` और `OR` ऑपरेटर में क्या अंतर है?
A
`AND` returns a row only if ALL conditions are True, whereas `OR` returns a row if AT LEAST ONE condition is True
`AND` केवल तभी पंक्ति लौटाता है जब सभी शर्तें सत्य हों, जबकि `OR` कम से कम एक शर्त सत्य होने पर ही पंक्ति लौटा देता है
Correct
B
`OR` requires all conditions to be True
`OR` में सभी शर्तों का सत्य होना ज़रूरी है
C
Both work identically
दोनों एक समान काम करते हैं
D
`AND` is only for numbers
`AND` केवल संख्याओं के लिए है
Solution Breakdown:
-> Example: `WHERE city = 'Delhi' AND marks > 80` narrows results strictly, whereas `OR` broadens results. -> Hence, Option (A) is the correct answer.
-> `AND` सभी शर्तों को अनिवार्य बनाता है, जबकि `OR` किसी एक शर्त के पूरा होने पर भी परिणाम दिखाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Prev 19 20 21 22 23 Next
ESSENTIAL STUDY KIT

Master Govt Exam PYQs Faster with Recommended Resources

Pair your daily MCQ practice with these educator-picked books, practice sets, and typing gear tailored for this syllabus.

Visit Exam Store
Dell KB216 Wired Multimedia USB Keyboard (Black)
Typing Keyboards Best for Mangal Typing Amazon
Dell KB216 Wired Multimedia USB Keyboard (Black)

Soft chiclet keys and zero lag — the best keyboard for UPP Computer Operator and DSSSB 40+ WPM Hindi/English typing tests.

₹299 ₹999 70% OFF
Affiliate Disclosure: HappyQuiz may earn a small commission on qualifying purchases at no extra cost to you.
Saved to your dashboard!