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

Govt Exam PYQs

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 1626 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 1627 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 1628 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 1629 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 1630 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 1631 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 1632 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 1633 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 1634 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 1635 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) बिल्कुल सही है।
Question 1636 NEW
Most Important EASY
Which SQL operator is used to negate a condition (for example, finding all students whose city is NOT `'Delhi'`)?
किसी शर्त को नकारने (जैसे उन छात्रों को खोजना जिनका शहर `'Delhi'` नहीं है) के लिए किस SQL ऑपरेटर का उपयोग किया जाता है?
A
`NOT` (or `!=`
`<>`)
Correct
B
`NO`
`NO`
C
`EXCEPT`
`EXCEPT`
D
`MINUS`
`MINUS`
Solution Breakdown:
-> `WHERE NOT city = 'Delhi'` or `WHERE city != 'Delhi'` or `WHERE city <> 'Delhi'` all return rows where the city is anything other than `'Delhi'`. -> Hence, Option (A) is the correct answer.
-> शर्त को नकारने के लिए `NOT`, `!=` या `<>` का उपयोग किया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1637 NEW
Most Important MEDIUM
What is a `CASE` statement used for inside a SQL `SELECT` query?
SQL `SELECT` क्वेरी के अंदर `CASE` स्टेटमेंट का उपयोग किसके लिए किया जाता है?
A
To implement `if-then-else` conditional logic directly inside a query (e.g., assigning grades `'Pass'` or `'Fail'` based on marks)
क्वेरी के अंदर सीधे `if-then-else` जैसी शर्त-आधारित लॉजिक लागू करने के लिए (जैसे अंकों के आधार पर `'Pass'` या `'Fail'` ग्रेड दिखाना)
Correct
B
To change uppercase to lowercase
बड़े अक्षरों को छोटे में बदलने के लिए
C
To create a new table
नई टेबल बनाने के लिए
D
To delete a column
कॉलम डिलीट करने के लिए
Solution Breakdown:
-> Syntax: `CASE WHEN marks >= 40 THEN 'Pass' ELSE 'Fail' END`. It works just like `if-else` in programming languages. -> Hence, Option (A) is the correct answer.
-> `CASE ... WHEN ... THEN ... ELSE ... END` क्वेरी के भीतर कंडीशनल आउटपुट बनाने के काम आता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1638 NEW
Most Important MEDIUM
How do you find the SECOND HIGHEST salary from an `employees` table in MySQL using `ORDER BY` and `LIMIT`?
MySQL में `ORDER BY` और `LIMIT` का उपयोग करके `employees` टेबल से दूसरा सबसे बड़ा (Second Highest) वेतन कैसे निकाला जाता है?
A
`SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 1;`
`SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 1;`
Correct
B
`SELECT salary FROM employees LIMIT 2;`
`SELECT salary FROM employees LIMIT 2;`
C
`SELECT MAX(salary) FROM employees;`
`SELECT MAX(salary) FROM employees;`
D
`SELECT MIN(salary) FROM employees OFFSET 2;`
`SELECT MIN(salary) FROM employees OFFSET 2;`
Solution Breakdown:
-> `ORDER BY salary DESC` puts the highest salary first (`OFFSET 0`), so `LIMIT 1 OFFSET 1` (with `DISTINCT` to ignore ties) cleanly returns the second highest salary. -> Hence, Option (A) is the correct answer.
-> `DESC` क्रम में सॉर्ट करके `OFFSET 1` और `LIMIT 1` लगाने से ठीक दूसरा सबसे बड़ा मान मिल जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1639 NEW
Most Important MEDIUM
What does the MySQL query `SELECT * FROM students LIMIT 5 OFFSET 10;` return?
MySQL क्वेरी `SELECT * FROM students LIMIT 5 OFFSET 10;` क्या परिणाम लौटाएगी?
A
First 10 rows
पहली 10 पंक्तियाँ
B
Skips the first 10 rows and returns the next 5 rows (rows 11 to 15)
पहली 10 पंक्तियों को छोड़कर अगली 5 पंक्तियाँ (पंक्ति 11 से 15) लौटाएगी
Correct
C
Skips 5 rows and returns 10 rows
5 पंक्तियाँ छोड़कर 10 पंक्तियाँ लौटाएगी
D
Last 5 rows
अंतिम 5 पंक्तियाँ
Solution Breakdown:
-> `LIMIT` with `OFFSET` is the standard way to implement Pagination (Page 1, Page 2, Page 3...) in web applications. -> Hence, Option (B) is the correct answer.
-> `OFFSET 10` पहली 10 पंक्तियों को छोड़ देता है और `LIMIT 5` उसके बाद की 5 पंक्तियाँ दिखाता है—इसका उपयोग वेबसाइटों में पेजिनेशन (Pagination) के लिए होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1640 NEW
Most Important EASY
Which MySQL clause is used inside `CREATE TABLE` to prevent an error if a table with that same name already exists?
यदि उसी नाम की टेबल पहले से मौजूद हो, तो एरर से बचने के लिए `CREATE TABLE` के साथ किस MySQL क्लॉज़ का उपयोग किया जाता है?
A
`IF NOT EXISTS`
`IF NOT EXISTS`
Correct
B
`IGNORE ERROR`
`IGNORE ERROR`
C
`SKIP TABLE`
`SKIP TABLE`
D
`CHECK FIRST`
`CHECK FIRST`
Solution Breakdown:
-> `CREATE TABLE IF NOT EXISTS students (...);` safely creates the table only if it does not already exist, avoiding script crashes. -> Hence, Option (A) is the correct answer.
-> `IF NOT EXISTS` लगाने से पहले से मौजूद टेबल होने पर कोई एरर नहीं आता। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1641 NEW
Most Important EASY
In MySQL, which command displays the version number of the currently running MySQL server?
MySQL में वर्तमान में चल रहे MySQL सर्वर का वर्जन नंबर देखने के लिए किस क्वेरी का उपयोग किया जाता है?
A
`SELECT VERSION();`
`SELECT VERSION();`
Correct
B
`SHOW NUMBER;`
`SHOW NUMBER;`
C
`GET VERSION;`
`GET VERSION;`
D
`PRINT VER;`
`PRINT VER;`
Solution Breakdown:
-> `SELECT VERSION();` returns the exact server version string (e.g., `8.0.36`), and `SELECT DATABASE();` returns the currently selected database name. -> Hence, Option (A) is the correct answer.
-> `SELECT VERSION();` वर्तमान MySQL सर्वर का वर्जन दिखाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1642 NEW
Most Important EASY
Which SQL command is used in MySQL to create a new database user account with a password?
MySQL में पासवर्ड के साथ एक नया डेटाबेस यूज़र अकाउंट बनाने के लिए किस SQL कमांड का उपयोग किया जाता है?
A
`ADD USER`
`ADD USER`
B
`CREATE USER`
`CREATE USER`
Correct
C
`NEW USER`
`NEW USER`
D
`INSERT USER`
`INSERT USER`
Solution Breakdown:
-> Syntax: `CREATE USER 'jayant'@'localhost' IDENTIFIED BY 'password123';`, followed by `GRANT` to assign permissions. -> Hence, Option (B) is the correct answer.
-> नया यूज़र बनाने के लिए `CREATE USER` और उसे अधिकार देने के लिए `GRANT` कमांड का उपयोग होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1643 NEW
Most Important EASY
Which command-line utility comes bundled with MySQL to export (backup) an entire database or specific tables into a `.sql` script file?
पूरे डेटाबेस या चुनिंदा टेबल्स को `.sql` बैकअप फाइल में एक्सपोर्ट करने के लिए MySQL के साथ कौन सी कमांड-लाइन यूटिलिटी आती है?
A
`mysqldump`
`mysqldump`
Correct
B
`mysqlzip`
`mysqlzip`
C
`mysqlcopy`
`mysqlcopy`
D
`mysqlsave`
`mysqlsave`
Solution Breakdown:
-> Running `mysqldump -u root -p dbname > backup.sql` creates a complete logical SQL backup that can be easily restored on any MySQL server. -> Hence, Option (A) is the correct answer.
-> `mysqldump` MySQL डेटाबेस का पूरा `.sql` बैकअप लेने का मानक टूल है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1644 NEW
Most Important EASY
Which MySQL data type restricts a column to store ONLY ONE value chosen from a predefined list of allowed strings (e.g., `'Male'`, `'Female'`, `'Other'`)?
कौन सा MySQL डेटा टाइप किसी कॉलम को पूर्वनिर्धारित स्ट्रिंग्स की सूची में से केवल एक ही मान चुनकर स्टोर करने तक सीमित रखता है?
A
`ENUM`
`ENUM`
Correct
B
`VARCHAR`
`VARCHAR`
C
`INT`
`INT`
D
`DATE`
`DATE`
Solution Breakdown:
-> `ENUM('Low', 'Medium', 'High')` saves storage space and enforces strict valid options directly at the column level. -> Hence, Option (A) is the correct answer.
-> `ENUM` डेटा टाइप कॉलम में केवल तय किए गए विकल्पों में से एक मान स्टोर करने की अनुमति देता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1645 NEW
Most Important MEDIUM
What is the difference between `TEXT`
`BLOB` data types in MySQL? / MySQL में `TEXT` और `BLOB` डेटा टाइप में क्या अंतर है?
A
`TEXT` stores large character strings (like blog articles), whereas `BLOB` (Binary Large Object) stores raw binary data (like images, audio, or PDF files)
`TEXT` बड़े टेक्स्ट/लेख स्टोर करता है, जबकि `BLOB` (बाइनरी लार्ज ऑब्जेक्ट) इमेज, ऑडियो या PDF जैसा बाइनरी डेटा स्टोर करता है
Correct
B
`BLOB` only stores integers
`BLOB` केवल पूर्णांक स्टोर करता है
C
`TEXT` cannot store more than 10 characters
`TEXT` 10 अक्षरों से अधिक स्टोर नहीं कर सकता
D
Both are identical
दोनों बिल्कुल एक समान हैं
Solution Breakdown:
-> `TEXT` comparisons are character-set aware (case-insensitive by default), while `BLOB` stores exact raw bytes. -> Hence, Option (A) is the correct answer.
-> `TEXT` बड़े टेक्स्ट कंटेंट के लिए और `BLOB` बाइनरी फाइलों (फोटो/ऑडियो) के लिए उपयोग होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1646 NEW
Most Important EASY
Which MySQL data type is specifically designed to store exact financial/monetary values (like currency prices `999.99`) WITHOUT floating-point rounding errors?
बिना फ्लोटिंग-पॉइंट राउंडिंग त्रुटि के सटीक वित्तीय/मुद्रा मान (जैसे `999.99`) स्टोर करने के लिए कौन सा MySQL डेटा टाइप सबसे उपयुक्त है?
A
`FLOAT`
`FLOAT`
B
`DECIMAL(M, D)`
`DECIMAL(M, D)`
Correct
C
`INT`
`INT`
D
`VARCHAR`
`VARCHAR`
Solution Breakdown:
-> `DECIMAL(10, 2)` stores exact fixed-point decimal numbers (up to 10 total digits with 2 digits after the decimal), preventing binary rounding inaccuracies common in `FLOAT` or `DOUBLE`. -> Hence, Option (B) is the correct answer.
-> पैसों और सटीक दशमलव गणनाओं के लिए हमेशा `DECIMAL(M, D)` का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1647 NEW
Most Important MEDIUM
Which MySQL function returns the FIRST non-NULL value from a list of arguments (very useful for replacing `NULL` values in query output)?
कौन सा MySQL फंक्शन दिए गए आर्ग्युमेंट्स की सूची में से पहला नॉन-NULL मान लौटाता है (आउटपुट में `NULL` को बदलने के लिए अत्यंत उपयोगी)?
A
`COALESCE()` (or `IFNULL()`)
`COALESCE()` (or `IFNULL()`)
Correct
B
`NULLIFY()`
`NULLIFY()`
C
`EMPTY()`
`EMPTY()`
D
`REPLACE_NULL()`
`REPLACE_NULL()`
Solution Breakdown:
-> Example: `SELECT COALESCE(phone, 'Not Provided') FROM users;` displays `'Not Provided'` whenever `phone` is `NULL`. -> Hence, Option (A) is the correct answer.
-> `COALESCE()` या `IFNULL()` का उपयोग क्वेरी के आउटपुट में `NULL` के स्थान पर कोई डिफ़ॉल्ट टेक्स्ट या मान दिखाने के लिए होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1648 NEW
Most Important MEDIUM
What is the difference between `CEIL(4.2)` and `FLOOR(4.2)` in MySQL?
MySQL में `CEIL(4.2)` और `FLOOR(4.2)` में क्या अंतर है?
A
`CEIL(4.2)` returns `5` (rounds UP to nearest integer), whereas `FLOOR(4.2)` returns `4` (rounds DOWN to nearest integer)
`CEIL(4.2)` ऊपर की ओर निकटतम पूर्णांक `5` देता है, जबकि `FLOOR(4.2)` नीचे की ओर निकटतम पूर्णांक `4` देता है
Correct
B
Both return `4`
दोनों `4` देते हैं
C
Both return `5`
दोनों `5` देते हैं
D
`CEIL(4.2)` returns `4.0`
`CEIL(4.2)` का मान `4.0` होता है
Solution Breakdown:
-> `CEIL()` (or `CEILING()`) always rounds upward to the next whole integer, while `FLOOR()` always rounds downward. -> Hence, Option (A) is the correct answer.
-> `CEIL()` हमेशा ऊपर की ओर और `FLOOR()` हमेशा नीचे की ओर निकटतम पूर्णांक देता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1649 NEW
Most Important EASY
What is the output of the MySQL query `SELECT ABS(-45);`?
MySQL क्वेरी `SELECT ABS(-45);` का आउटपुट क्या होगा?
A
`-45`
`-45`
B
`0`
`0`
C
`45`
`45`
Correct
D
`4.5`
`4.5`
Solution Breakdown:
-> `ABS()` returns the absolute (positive/non-negative) value of any number, converting `-45` into `45`. -> Hence, Option (C) is the correct answer.
-> `ABS()` किसी भी ऋणात्मक संख्या का धनात्मक (निरपेक्ष) मान लौटाता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1650 NEW
Most Important EASY
What is the output of the MySQL query `SELECT POWER(2, 4);` (or `POW(2, 4)`)?
MySQL क्वेरी `SELECT POWER(2, 4);` का आउटपुट क्या होगा?
A
8
8
B
6
6
C
16
16
Correct
D
24
24
Solution Breakdown:
-> `POWER(base, exponent)` raises the base to the given power: $2^4 = 16$. -> Hence, Option (C) is the correct answer.
-> `POWER(2, 4)` का अर्थ $2^4$ है, जिसका मान `16` होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Prev 64 65 66 67 68 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!