SQL MCQ questions and answers pdf, SQL multiple choice questions and answers, SQL questions and answers for interview

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

SQL MCQ questions and answers pdf
SQL MCQ Questions and Answers pdf download

1. Which of the following are some common RDBMS in use?

निम्नलिखित में से कौन से कुछ सामान्य RDBMS उपयोग में हैं?

  1. Oracle
  2. MySQL
  3. HeidiSQL
  4. All of the above

 

2. What is the full form of SQL?

SQL का फुल फॉर्म क्या है?

  1. Sample Query Language
  2. Structured Query Language
  3. Structured Query List
  4. None of the above.

 

3. What command is used to create a new table in SQL?

SQL में नया टेबल बनाने के लिए किस कमांड का प्रयोग किया जाता है?

  1. CREATE TABLE
  2. BUILD TABLE
  3. GENERATE TABLE
  4. None of the above

 

4. What does the following statement in SQL do?

SQL में निम्न कथन क्या करता है?

DROP TABLE student;

  1. Deletes a table called student.
  2. Creates a table called student.
  3. Check if there is a table called student.
  4. None of the above.

 

5. Which of the following are types of Unicode character string types in SQL?

निम्नलिखित में से कौन SQL में यूनिकोड वर्ण स्ट्रिंग प्रकार के प्रकार हैं?

  1. Nchar
  2. Ntext
  3. Both A and B
  4. None of the above

 

6. What does BLOB in SQL stand for?

SQL में BLOB का क्या अर्थ है?

  1. Binary Large Objects
  2. Big Large Objects
  3. Binary Language for Objects
  4. None of the above

 

7. Which of the following datatype is most appropriate for storing a string of up to 255 characters?

255 वर्णों तक की स्ट्रिंग को संग्रहीत करने के लिए निम्न में से कौन सा डेटाटाइप सबसे उपयुक्त है?

  1. TEXT
  2. TINY TEXT
  3. BLOB
  4. BINARY

 

8. What happens when no value is inserted in an ENUM list?

क्या होता है जब किसी ENUM सूची में कोई मान नहीं डाला जाता है?

  1. Nothing happens
  2. The code will crash
  3. A blank value is inserted in that case
  4. None of the above

 

9. What is the range of integers that can be held in the MEDIUMINT datatype of SQL?

SQL के MEDIUMINT डेटाटाइप में रखे जा सकने वाले पूर्णांकों की श्रेणी क्या है?

  1. Signed numbers in the range of -8388608 to 8388607.
  2. Unsigned numbers in the range of 0 to 16777215.
  3. Both A and B.
  4. None of the above.

 

10. Which of the following commands is used to delete all rows and free up space from a table?

निम्न में से किस कमांड का प्रयोग टेबल से सभी पंक्तियों को हटाने और स्थान खाली करने के लिए किया जाता है?

  1. TRUNCATE
  2. DROP
  3. DELETE
  4. ALTER

SQL MCQ questions and answers pdf download

11. Which of the following commands are a part of Data Control Language?

निम्नलिखित में से कौन सी कमांड डेटा कंट्रोल लैंग्वेज का एक हिस्सा है?

  1. Revoke
  2. Grant
  3. Both A and B
  4. None of the above

 

12. When is the wildcard in WHERE clause used?

WHERE क्लॉज में वाइल्डकार्ड का उपयोग कब किया जाता है?

  1. An exact match is necessary for a CREATE statement.
  2. An exact match is not possible in a SELECT statement.
  3. An exact match is necessary for a SELECT statement.
  4. None of the above.

 

13. Which of the following is the full form of DDL?

निम्नलिखित में से कौन डीडीएल का पूर्ण रूप है?

  1. Data definition language
  2. Data derivation language
  3. Dynamic data language
  4. 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 स्पष्ट रूप से नहीं जोड़ा गया है?

  1. UNIQUE
  2. NOT NULL
  3. DEFAULT
  4. CHECK

 

15. What are rows of a relation known as?

Relation की पंक्तियों को क्या कहते हैं?

  1. Degree
  2. Entity
  3. Tuple
  4. None

 

16. During transaction before commit which of the following statements is done automatically in case of shutdown?

प्रतिबद्ध होने से पहले लेनदेन के दौरान शटडाउन के मामले में निम्नलिखित में से कौन सा कथन स्वचालित रूप से किया जाता है?

  1. Rollback
  2. Commit
  3. View
  4. Flashback

 

17. Which of the following allows you to uniquely identify a tuple?

निम्नलिखित में से कौन आपको विशिष्ट रूप से टपल की पहचान करने की अनुमति देता है?

  1. Schema
  2. Attribute
  3. Super key
  4. Domain

 

18. Which of the following is not a SQL command?

निम्न में से कौन SQL कमांड नहीं है?

  1. DELETE
  2. ORDER BY
  3. SELECT
  4. WHERE

 

19. What does the following code snippet do?

निम्नलिखित कोड स्निपेट क्या करता है?

SELECT TOP 5 * FROM students;

  1. Select all the entries from the students’ table other than the top 5 entries
  2. Select the top 5 entries for all the columns in the students’ table.
  3. Selects all entries from the student table except 5 random rows
  4. 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.

निम्नलिखित में से कौन नीचे दी गई परिभाषा से मेल खाता है: यह एक कृत्रिम कुंजी है जिसका उद्देश्य प्रत्येक रिकॉर्ड को विशिष्ट रूप से पहचानना है।

  1. Primary Key
  2. Foreign Key
  3. Surrogate Key
  4. 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?

निम्नलिखित में से किस कमांड का उपयोग किसी क्वेरी से वापस आने वाली पंक्तियों की संख्या पर प्रतिबंध लगाने के लिए किया जाता है?

  1. LIMIT
  2. LIKE
  3. WHERE
  4. GROUP BY

 

22. Which of the following are valid logical operators in SQL?

SQL में निम्नलिखित में से कौन वैध लॉजिकल ऑपरेटर हैं?

  1. SOME
  2. ALL
  3. AND
  4. 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 कोड के रूप में देता है?

  1. SOUNDEX
  2. DIFFERENCE
  3. CONCAT
  4. None of the above

 

24. To select some particular columns, which of the following commands is used?

कुछ विशेष कॉलमों को चुनने के लिए निम्न में से किस कमांड का प्रयोग किया जाता है?

  1. PROJECTION
  2. SELECTION
  3. JOIN
  4. UNION

 

25. Primary key can be?

प्राथमिक कुंजी हो सकती है?

  1. NULL
  2. NOT NULL
  3. Both NULL and NOT NULL
  4. Depends on situation

 

26. Select the valid SQL type.

मान्य SQL प्रकार का चयन करें।

  1. NUMERIC
  2. CHARACTER
  3. FLOAT
  4. 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?

दी गई तारीख के लिए महीने का एक निर्दिष्ट दिन प्राप्त करने के लिए हम निम्नलिखित में से किस फ़ंक्शन का उपयोग करते हैं?

  1. DAY
  2. DATEPART
  3. GETDATE
  4. CURRENT_TIMESTAMP

 

28. Which of the following operators is used to compare a value to a list of literal values that have been specified?

निम्नलिखित में से किस ऑपरेटर का उपयोग किसी मान की तुलना शाब्दिक मानों की सूची से करने के लिए किया जाता है जो निर्दिष्ट किए गए हैं?

  1. ANY
  2. BETWEEN
  3. IN
  4. ALL

 

29. What is a table joined with itself called?

अपने आप से जुड़ने वाली तालिका को क्या कहते हैं?

  1. Join
  2. Self-join
  3. Outer join
  4. None of the above

 

30. NATURAL JOIN can also be termed as –

NATURAL JOIN को इस प्रकार भी कहा जा सकता है –

  1. Combination of Union and cartesian product
  2. Combination of Selection and cartesian product
  3. Combination of Projection and cartesian product
  4. 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 में ट्रिगर को हटाने के लिए निम्न में से किस कमांड का उपयोग किया जाता है?

  1. DROP
  2. DELETE
  3. ALTER
  4. None of the above

 

32. How can we view all the triggers currently in the database?

हम वर्तमान में डेटाबेस में सभी ट्रिगर्स को कैसे देख सकते हैं?

  1. SHOW
  2. VIEW
  3. READ
  4. None of the above

 

33. Which of the following is known as the minimal super key?

निम्न में से किसे minimal super key के रूप में जाना जाता है?

  1. Primary key
  2. Foreign key
  3. Candidate key
  4. None of the above

 

34. Select the correct foreign key constraint?

सही foreign key constraint का चयन करें?

  1. Referential integrity
  2. Entity integrity
  3. Domain integrity
  4. None of the above

 

35. What is NOLOCK in SQL equivalent to?

SQL में NOLOCK किसके बराबर है?

  1. WRITE UNCOMMITTED
  2. READ COMMITTED
  3. WRITE COMMITTED
  4. 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 का नाम क्या है?

  1. Multi query
  2. Subquery
  3. Super query
  4. Master query

 

37. Which is the AS clause used for?

AS क्लॉज किसके लिए प्रयोग किया जाता है?

  1. Rename
  2. Selection
  3. Join
  4. Projection

 

38. Which of the following are valid SQL constraints?

निम्नलिखित में से कौन वैध SQL constraints हैं?

  1. NOT NULL
  2. CHECK
  3. UNIQUE
  4. All of the above

 

39. Which of the following is also known as a concatenated key?

निम्नलिखित में से किसे एक संयोजित कुंजी के रूप में भी जाना जाता है?

  1. Primary Key
  2. Foreign Key
  3. Surrogate Key
  4. Composite Key

 

40. The program which performs some common action on database data and is also stored there is called?

वह प्रोग्राम जो डेटाबेस डेटा पर कुछ सामान्य क्रिया करता है और वहां संग्रहीत भी होता है, क्या कहलाता है?

  1. Trigger
  2. Stored Procedure
  3. Stored Function
  4. None of the above

Also Read: Core Java MCQ questions and answers pdf download

41. How can SQL injections occur?

SQL इंजेक्शन कैसे हो सकता है?

  1. Data is used to dynamically construct an SQL Query.
  2. Unintended data from an untrusted source enters the application.
  3. Both A and B.
  4. None of the above.

 

42. Which of the following constraints can be defined only at the column level?

निम्नलिखित में से कौन सी constraints केवल column level पर परिभाषित की जा सकती है?

  1. UNIQUE
  2. NOT NULL
  3. CHECK
  4. PRIMARY KEY

 

43. Identify the concurrency-based protocol?

समवर्ती-आधारित प्रोटोकॉल की पहचान करें?

  1. Lock based protocol
  2. Two-phase locking protocol
  3. Timestamp ordering protocol
  4. All

 

44. Which of the following is not a valid SQL type?

निम्न में से कौन वैध SQL प्रकार नहीं है?

  1. NUMERIC
  2. DECIMAL
  3. CHARACTER
  4. None of the above

 

45. Which of the following is not a DDL command?

निम्नलिखित में से कौन DDL कमांड नहीं है?

  1. REVOKE
  2. GRANT
  3. UPDATE
  4. RENAME

 

46. Which of the following are TCL commands?

निम्नलिखित में से कौन सी TCL कमांड हैं?

  1. ROLLBACK
  2. SAVEPOINT
  3. Both A and B
  4. None of the above

 

47. SQL views are also known as?

SQL व्यू को किस नाम से भी जाना जाता है?

  1. Schema
  2. Virtual Table
  3. Instance
  4. None of the above

 

48. Which of the following is not a valid aggregate function?

निम्नलिखित में से कौन एक मान्य aggregate function नहीं है?

  1. count()
  2. Sum()
  3. Avg()
  4. None of the above

 

49. Which of the following is not a DDL command?

निम्नलिखित में से कौन DDL कमांड नहीं है?

  1. TRUNCATE
  2. ALTER
  3. CREATE
  4. UPDATE

 

50. Which statement is used to delete all rows in a table without having the action logged?

Table में सभी पंक्तियों को बिना action log किए हटाने के लिए किस statement का उपयोग किया जाता है?

  1. DELETE
  2. REMOVE
  3. DROP
  4. TRUNCATE

SQL MCQ questions and answers pdf download

51. How many Primary keys can have in a table?

एक टेबल में कितनी Primary keys हो सकती हैं?

  1. Only 1
  2. Only 2
  3. Depends on no of Columns
  4. Depends on DBA

 

52. Which datatype can store unstructured data in a column?

कौन सा datatype unstructured data को एक कॉलम में स्टोर कर सकता है?

  1. CHAR
  2. RAW
  3. NUMERIC
  4. VARCHAR

 

53. Which of the following is not Constraint in SQL?

निम्न में से कौन SQL में Constraint नहीं है?

  1. Primary Key
  2. Not Null
  3. Check
  4. Union

 

54. Which of the following is not a valid aggregate function?

निम्नलिखित में से कौन एक valid aggregate function नहीं है?

  1. COUNT
  2. COMPUTE
  3. SUM
  4. MAX

 

55. Which data manipulation command is used to combines the records from one or more tables?

एक या एक से अधिक टेबल से रिकॉर्ड को संयोजित करने के लिए किस डेटा मैनिपुलेशन कमांड का उपयोग किया जाता है?

  1. SELECT
  2. PROJECT
  3. JOIN
  4. PRODUCT

 

56. Which operator is used to compare a value to a specified list of values?

किसी मान की किसी निर्दिष्ट सूची के मानों की तुलना करने के लिए किस ऑपरेटर का उपयोग किया जाता है?

  1. ANY
  2. BETWEEN
  3. ALL
  4. IN

 

57. What operator tests column for absence of data?

कौन सा ऑपरेटर डेटा की अनुपस्थिति के लिए कॉलम का परीक्षण करता है?

  1. NOT Operator
  2. Exists Operator
  3. IS NULL Operator
  4. None of the above

 

58. In which of the following cases a DML statement is not executed?

निम्नलिखित में से किस मामले में डीएमएल स्टेटमेंट निष्पादित नहीं किया जाता है?

  1. When existing rows are modified.
  2. When a table is deleted.
  3. When some rows are deleted.
  4. 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 निर्दिष्ट नहीं किया है, तो डिफ़ॉल्ट रूप से निम्नलिखित का उपयोग किया जाता है।

  1. DESC
  2. ASC
  3. There is no default value
  4. None of the mentioned

 

60. Which of the following statement is true?

निम्नलिखित में से कौन सा कथन सत्य है?

  1. TRUNCATE free the table space while DELETE does not.
  2. Both TRUNCATE and DELETE statements free the table’s space.
  3. Both TRUNCATE and DELETE statement does not free the table’s space.
  4. 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:

  1. INSERT
  2. MODIFY
  3. LOOK-UP
  4. All of the above

 

62. Which of the following is also called an INNER JOIN?

निम्नलिखित में से किसे इनर जॉइन भी कहा जाता है?

  1. SELF JOIN
  2. EQUI JOIN
  3. NON-EQUI JOIN
  4. None of the above

 

63. Which of the following is true about the HAVING clause?

HAVING क्लॉज के बारे में निम्नलिखित में से कौन सा सत्य है?

  1. Similar to the WHERE clause but is used for columns rather than groups.
  2. Similar to WHERE clause but is used for rows rather than columns.
  3. Similar to WHERE clause but is used for groups rather than rows.
  4. Acts exactly like a WHERE clause.

 

64. _______ clause creates temporary relation for the query on which it is defined.

________ क्लॉज उस query के लिए अस्थायी relation बनाता है जिस पर इसे define किया गया है।

  1. WITH
  2. FROM
  3. WHERE
  4. SELECT

 

65. _________ command makes the updates performed by the transaction permanent in the database?

_________ कमांड डेटाबेस में लेनदेन द्वारा किए गए अपडेट को स्थायी बनाता है?

  1. ROLLBACK
  2. COMMIT
  3. TRUNCATE
  4. DELETE

 

66. How can you change “Thomas” into “Michel” in the “LastName” column in the Users table?

आप Users table में “LastName” कॉलम में “Thomas” को “Michel” में कैसे बदल सकते हैं?

  1. UPDATE User SET LastName = ‘Thomas’ INTO LastName = ‘Michel’
  2. MODIFY Users SET LastName = ‘Michel’ WHERE LastName = ‘Thomas’
  3. MODIFY Users SET LastName = ‘Thomas’ INTO LastName = ‘Michel’
  4. UPDATE Users SET LastName = ‘Michel’ WHERE LastName = ‘Thomas’

 

67. Which command is used to change the definition of a table in SQL?

SQL में टेबल की definition बदलने के लिए किस कमांड का उपयोग किया जाता है?

  1. CREATE
  2. UPDATE
  3. ALTER
  4. SELECT

 

68. Which type of JOIN is used to returns rows that do not have matching values?

उन पंक्तियों को returns करने के लिए किस प्रकार के JOIN का उपयोग किया जाता है जिनमें मेल खाने वाले मान नहीं होते हैं?

  1. Natural JOIN
  2. Outer JOIN
  3. EQUI JOIN
  4. All of the above

 

69. Which of the following is the basic approaches for joining tables?

Tables में शामिल होने के लिए निम्नलिखित में से कौन सा मूल दृष्टिकोण है?

  1. Union JOIN
  2. Natural JOIN
  3. Subqueries
  4. 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 बनाने की आवश्यकता क्यों है?

  1. Index improves the speed of data retrieval operations on a table.
  2. Indexes are special lookup tables that will be used by the database search engine.
  3. Indexes are synonyms of a column in a table.
  4. 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 बनाता है उसे ________ के रूप में जाना जाता है।

  1. View
  2. Network
  3. Unit
  4. Transaction

 

72. Which of the following is the correct order of a SQL statement?

निम्न में से कौन-सा SQL कथन का सही क्रम है?

  1. SELECT, GROUP BY, WHERE, HAVING
  2. SELECT, WHERE, GROUP BY, HAVING
  3. SELECT, HAVING, WHERE, GROUP BY
  4. SELECT, WHERE, HAVING, GROUP BY

 

73. What is the difference between a PRIMARY KEY and a UNIQUE KEY?

PRIMARY KEY और UNIQUE KEY में क्या अंतर है?

  1. Primary key can store null value, whereas a unique key cannot store null value.
  2. We can have only one primary key in a table while we can have multiple unique keys
  3. Primary key cannot be a date variable whereas unique key can be
  4. None of these

 

74. Which operator is used to compare the NULL values in SQL?

SQL में NULL मानों की तुलना करने के लिए किस ऑपरेटर का उपयोग किया जाता है?

  1. Equal
  2. IN
  3. IS
  4. None of Above

 

75. When the wildcard in a WHERE clause is useful?

WHERE क्लॉज में वाइल्डकार्ड कब उपयोगी होता है?

  1. When an exact match is required in a SELECT statement.
  2. When an exact match is not possible in a SELECT statement.
  3. When an exact match is required in a CREATE statement.
  4. When an exact match is not possible in a CREATE statement.

 

76. ______ is NOT a type of constraint in SQL language?

______ SQL भाषा में एक प्रकार की constraint नहीं है?

  1. FOREIGN KEY
  2. PRIMARY KEY
  3. UNIQUE
  4. ALTERNATE KEY

 

77. ________ is a program that performs some common action on database data and also stored in the database.

________ एक प्रोग्राम है जो डेटाबेस डेटा पर कुछ सामान्य क्रिया करता है और डेटाबेस में संग्रहीत भी होता है।

  1. Stored Procedure
  2. Trigger
  3. Stored Function
  4. None of the above

 

78. Which statement is used to get all data from the student table whose name starts with p?

छात्र तालिका जिसका नाम p से शुरू होता है, से सभी डेटा प्राप्त करने के लिए किस कथन का उपयोग किया जाता है?

  1. SELECT * FROM student WHERE name LIKE ‘%p%’;
  2. SELECT * FROM student WHERE name LIKE ‘p%’;
  3. SELECT * FROM student WHERE name LIKE ‘_p%’;
  4. SELECT * FROM student WHERE name LIKE ‘%p’;

 

79. What is the advantage of the clustered index?

Clustered Index का क्या लाभ है?

  1. It is fast to update the records.
  2. It does not need extra work for SQL queries.
  3. It minimizes the page transfer and maximizes the cache hits.
  4. None of the above is correct.

 

80. Which of the following operator can be used with a multiple-row subquery?

निम्नलिखित में से किस ऑपरेटर का उपयोग बहु-पंक्ति सबक्वेरी के साथ किया जा सकता है?

  1. =
  2. BETWEEN
  3. NOT IN
  4. <>

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

Leave a Reply

Your email address will not be published. Required fields are marked *