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: 📜 PYQs

DBMS (Database Management System)

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 101 NEW
📜 PYQs EASY
Which SQL clause is used to combine rows that have identical values in specified columns into summary rows (e.g., counting students per city)?
निर्दिष्ट कॉलम में समान मान वाली पंक्तियों को सारांश समूहों (जैसे प्रति शहर छात्रों की संख्या) में बांटने के लिए किस SQL क्लॉज़ का उपयोग किया जाता है?
A
`ORDER BY`
`ORDER BY`
B
`GROUP BY`
`GROUP BY`
Correct
C
`SORT BY`
`SORT BY`
D
`JOIN BY`
`JOIN BY`
Solution Breakdown:
-> `SELECT city, COUNT(*) FROM students GROUP BY city;` groups all students by their city and counts how many belong to each city. -> Hence, Option (B) is the correct answer.
-> `GROUP BY` क्लॉज़ एग्रीगेट फंक्शंस के साथ मिलकर समान मानों के समूह बनाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 102 NEW
📜 PYQs MEDIUM
Match the SQL Constraint with its Purpose: 1. `NOT NULL` — (a) Validates a condition like `marks >= 0` 2. `UNIQUE` — (b) Prevents empty/missing values in a column 3. `CHECK` — (c) Sets an automatic fallback value if none is given 4. `DEFAULT` — (d) Prevents duplicate values in a column
SQL कॉन्स्ट्रेंट को उसके उद्देश्य से सुमेलित करें: 1. `NOT NULL` — (a) `marks >= 0` जैसी शर्त की जांच करता है 2. `UNIQUE` — (b) कॉलम में खाली मान रोकता है 3. `CHECK` — (c) मान न देने पर स्वतः डिफ़ॉल्ट मान भरता है 4. `DEFAULT` — (d) कॉलम में डुप्लीकेट मान रोकता है
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: `NOT NULL` (No empty values), `UNIQUE` (No duplicates), `CHECK` (Condition validation), `DEFAULT` (Fallback value). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 103 NEW
📜 PYQs MEDIUM
Match the SQL Command Category with its Commands: 1. DDL — (a) `GRANT`, `REVOKE` 2. DML — (b) `CREATE`, `ALTER`, `DROP` 3. DCL — (c) `COMMIT`, `ROLLBACK` 4. TCL — (d) `INSERT`, `UPDATE`, `DELETE`
SQL कमांड श्रेणी को उसके कमांड्स से सुमेलित करें: 1. DDL — (a) `GRANT`, `REVOKE` 2. DML — (b) `CREATE`, `ALTER`, `DROP` 3. DCL — (c) `COMMIT`, `ROLLBACK` 4. TCL — (d) `INSERT`, `UPDATE`, `DELETE`
A
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
B
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: DDL (`CREATE`/`ALTER`/`DROP`), DML (`INSERT`/`UPDATE`/`DELETE`), DCL (`GRANT`/`REVOKE`), TCL (`COMMIT`/`ROLLBACK`). -> Hence, Option (A) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 104 NEW
📜 PYQs EASY
Identify the ODD one out from the following SQL commands:
निम्नलिखित SQL कमांड्स में से विषम की पहचान करें:
A
`CREATE`
`CREATE`
B
`ALTER`
`ALTER`
C
`DROP`
`DROP`
D
`INSERT`
`INSERT`
Correct
Solution Breakdown:
-> `CREATE`, `ALTER`, and `DROP` are DDL (Data Definition Language) commands, whereas `INSERT` is a DML (Data Manipulation Language) command. -> Hence, Option (D) is the correct answer.
-> `INSERT` एक DML कमांड है, जबकि बाकी तीनों DDL कमांड्स हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 105 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) `GRANT` and `REVOKE` belong to DCL (Data Control Language). (II) `COMMIT` and `ROLLBACK` belong to TCL (Transaction Control Language).
निम्नलिखित कथनों का मूल्यांकन करें: (I) `GRANT` और `REVOKE` डेटा कंट्रोल लैंग्वेज (DCL) से संबंधित हैं। (II) `COMMIT` और `ROLLBACK` ट्रांज़ैक्शन कंट्रोल लैंग्वेज (TCL) से संबंधित हैं।
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 correctly categorize SQL's DCL and TCL commands. -> Hence, Option (C) is the correct answer.
-> दोनों कथन बिल्कुल सही हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 106 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) `DROP TABLE` is a DDL command that permanently deletes both data and table structure. (II) `UPDATE` is a DDL command used to add new columns to a table.
निम्नलिखित कथनों का मूल्यांकन करें: (I) `DROP TABLE` एक DDL कमांड है जो डेटा और टेबल संरचना दोनों को स्थायी रूप से हटा देता है। (II) `UPDATE` एक DDL कमांड है जिसका उपयोग टेबल में नए कॉलम जोड़ने के लिए किया जाता है।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
Correct
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is true. Statement (II) is false because `UPDATE` is a DML command that modifies row data (whereas `ALTER TABLE` adds new columns). -> Hence, Option (B) is the correct answer.
-> कथन (I) सत्य है, जबकि `UPDATE` एक DML कमांड है जो डेटा बदलता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 107 NEW
📜 PYQs EASY
Which SQL statement is case-insensitive for keywords like `SELECT`, `FROM`, and `WHERE`?
क्या SQL में `SELECT`, `FROM` और `WHERE` जैसे कीवर्ड्स केस-सेंसिटिव होते हैं?
A
Yes, they must always be uppercase
हाँ, वे हमेशा बड़े अक्षरों में होने चाहिए
B
No, SQL keywords are case-insensitive (`select` and `SELECT` work identically)
नहीं, SQL कीवर्ड्स केस-इनसेंसिटिव होते हैं (`select` और `SELECT` एक समान काम करते हैं)
Correct
C
Yes, they must always be lowercase
हाँ, वे हमेशा छोटे अक्षरों में होने चाहिए
D
Only `WHERE` is case-sensitive
केवल `WHERE` केस-सेंसिटिव है
Solution Breakdown:
-> SQL keywords are case-insensitive, though writing them in UPPERCASE (`SELECT`, `FROM`, `WHERE`) is a widely followed best practice for readability. -> Hence, Option (B) is the correct answer.
-> SQL कीवर्ड्स केस-इनसेंसिटिव होते हैं, लेकिन पढ़ने में आसानी के लिए उन्हें बड़े अक्षरों में लिखना अच्छी आदत मानी जाती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 108 NEW
📜 PYQs MEDIUM
What is a "Subquery" (Nested Query) in SQL?
SQL में "सबक्वेरी" (नेस्टेड क्वेरी) क्या होती है?
A
A query written inside another SQL query (typically enclosed in parentheses `()` inside a `WHERE`, `FROM`, or `SELECT` clause)
किसी दूसरी SQL क्वेरी के अंदर लिखी गई क्वेरी (आमतौर पर कोष्ठक `()` में बंद)
Correct
B
A query that deletes a database
डेटाबेस डिलीट करने वाली क्वेरी
C
A query with syntax errors
सिंटैक्स एरर वाली क्वेरी
D
A backup script
एक बैकअप स्क्रिप्ट
Solution Breakdown:
-> Example: `SELECT name FROM emp WHERE salary > (SELECT AVG(salary) FROM emp);` finds all employees earning above the company average. -> Hence, Option (A) is the correct answer.
-> सबक्वेरी एक क्वेरी के भीतर दूसरी क्वेरी होती है जो जटिल शर्तों को एक ही स्टेटमेंट में हल करने में मदद करती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 109 NEW
📜 PYQs EASY
Which SQL command is used in MySQL to create a brand-new database named `school_db`?
MySQL में `school_db` नामक एक नया डेटाबेस बनाने के लिए किस SQL कमांड का उपयोग किया जाता है?
A
`NEW DATABASE school_db;`
`NEW DATABASE school_db;`
B
`MAKE DATABASE school_db;`
`MAKE DATABASE school_db;`
C
`CREATE DATABASE school_db;`
`CREATE DATABASE school_db;`
Correct
D
`INSERT DATABASE school_db;`
`INSERT DATABASE school_db;`
Solution Breakdown:
-> `CREATE DATABASE school_db;` creates the database, and `USE school_db;` switches into it so you can start creating tables. -> Hence, Option (C) is the correct answer.
-> नया डेटाबेस बनाने के लिए `CREATE DATABASE` और उसे चुनने के लिए `USE` कमांड का उपयोग होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 110 NEW
📜 PYQs MEDIUM
In SQL, which `ALTER TABLE` command correctly removes an existing column named `temp_col` from a table named `users`?
SQL में `users` नामक टेबल से `temp_col` नामक मौजूदा कॉलम को हटाने के लिए कौन सा `ALTER TABLE` कमांड सही है?
A
`ALTER TABLE users DELETE temp_col;`
`ALTER TABLE users DELETE temp_col;`
B
`ALTER TABLE users DROP COLUMN temp_col;`
`ALTER TABLE users DROP COLUMN temp_col;`
Correct
C
`DROP COLUMN temp_col FROM users;`
`DROP COLUMN temp_col FROM users;`
D
`REMOVE COLUMN temp_col FROM users;`
`REMOVE COLUMN temp_col FROM users;`
Solution Breakdown:
-> To delete a column from an existing table, SQL uses `ALTER TABLE table_name DROP COLUMN column_name;`. -> Hence, Option (B) is the correct answer.
-> किसी टेबल से कॉलम हटाने के लिए `ALTER TABLE ... DROP COLUMN ...` का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 111 NEW
📜 PYQs MEDIUM
What is the difference between `UNION` and `UNION ALL` in SQL?
SQL में `UNION` और `UNION ALL` के बीच क्या अंतर है?
A
`UNION` combines results from two `SELECT` queries and removes duplicate rows, whereas `UNION ALL` keeps ALL rows including duplicates (and is faster)
`UNION` दो क्वेरी के परिणामों को जोड़कर डुप्लीकेट पंक्तियाँ हटा देता है, जबकि `UNION ALL` डुप्लीकेट सहित सभी पंक्तियों को रखता है और तेज़ होता है
Correct
B
`UNION ALL` deletes both tables
`UNION ALL` दोनों टेबल्स को डिलीट कर देता है
C
`UNION` requires different numbers of columns
`UNION` में अलग-अलग संख्या में कॉलम चाहिए
D
Both work identically
दोनों बिल्कुल एक समान काम करते हैं
Solution Breakdown:
-> Both `UNION` and `UNION ALL` require each `SELECT` statement to have the exact same number of columns with compatible data types. -> Hence, Option (A) is the correct answer.
-> `UNION` डुप्लीकेट हटाता है और `UNION ALL` सभी पंक्तियाँ (डुप्लीकेट सहित) दिखाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 112 NEW
📜 PYQs MEDIUM
What is the correct logical order in which SQL clauses are written in a standard `SELECT` statement?
एक मानक SQL `SELECT` स्टेटमेंट में क्लॉज़ लिखने का सही क्रम क्या है?
A
`SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`
`SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`
Correct
B
`SELECT -> WHERE -> FROM -> ORDER BY -> GROUP BY`
`SELECT -> WHERE -> FROM -> ORDER BY -> GROUP BY`
C
`FROM -> SELECT -> WHERE -> HAVING -> GROUP BY`
`FROM -> SELECT -> WHERE -> HAVING -> GROUP BY`
D
`SELECT -> FROM -> GROUP BY -> WHERE -> ORDER BY`
`SELECT -> FROM -> GROUP BY -> WHERE -> ORDER BY`
Solution Breakdown:
-> Always remember the standard SQL syntax order: `SELECT`, `FROM`, `WHERE`, `GROUP BY`, `HAVING`, `ORDER BY`, `LIMIT`. -> Hence, Option (A) is the correct answer.
-> SQL क्वेरी लिखने का मानक क्रम है: `SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 113 NEW
📜 PYQs EASY
Which SQL command is used to create a virtual table based on the result of a saved `SELECT` query?
किसी सेव की गई `SELECT` क्वेरी के परिणाम पर आधारित एक वर्चुअल टेबल बनाने के लिए किस SQL कमांड का उपयोग किया जाता है?
A
`CREATE VIEW`
`CREATE VIEW`
Correct
B
`CREATE TABLE`
`CREATE TABLE`
C
`CREATE VIRTUAL`
`CREATE VIRTUAL`
D
`CREATE INDEX`
`CREATE INDEX`
Solution Breakdown:
-> A `VIEW` does not store data physically; it dynamically displays data from underlying base tables—useful for simplifying complex queries and hiding sensitive columns. -> Hence, Option (A) is the correct answer.
-> `VIEW` एक वर्चुअल टेबल है जो जटिल क्वेरी को सरल बनाने और संवेदनशील कॉलम छिपाकर सुरक्षा बढ़ाने में मदद करती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 114 NEW
📜 PYQs MEDIUM
What is the output of the MySQL query `SELECT 6 MOD 20;`?
MySQL क्वेरी `SELECT 6 MOD 20;` का आउटपुट क्या होगा?
A
`3`
`3`
B
`6`
`6`
Correct
C
`20`
`20`
D
`0`
`0`
Solution Breakdown:
-> `MOD` returns the remainder of integer division. When `6` is divided by `20`, the quotient is `0` and the remainder is `6`. -> Hence, Option (B) is the correct answer.
-> `6` को `20` से भाग देने पर भागफल `0` और शेषफल `6` बचता है, इसलिए आउटपुट `6` होगा। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 115 NEW
📜 PYQs EASY
In MySQL, which clause is used at the end of a `SELECT` query to restrict the maximum number of rows returned (e.g., showing only the Top 5 scores)?
MySQL में किसी `SELECT` क्वेरी द्वारा लौटाई जाने वाली पंक्तियों की अधिकतम संख्या को सीमित करने (जैसे केवल टॉप 5 स्कोर दिखाने) के लिए किस क्लॉज़ का उपयोग किया जाता है?
A
`TOP`
`TOP`
B
`LIMIT`
`LIMIT`
Correct
C
`MAXROWS`
`MAXROWS`
D
`STOP`
`STOP`
Solution Breakdown:
-> Example: `SELECT * FROM students ORDER BY marks DESC LIMIT 5;` returns only the top 5 highest-scoring students in MySQL. -> Hence, Option (B) is the correct answer.
-> MySQL में आउटपुट पंक्तियों की संख्या सीमित करने के लिए `LIMIT` क्लॉज़ का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 116 NEW
📜 PYQs EASY
In MySQL, which command displays the complete structure (column names, data types, NULL allowance, keys) of a specific table?
MySQL में किसी विशेष टेबल की पूरी संरचना (कॉलम के नाम, डेटा टाइप, कीज़) देखने के लिए किस कमांड का उपयोग किया जाता है?
A
`DESCRIBE table_name;` (or `DESC table_name;`)
`DESCRIBE table_name;` (or `DESC table_name;`)
Correct
B
`SHOW table_name;`
`SHOW table_name;`
C
`SELECT STRUCTURE table_name;`
`SELECT STRUCTURE table_name;`
D
`VIEW table_name;`
`VIEW table_name;`
Solution Breakdown:
-> `DESC students;` (short for `DESCRIBE students;`) prints the schema metadata of every column in the `students` table. -> Hence, Option (A) is the correct answer.
-> टेबल की संरचना देखने के लिए MySQL में `DESCRIBE` (या संक्षेप में `DESC`) कमांड उपयोग होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 117 NEW
📜 PYQs EASY
In MySQL, which command is used to list all non-temporary tables in the currently selected database?
MySQL में वर्तमान में चयनित डेटाबेस की सभी टेबल्स की सूची देखने के लिए किस कमांड का उपयोग किया जाता है?
A
`DESCRIBE TABLES;`
`DESCRIBE TABLES;`
B
`SHOW TABLES;`
`SHOW TABLES;`
Correct
C
`DISPLAY TABLES;`
`DISPLAY TABLES;`
D
`VIEW TABLES;`
`VIEW TABLES;`
Solution Breakdown:
-> In MySQL: `SHOW DATABASES;` lists all databases, `USE db_name;` selects a database, and `SHOW TABLES;` lists all tables inside it. -> Hence, Option (B) is the correct answer.
-> MySQL में सभी टेबल्स देखने के लिए `SHOW TABLES;` कमांड का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 118 NEW
📜 PYQs MEDIUM
What is the difference between `COUNT(*)` and `COUNT(column_name)` in SQL?
SQL में `COUNT(*)` और `COUNT(column_name)` के बीच क्या अंतर है?
A
`COUNT(*)` counts ALL rows in the table (including rows with `NULL` values), whereas `COUNT(column_name)` counts ONLY non-NULL values in that column
`COUNT(*)` टेबल की सभी पंक्तियों को गिनता है (`NULL` सहित), जबकि `COUNT(column_name)` उस कॉलम के केवल नॉन-NULL मानों को गिनता है
Correct
B
Both always return the exact same number
दोनों हमेशा समान संख्या देते हैं
C
`COUNT(*)` ignores duplicate rows
`COUNT(*)` डुप्लीकेट पंक्तियों को छोड़ देता है
D
`COUNT(column_name)` counts columns
`COUNT(column_name)` कॉलम गिनता है
Solution Breakdown:
-> If a table has 10 rows and 2 students have `NULL` in their `phone` column, `COUNT(*)` returns `10`, while `COUNT(phone)` returns `8`. -> Hence, Option (A) is the correct answer.
-> `COUNT(*)` कुल पंक्तियाँ बताता है और `COUNT(column)` खाली (`NULL`) मानों को छोड़कर गिनती करता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 119 NEW
📜 PYQs EASY
Which of the following is NOT an SQL Aggregate Function?
निम्नलिखित में से कौन सा एक SQL एग्रीगेट फंक्शन नहीं है?
A
`SUM()`
`SUM()`
B
`AVG()`
`AVG()`
C
`COUNT()`
`COUNT()`
D
`LENGTH()`
`LENGTH()`
Correct
Solution Breakdown:
-> The five standard SQL Aggregate Functions are `COUNT()`, `SUM()`, `AVG()`, `MIN()`, and `MAX()`. `LENGTH()` is a scalar string function operating on a single value. -> Hence, Option (D) is the correct answer.
-> `COUNT`, `SUM`, `AVG`, `MIN` और `MAX` एग्रीगेट फंक्शन हैं, जबकि `LENGTH()` एक स्ट्रिंग फंक्शन है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 120 NEW
📜 PYQs MEDIUM
Which SQL clause is used to filter groups created by `GROUP BY` (typically using aggregate functions like `COUNT` or `SUM`)?
`GROUP BY` द्वारा बनाए गए समूहों को (एग्रीगेट फंक्शंस के आधार पर) फ़िल्टर करने के लिए किस SQL क्लॉज़ का उपयोग किया जाता है?
A
`WHERE`
`WHERE`
B
`HAVING`
`HAVING`
Correct
C
`ORDER BY`
`ORDER BY`
D
`FILTER`
`FILTER`
Solution Breakdown:
-> `WHERE` filters individual rows BEFORE grouping (and cannot use aggregate functions like `SUM`), whereas `HAVING` filters grouped results AFTER `GROUP BY`. -> Hence, Option (B) is the correct answer.
-> `WHERE` ग्रुपिंग से पहले पंक्तियों को और `HAVING` ग्रुपिंग के बाद समूहों को फ़िल्टर करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 121 NEW
📜 PYQs EASY
Which SQL keyword is used to give a temporary, readable name (Alias) to a column or table in a `SELECT` query?
`SELECT` क्वेरी में किसी कॉलम या टेबल को अस्थायी और पढ़ने में आसान उपनाम (Alias) देने के लिए किस SQL कीवर्ड का उपयोग किया जाता है?
A
`ALIAS`
`ALIAS`
B
`RENAME`
`RENAME`
C
`AS`
`AS`
Correct
D
`TO`
`TO`
Solution Breakdown:
-> Example: `SELECT name AS Student_Name FROM students;` renames the column header cleanly in the query output without altering the actual table. -> Hence, Option (C) is the correct answer.
-> `AS` कीवर्ड क्वेरी के आउटपुट में कॉलम या टेबल को अस्थायी उपनाम देता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 122 NEW
📜 PYQs MEDIUM
What is the difference between `CHAR(10)` and `VARCHAR(10)` data types in SQL
MySQL? / SQL / MySQL में `CHAR(10)` और `VARCHAR(10)` डेटा टाइप में क्या अंतर है?
A
`CHAR` stores only numbers
`CHAR` केवल संख्याएँ स्टोर करता है
B
`CHAR(10)` is fixed-length (always occupies 10 characters of storage), whereas `VARCHAR(10)` is variable-length (occupies only as much space as the actual text plus 1–2 length bytes)
`CHAR(10)` निश्चित लंबाई का होता है (हमेशा 10 अक्षरों की जगह लेता है), जबकि `VARCHAR(10)` परिवर्तनशील लंबाई का होता है (केवल वास्तविक टेक्स्ट जितनी जगह लेता है)
Correct
C
`VARCHAR` cannot store letters
`VARCHAR` अक्षर स्टोर नहीं कर सकता
D
Both take identical storage space
दोनों बिल्कुल समान स्टोरेज लेते हैं
Solution Breakdown:
-> Use `CHAR` for fixed-length codes (like state codes `'UP'` or PIN codes) and `VARCHAR` for variable-length text (like names and emails) to save storage space. -> Hence, Option (B) is the correct answer.
-> निश्चित लंबाई के डेटा के लिए `CHAR` और बदलती लंबाई के टेक्स्ट (जैसे नाम, ईमेल) के लिए `VARCHAR` का उपयोग बेहतर होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 123 NEW
📜 PYQs EASY
What happens if you execute `DELETE FROM students;` WITHOUT a `WHERE` clause?
यदि आप `WHERE` क्लॉज़ के बिना `DELETE FROM students;` चलाते हैं, तो क्या होगा?
A
Only the first row is deleted
केवल पहली पंक्ति डिलीट होगी
B
A syntax error occurs
सिंटैक्स एरर आएगा
C
ALL rows in the `students` table are deleted, while the empty table structure remains
`students` टेबल की सभी पंक्तियाँ डिलीट हो जाएंगी, जबकि खाली टेबल की संरचना बनी रहेगी
Correct
D
The entire database is dropped
पूरा डेटाबेस डिलीट हो जाएगा
Solution Breakdown:
-> Omitting `WHERE` in `DELETE` or `UPDATE` applies the operation to EVERY row in the table—a classic mistake to avoid in production databases! -> Hence, Option (C) is the correct answer.
-> `WHERE` के बिना `DELETE` चलाने पर टेबल का सारा डेटा मिट जाता है, हालांकि खाली टेबल बनी रहती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 124 NEW
📜 PYQs EASY
In MySQL, which attribute automatically generates a unique sequential number (`1, 2, 3...`) whenever a new record is inserted into a table?
MySQL में कौन सा एट्रिब्यूट नया रिकॉर्ड जोड़ते ही अपने आप एक यूनिक क्रमिक संख्या (`1, 2, 3...`) जनरेट करता है?
A
`AUTO_INCREMENT`
`AUTO_INCREMENT`
Correct
B
`AUTO_NUMBER`
`AUTO_NUMBER`
C
`SEQUENCE_ADD`
`SEQUENCE_ADD`
D
`NEXT_ID`
`NEXT_ID`
Solution Breakdown:
-> `AUTO_INCREMENT` is widely used on integer Primary Key columns (e.g., `id INT AUTO_INCREMENT PRIMARY KEY`) in MySQL. -> Hence, Option (A) is the correct answer.
-> MySQL में प्राइमरी की के लिए स्वतः बढ़ने वाली संख्या बनाने हेतु `AUTO_INCREMENT` का उपयोग किया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 125 NEW
📜 PYQs EASY
Which SQL constraint automatically assigns a predefined fallback value to a column if no value is provided during `INSERT`?
यदि `INSERT` के समय किसी कॉलम का मान न दिया जाए, तो कौन सा SQL कॉन्स्ट्रेंट उसे अपने आप एक पूर्वनिर्धारित मान सौंप देता है?
A
`CHECK`
`CHECK`
B
`NOT NULL`
`NOT NULL`
C
`UNIQUE`
`UNIQUE`
D
`DEFAULT`
`DEFAULT`
Correct
Solution Breakdown:
-> For example, `status VARCHAR(20) DEFAULT 'Active'` automatically sets `status` to `'Active'` whenever a new row is inserted without specifying `status`. -> Hence, Option (D) is the correct answer.
-> `DEFAULT` कॉन्स्ट्रेंट मान न दिए जाने पर कॉलम में एक तय डिफ़ॉल्ट मान स्वतः भर देता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Prev 3 4 5 6 7 Next
ESSENTIAL STUDY KIT

Master DBMS (Database Management System) 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!