SQL MCQ questions and answers pdf download
Hello aspirant in this article you can find your query related to SQL MCQ questions and answers pdf download, SQL multiple choice questions and answers for freshers, SQL questions and answers for interview, SQL database interview questions, SQL interview questions and answers, SQL mcq interview questions, SQL multiple choice questions with answers pdf, SQL questions and answers for practice pdf
SQL multiple choice questions and answers
SQL basic interview questions, SQL database mcq questions and answers, SQL mcq question knowledge, SQL mcq questions for interview, SQL multiple choice questions answers, SQL MCQ questions and answers pdf, SQL objective type questions and answers
1. Which of the following are some common RDBMS in use?
निम्नलिखित में से कौन से कुछ सामान्य RDBMS उपयोग में हैं?
- Oracle
- MySQL
- HeidiSQL
- All of the above
2. What is the full form of SQL?
SQL का फुल फॉर्म क्या है?
- Sample Query Language
- Structured Query Language
- Structured Query List
- None of the above.
3. What command is used to create a new table in SQL?
SQL में नया टेबल बनाने के लिए किस कमांड का प्रयोग किया जाता है?
- CREATE TABLE
- BUILD TABLE
- GENERATE TABLE
- None of the above
4. What does the following statement in SQL do?
SQL में निम्न कथन क्या करता है?
DROP TABLE student;
- Deletes a table called student.
- Creates a table called student.
- Check if there is a table called student.
- None of the above.
5. Which of the following are types of Unicode character string types in SQL?
निम्नलिखित में से कौन SQL में यूनिकोड वर्ण स्ट्रिंग प्रकार के प्रकार हैं?
- Nchar
- Ntext
- Both A and B
- None of the above
6. What does BLOB in SQL stand for?
SQL में BLOB का क्या अर्थ है?
- Binary Large Objects
- Big Large Objects
- Binary Language for Objects
- None of the above
7. Which of the following datatype is most appropriate for storing a string of up to 255 characters?
255 वर्णों तक की स्ट्रिंग को संग्रहीत करने के लिए निम्न में से कौन सा डेटाटाइप सबसे उपयुक्त है?
- TEXT
- TINY TEXT
- BLOB
- BINARY
8. What happens when no value is inserted in an ENUM list?
क्या होता है जब किसी ENUM सूची में कोई मान नहीं डाला जाता है?
- Nothing happens
- The code will crash
- A blank value is inserted in that case
- None of the above
9. What is the range of integers that can be held in the MEDIUMINT datatype of SQL?
SQL के MEDIUMINT डेटाटाइप में रखे जा सकने वाले पूर्णांकों की श्रेणी क्या है?
- Signed numbers in the range of -8388608 to 8388607.
- Unsigned numbers in the range of 0 to 16777215.
- Both A and B.
- None of the above.
10. Which of the following commands is used to delete all rows and free up space from a table?
निम्न में से किस कमांड का प्रयोग टेबल से सभी पंक्तियों को हटाने और स्थान खाली करने के लिए किया जाता है?
- TRUNCATE
- DROP
- DELETE
- ALTER
SQL MCQ questions and answers pdf download
11. Which of the following commands are a part of Data Control Language?
निम्नलिखित में से कौन सी कमांड डेटा कंट्रोल लैंग्वेज का एक हिस्सा है?
- Revoke
- Grant
- Both A and B
- None of the above
12. When is the wildcard in WHERE clause used?
WHERE क्लॉज में वाइल्डकार्ड का उपयोग कब किया जाता है?
- An exact match is necessary for a CREATE statement.
- An exact match is not possible in a SELECT statement.
- An exact match is necessary for a SELECT statement.
- None of the above.
13. Which of the following is the full form of DDL?
निम्नलिखित में से कौन डीडीएल का पूर्ण रूप है?
- Data definition language
- Data derivation language
- Dynamic data language
- Detailed data language
14. Which SQL constraint do we use to set some value to a field whose value has not been added explicitly?
उस फ़ील्ड में कुछ मान सेट करने के लिए हम किस SQL constraint का उपयोग करते हैं जिसका value स्पष्ट रूप से नहीं जोड़ा गया है?
- UNIQUE
- NOT NULL
- DEFAULT
- CHECK
15. What are rows of a relation known as?
Relation की पंक्तियों को क्या कहते हैं?
- Degree
- Entity
- Tuple
- None
16. During transaction before commit which of the following statements is done automatically in case of shutdown?
प्रतिबद्ध होने से पहले लेनदेन के दौरान शटडाउन के मामले में निम्नलिखित में से कौन सा कथन स्वचालित रूप से किया जाता है?
- Rollback
- Commit
- View
- Flashback
17. Which of the following allows you to uniquely identify a tuple?
निम्नलिखित में से कौन आपको विशिष्ट रूप से टपल की पहचान करने की अनुमति देता है?
- Schema
- Attribute
- Super key
- Domain
18. Which of the following is not a SQL command?
निम्न में से कौन SQL कमांड नहीं है?
- DELETE
- ORDER BY
- SELECT
- WHERE
19. What does the following code snippet do?
निम्नलिखित कोड स्निपेट क्या करता है?
SELECT TOP 5 * FROM students;
- Select all the entries from the students’ table other than the top 5 entries
- Select the top 5 entries for all the columns in the students’ table.
- Selects all entries from the student table except 5 random rows
- None of the above
20. Which of the following matches the definition given below: It is an artificial key that aims to uniquely identify each record.
निम्नलिखित में से कौन नीचे दी गई परिभाषा से मेल खाता है: यह एक कृत्रिम कुंजी है जिसका उद्देश्य प्रत्येक रिकॉर्ड को विशिष्ट रूप से पहचानना है।
- Primary Key
- Foreign Key
- Surrogate Key
- Composite Key
SQL MCQ questions and answers pdf download
21. Which of the following commands are used to put a restriction on the number of rows returned from a query?
निम्नलिखित में से किस कमांड का उपयोग किसी क्वेरी से वापस आने वाली पंक्तियों की संख्या पर प्रतिबंध लगाने के लिए किया जाता है?
- LIMIT
- LIKE
- WHERE
- GROUP BY
22. Which of the following are valid logical operators in SQL?
SQL में निम्नलिखित में से कौन वैध लॉजिकल ऑपरेटर हैं?
- SOME
- ALL
- AND
- All of the above
23. Which of the following SQL functions compares the similarities of 2 strings and returns the result as a 4 character code?
निम्नलिखित में से कौन सा SQL फ़ंक्शन 2 स्ट्रिंग्स की समानता की तुलना करता है और परिणाम को 4 character कोड के रूप में देता है?
- SOUNDEX
- DIFFERENCE
- CONCAT
- None of the above
24. To select some particular columns, which of the following commands is used?
कुछ विशेष कॉलमों को चुनने के लिए निम्न में से किस कमांड का प्रयोग किया जाता है?
- PROJECTION
- SELECTION
- JOIN
- UNION
25. Primary key can be?
प्राथमिक कुंजी हो सकती है?
- NULL
- NOT NULL
- Both NULL and NOT NULL
- Depends on situation
26. Select the valid SQL type.
मान्य SQL प्रकार का चयन करें।
- NUMERIC
- CHARACTER
- FLOAT
- All of the above
27. Which of the following functions do we use to get a specified day of the month for a given date?
दी गई तारीख के लिए महीने का एक निर्दिष्ट दिन प्राप्त करने के लिए हम निम्नलिखित में से किस फ़ंक्शन का उपयोग करते हैं?
- DAY
- DATEPART
- GETDATE
- CURRENT_TIMESTAMP
28. Which of the following operators is used to compare a value to a list of literal values that have been specified?
निम्नलिखित में से किस ऑपरेटर का उपयोग किसी मान की तुलना शाब्दिक मानों की सूची से करने के लिए किया जाता है जो निर्दिष्ट किए गए हैं?
- ANY
- BETWEEN
- IN
- ALL
29. What is a table joined with itself called?
अपने आप से जुड़ने वाली तालिका को क्या कहते हैं?
- Join
- Self-join
- Outer join
- None of the above
30. NATURAL JOIN can also be termed as –
NATURAL JOIN को इस प्रकार भी कहा जा सकता है –
- Combination of Union and cartesian product
- Combination of Selection and cartesian product
- Combination of Projection and cartesian product
- None of the above
SQL MCQ questions and answers pdf download
31. Which of the following commands is used to delete a trigger in SQL?
SQL में ट्रिगर को हटाने के लिए निम्न में से किस कमांड का उपयोग किया जाता है?
- DROP
- DELETE
- ALTER
- None of the above
32. How can we view all the triggers currently in the database?
हम वर्तमान में डेटाबेस में सभी ट्रिगर्स को कैसे देख सकते हैं?
- SHOW
- VIEW
- READ
- None of the above
33. Which of the following is known as the minimal super key?
निम्न में से किसे minimal super key के रूप में जाना जाता है?
- Primary key
- Foreign key
- Candidate key
- None of the above
34. Select the correct foreign key constraint?
सही foreign key constraint का चयन करें?
- Referential integrity
- Entity integrity
- Domain integrity
- None of the above
35. What is NOLOCK in SQL equivalent to?
SQL में NOLOCK किसके बराबर है?
- WRITE UNCOMMITTED
- READ COMMITTED
- WRITE COMMITTED
- READ UNCOMMITTED
36. What is the name of the query that is placed within a WHERE or HAVING clause of another query?
किसी अन्य query के WHERE या HAVING क्लॉज़ में रखी गई query का नाम क्या है?
- Multi query
- Subquery
- Super query
- Master query
37. Which is the AS clause used for?
AS क्लॉज किसके लिए प्रयोग किया जाता है?
- Rename
- Selection
- Join
- Projection
38. Which of the following are valid SQL constraints?
निम्नलिखित में से कौन वैध SQL constraints हैं?
- NOT NULL
- CHECK
- UNIQUE
- All of the above
39. Which of the following is also known as a concatenated key?
निम्नलिखित में से किसे एक संयोजित कुंजी के रूप में भी जाना जाता है?
- Primary Key
- Foreign Key
- Surrogate Key
- Composite Key
40. The program which performs some common action on database data and is also stored there is called?
वह प्रोग्राम जो डेटाबेस डेटा पर कुछ सामान्य क्रिया करता है और वहां संग्रहीत भी होता है, क्या कहलाता है?
- Trigger
- Stored Procedure
- Stored Function
- None of the above
41. How can SQL injections occur?
SQL इंजेक्शन कैसे हो सकता है?
- Data is used to dynamically construct an SQL Query.
- Unintended data from an untrusted source enters the application.
- Both A and B.
- None of the above.
42. Which of the following constraints can be defined only at the column level?
निम्नलिखित में से कौन सी constraints केवल column level पर परिभाषित की जा सकती है?
- UNIQUE
- NOT NULL
- CHECK
- PRIMARY KEY
43. Identify the concurrency-based protocol?
समवर्ती-आधारित प्रोटोकॉल की पहचान करें?
- Lock based protocol
- Two-phase locking protocol
- Timestamp ordering protocol
- All
44. Which of the following is not a valid SQL type?
निम्न में से कौन वैध SQL प्रकार नहीं है?
- NUMERIC
- DECIMAL
- CHARACTER
- None of the above
45. Which of the following is not a DDL command?
निम्नलिखित में से कौन DDL कमांड नहीं है?
- REVOKE
- GRANT
- UPDATE
- RENAME
46. Which of the following are TCL commands?
निम्नलिखित में से कौन सी TCL कमांड हैं?
- ROLLBACK
- SAVEPOINT
- Both A and B
- None of the above
47. SQL views are also known as?
SQL व्यू को किस नाम से भी जाना जाता है?
- Schema
- Virtual Table
- Instance
- None of the above
48. Which of the following is not a valid aggregate function?
निम्नलिखित में से कौन एक मान्य aggregate function नहीं है?
- count()
- Sum()
- Avg()
- None of the above
49. Which of the following is not a DDL command?
निम्नलिखित में से कौन DDL कमांड नहीं है?
- TRUNCATE
- ALTER
- CREATE
- UPDATE
50. Which statement is used to delete all rows in a table without having the action logged?
Table में सभी पंक्तियों को बिना action log किए हटाने के लिए किस statement का उपयोग किया जाता है?
- DELETE
- REMOVE
- DROP
- TRUNCATE
SQL MCQ questions and answers pdf download
51. How many Primary keys can have in a table?
एक टेबल में कितनी Primary keys हो सकती हैं?
- Only 1
- Only 2
- Depends on no of Columns
- Depends on DBA
52. Which datatype can store unstructured data in a column?
कौन सा datatype unstructured data को एक कॉलम में स्टोर कर सकता है?
- CHAR
- RAW
- NUMERIC
- VARCHAR
53. Which of the following is not Constraint in SQL?
निम्न में से कौन SQL में Constraint नहीं है?
- Primary Key
- Not Null
- Check
- Union
54. Which of the following is not a valid aggregate function?
निम्नलिखित में से कौन एक valid aggregate function नहीं है?
- COUNT
- COMPUTE
- SUM
- MAX
55. Which data manipulation command is used to combines the records from one or more tables?
एक या एक से अधिक टेबल से रिकॉर्ड को संयोजित करने के लिए किस डेटा मैनिपुलेशन कमांड का उपयोग किया जाता है?
- SELECT
- PROJECT
- JOIN
- PRODUCT
56. Which operator is used to compare a value to a specified list of values?
किसी मान की किसी निर्दिष्ट सूची के मानों की तुलना करने के लिए किस ऑपरेटर का उपयोग किया जाता है?
- ANY
- BETWEEN
- ALL
- IN
57. What operator tests column for absence of data?
कौन सा ऑपरेटर डेटा की अनुपस्थिति के लिए कॉलम का परीक्षण करता है?
- NOT Operator
- Exists Operator
- IS NULL Operator
- None of the above
58. In which of the following cases a DML statement is not executed?
निम्नलिखित में से किस मामले में डीएमएल स्टेटमेंट निष्पादित नहीं किया जाता है?
- When existing rows are modified.
- When a table is deleted.
- When some rows are deleted.
- All of the above
59. If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default.
यदि हमने SQL ORDER BY क्लॉज के बाद ASC या DESC निर्दिष्ट नहीं किया है, तो डिफ़ॉल्ट रूप से निम्नलिखित का उपयोग किया जाता है।
- DESC
- ASC
- There is no default value
- None of the mentioned
60. Which of the following statement is true?
निम्नलिखित में से कौन सा कथन सत्य है?
- TRUNCATE free the table space while DELETE does not.
- Both TRUNCATE and DELETE statements free the table’s space.
- Both TRUNCATE and DELETE statement does not free the table’s space.
- DELETE free the table space while TRUNCATE does not.
SQL MCQ questions and answers pdf download
61. A command that lets you change one or more field in a table is:
- INSERT
- MODIFY
- LOOK-UP
- All of the above
62. Which of the following is also called an INNER JOIN?
निम्नलिखित में से किसे इनर जॉइन भी कहा जाता है?
- SELF JOIN
- EQUI JOIN
- NON-EQUI JOIN
- None of the above
63. Which of the following is true about the HAVING clause?
HAVING क्लॉज के बारे में निम्नलिखित में से कौन सा सत्य है?
- Similar to the WHERE clause but is used for columns rather than groups.
- Similar to WHERE clause but is used for rows rather than columns.
- Similar to WHERE clause but is used for groups rather than rows.
- Acts exactly like a WHERE clause.
64. _______ clause creates temporary relation for the query on which it is defined.
________ क्लॉज उस query के लिए अस्थायी relation बनाता है जिस पर इसे define किया गया है।
- WITH
- FROM
- WHERE
- SELECT
65. _________ command makes the updates performed by the transaction permanent in the database?
_________ कमांड डेटाबेस में लेनदेन द्वारा किए गए अपडेट को स्थायी बनाता है?
- ROLLBACK
- COMMIT
- TRUNCATE
- DELETE
66. How can you change “Thomas” into “Michel” in the “LastName” column in the Users table?
आप Users table में “LastName” कॉलम में “Thomas” को “Michel” में कैसे बदल सकते हैं?
- UPDATE User SET LastName = ‘Thomas’ INTO LastName = ‘Michel’
- MODIFY Users SET LastName = ‘Michel’ WHERE LastName = ‘Thomas’
- MODIFY Users SET LastName = ‘Thomas’ INTO LastName = ‘Michel’
- UPDATE Users SET LastName = ‘Michel’ WHERE LastName = ‘Thomas’
67. Which command is used to change the definition of a table in SQL?
SQL में टेबल की definition बदलने के लिए किस कमांड का उपयोग किया जाता है?
- CREATE
- UPDATE
- ALTER
- SELECT
68. Which type of JOIN is used to returns rows that do not have matching values?
उन पंक्तियों को returns करने के लिए किस प्रकार के JOIN का उपयोग किया जाता है जिनमें मेल खाने वाले मान नहीं होते हैं?
- Natural JOIN
- Outer JOIN
- EQUI JOIN
- All of the above
69. Which of the following is the basic approaches for joining tables?
Tables में शामिल होने के लिए निम्नलिखित में से कौन सा मूल दृष्टिकोण है?
- Union JOIN
- Natural JOIN
- Subqueries
- All of the above
70. Why we need to create an index if the primary key is already present in a table?
यदि Primary key पहले से किसी table में मौजूद है तो हमें एक index बनाने की आवश्यकता क्यों है?
- Index improves the speed of data retrieval operations on a table.
- Indexes are special lookup tables that will be used by the database search engine.
- Indexes are synonyms of a column in a table.
- All of the above
SQL MCQ questions and answers pdf download
71. Group of operations that form a single logical unit of work is known as ________.
Operations का समूह जो कार्य की single logical unit बनाता है उसे ________ के रूप में जाना जाता है।
- View
- Network
- Unit
- Transaction
72. Which of the following is the correct order of a SQL statement?
निम्न में से कौन-सा SQL कथन का सही क्रम है?
- SELECT, GROUP BY, WHERE, HAVING
- SELECT, WHERE, GROUP BY, HAVING
- SELECT, HAVING, WHERE, GROUP BY
- SELECT, WHERE, HAVING, GROUP BY
73. What is the difference between a PRIMARY KEY and a UNIQUE KEY?
PRIMARY KEY और UNIQUE KEY में क्या अंतर है?
- Primary key can store null value, whereas a unique key cannot store null value.
- We can have only one primary key in a table while we can have multiple unique keys
- Primary key cannot be a date variable whereas unique key can be
- None of these
74. Which operator is used to compare the NULL values in SQL?
SQL में NULL मानों की तुलना करने के लिए किस ऑपरेटर का उपयोग किया जाता है?
- Equal
- IN
- IS
- None of Above
75. When the wildcard in a WHERE clause is useful?
WHERE क्लॉज में वाइल्डकार्ड कब उपयोगी होता है?
- When an exact match is required in a SELECT statement.
- When an exact match is not possible in a SELECT statement.
- When an exact match is required in a CREATE statement.
- When an exact match is not possible in a CREATE statement.
76. ______ is NOT a type of constraint in SQL language?
______ SQL भाषा में एक प्रकार की constraint नहीं है?
- FOREIGN KEY
- PRIMARY KEY
- UNIQUE
- ALTERNATE KEY
77. ________ is a program that performs some common action on database data and also stored in the database.
________ एक प्रोग्राम है जो डेटाबेस डेटा पर कुछ सामान्य क्रिया करता है और डेटाबेस में संग्रहीत भी होता है।
- Stored Procedure
- Trigger
- Stored Function
- None of the above
78. Which statement is used to get all data from the student table whose name starts with p?
छात्र तालिका जिसका नाम p से शुरू होता है, से सभी डेटा प्राप्त करने के लिए किस कथन का उपयोग किया जाता है?
- SELECT * FROM student WHERE name LIKE ‘%p%’;
- SELECT * FROM student WHERE name LIKE ‘p%’;
- SELECT * FROM student WHERE name LIKE ‘_p%’;
- SELECT * FROM student WHERE name LIKE ‘%p’;
79. What is the advantage of the clustered index?
Clustered Index का क्या लाभ है?
- It is fast to update the records.
- It does not need extra work for SQL queries.
- It minimizes the page transfer and maximizes the cache hits.
- None of the above is correct.
80. Which of the following operator can be used with a multiple-row subquery?
निम्नलिखित में से किस ऑपरेटर का उपयोग बहु-पंक्ति सबक्वेरी के साथ किया जा सकता है?
- =
- BETWEEN
- NOT IN
- <>
SQL multiple choice questions and answers
So friend I hope you enjoy this article related to SQL MCQ questions and answers pdf, SQL question asked in interview, SQL questions and answers, SQL questions and answers mcq, SQL questions for interview,
SQL MCQ questions and answers pdf download
File Name | SQL MCQ Questions and Answers pdf |
File Size | 787 KB |
No. of Pages | 18 |
Language | Hindi and English |
Download | Click Here |
Related Searches: Mysql mcq questions with answers pdf, SQL basic mcq questions, SQL commands mcq questions, SQL mcq practice questions, SQL mcq questions answers, SQL mcq questions in Hindi, SQL mcq questions pdf, SQL multiple choice questions and answers for experienced, SQL MCQ questions and answers pdf