DBMS — MCQ Practice

Hindi aur English dono mein practice karo — click karo answer check karne ke liye

📚 122 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
122 questions
61
EN + हिं
GB A set of objects that share a common structure and a common behavior is called:
IN वस्तुओं का एक समूह जो एक समान संरचना और एक सामान्य व्यवहार साझा करता है, कहलाता है:
A
Object वस्तु
B
Class कक्षा
C
Entity इकाई
D
None of these इनमें से कोई नहीं
✅ Correct Answer:
62
EN + हिं
GB Which is the symbol used to denote the SELECT operation?
IN SELECT ऑपरेशन को दर्शाने के लिए किस चिन्ह का उपयोग किया जाता है?
A
Sigma सिग्मा
B
Rho रो
C
Pi अनुकरणीय
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
63
EN + हिं
GB Which of the following database object does not physically exist?
IN निम्नलिखित में से कौन सा डेटाबेस ऑब्जेक्ट भौतिक रूप से मौजूद नहीं है?
A
Base table बेस टेबल
B
Index अनुक्रमणिका
C
View देखना
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
64
EN + हिं
GB The relation with the attribute which is the primary key is referenced in another relation. The relation which has the attribute as primary key is called
IN विशेषता के साथ संबंध जो प्राथमिक कुंजी है, उसे किसी अन्य संबंध में संदर्भित किया जाता है। वह संबंध जिसमें प्राथमिक कुंजी के रूप में विशेषता होती है, कहलाता है
A
Referential relation संदर्भात्मक संबंध
B
Referencing relation संदर्भ संबंध
C
Referenced relation संदर्भित संबंध
D
Referred relation संदर्भित संबंध
✅ Correct Answer:
65
EN + हिं
GB Which of the following is NOT VALID is PL/SQL?
IN निम्नलिखित में से कौन सा PL/SQL मान्य नहीं है?
A
Boolboolean; बूलबूलियन;
B
NUM1, NUM2 number; NUM1, NUM2 नंबर;
C
deptnamedept.dname%type; deptnamedept.dname%type;
D
date1 date := sysdate दिनांक1 दिनांक := sysdate
✅ Correct Answer:
66
EN + हिं
GB Which of the following specifies a boolean expression that must be true for the trigger to fire?
IN निम्नलिखित में से कौन सा एक बूलियन अभिव्यक्ति निर्दिष्ट करता है जो ट्रिगर को फायर करने के लिए सत्य होना चाहिए?
A
Trigger Action ट्रिगर क्रिया
B
Triggering Event प्रेरक घटना
C
Trigger Restriction ट्रिगर प्रतिबंध
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
67
EN + हिं
GB What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?
IN Oracle बैकअप का प्रकार क्या है जिसमें डेटा फ़ाइलों से सभी अप्रतिबद्ध परिवर्तन हटा दिए गए हैं?
A
Full backup पूर्ण बैकअप
B
Consistent backup लगातार बैकअप
C
Inconsistent backup असंगत बैकअप
D
Differential backup विभेदक बैकअप
✅ Correct Answer:
68
EN + हिं
GB The DBMS language component which can be embedded in a program is
IN DBMS भाषा घटक जिसे किसी प्रोग्राम में एम्बेड किया जा सकता है वह है
A
The data definition language (DDL). डेटा परिभाषा भाषा (डीडीएल)।
B
The data manipulation language (DML). डेटा हेरफेर भाषा (डीएमएल)।
C
The database administrator (DBA). डेटाबेस प्रशासक (डीबीए)।
D
A query language एक प्रश्न भाषा
✅ Correct Answer:
69
EN + हिं
GB The granularity of a database item can be chosen to be
IN डेटाबेस आइटम की ग्रैन्युलैरिटी को चुना जा सकता है
A
A whole file एक पूरी फ़ाइल
B
A database record एक डेटाबेस रिकॉर्ड
C
The whole database संपूर्ण डेटाबेस
D
All of the above. ऊपर के सभी।
✅ Correct Answer:
70
EN + हिं
GB A 3 NF relation is converted to BCNF by
IN एक 3NF संबंध को BCNF में परिवर्तित किया जाता है
A
removing composite keys समग्र कुंजियाँ हटाना
B
removing multivalued dependencies बहुमूल्यवान निर्भरता को हटाना
C
dependent attributes of overlapping composite keys are put in a separateRelation ओवरलैपिंग मिश्रित कुंजियों की आश्रित विशेषताओं को एक अलग रिलेशन में रखा गया है
D
dependent non-key attributes are put in a separate table आश्रित गैर-कुंजी विशेषताओं को एक अलग तालिका में रखा गया है
✅ Correct Answer:
71
EN + हिं
GB A relation Schema R is in ……….. if it is in 3NF and satisfies an additional constant thatfor every FD X->A. X must be a candidate key.
IN एक संबंध स्कीमा R …….. में है यदि यह 3NF में है और प्रत्येक FD X->A के लिए एक अतिरिक्त स्थिरांक को संतुष्ट करता है। X एक उम्मीदवार कुंजी होनी चाहिए.
A
1 NF 1 एनएफ
B
2 NF 2 एनएफ
C
3 NF 3 एनएफ
D
BCNF बीसीएनएफ
✅ Correct Answer:
72
EN + हिं Easy
GB What is role-based access control (RBAC) in database security?
IN डेटाबेस सुरक्षा में भूमिका-आधारित अभिगम नियंत्रण (आरबीएसी) क्या है?
A
RBAC: privileges are assigned to roles (logical groups) and roles are assigned to users; changing a roles privileges automatically affects all users with that role. Direct grants: privileges assigned directly to individual users making management complex and error-prone at scale आरबीएसी: विशेषाधिकार भूमिकाओं (तार्किक समूहों) को सौंपे जाते हैं और भूमिकाएं उपयोगकर्ताओं को सौंपी जाती हैं; किसी भूमिका के विशेषाधिकार बदलने से उस भूमिका वाले सभी उपयोगकर्ता स्वचालित रूप से प्रभावित होते हैं। प्रत्यक्ष अनुदान: प्रबंधन को जटिल और बड़े पैमाने पर त्रुटि-प्रवण बनाने वाले व्यक्तिगत उपयोगकर्ताओं को सीधे दिए गए विशेषाधिकार
B
Roles can only be assigned to database administrators भूमिकाएँ केवल डेटाबेस प्रशासकों को सौंपी जा सकती हैं
C
RBAC is weaker than direct privilege grants आरबीएसी प्रत्यक्ष विशेषाधिकार अनुदान से कमजोर है
D
RBAC is identical to direct privilege grants आरबीएसी प्रत्यक्ष विशेषाधिकार अनुदान के समान है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) RBAC example: CREATE ROLE analyst_role; GRANT SELECT ON sales TO analyst_role; GRANT analyst_role TO alice, bob, charlie. Adding new analyst: GRANT analyst_role TO dave (one command). Changing analyst privileges: ALTER ROLE analyst_role (affects all automatically). Direct grants: 4 individual GRANT commands, error-prone.
व्याख्या (हिन्दी) आरबीएसी उदाहरण: भूमिका विश्लेषक_भूमिका बनाएं; विश्लेषक_भूमिका को बिक्री पर अनुदान चयन; ऐलिस, बॉब, चार्ली को विश्लेषक की भूमिका प्रदान करें। नया विश्लेषक जोड़ा जा रहा है: डेव को विश्लेषक की भूमिका प्रदान करें (एक आदेश)। विश्लेषक विशेषाधिकार बदलना: भूमिका विश्लेषक_भूमिका बदलें (सभी को स्वचालित रूप से प्रभावित करता है)। प्रत्यक्ष अनुदान: 4 व्यक्तिगत अनुदान आदेश, त्रुटि-प्रवण।
73
EN + हिं Medium
GB What is row-level security (RLS) and how does it differ from view-based row filtering?
IN पंक्ति-स्तरीय सुरक्षा (आरएलएस) क्या है और यह दृश्य-आधारित पंक्ति फ़िल्टरिंग से कैसे भिन्न है?
A
RLS is only available in NoSQL databases RLS केवल NoSQL डेटाबेस में उपलब्ध है
B
RLS requires application code to implement आरएलएस को लागू करने के लिए एप्लिकेशन कोड की आवश्यकता होती है
C
RLS is a database feature where security policies are automatically applied to queries at the database level based on the executing user/role transparently filtering rows without requiring application code or view modifications; views require explicit usage and can be bypassed if user has direct table access आरएलएस एक डेटाबेस सुविधा है जहां सुरक्षा नीतियां स्वचालित रूप से एप्लिकेशन कोड या दृश्य संशोधनों की आवश्यकता के बिना निष्पादित उपयोगकर्ता/भूमिका के आधार पर पंक्तियों को पारदर्शी रूप से फ़िल्टर करने वाले डेटाबेस स्तर पर प्रश्नों पर लागू होती हैं; दृश्यों के लिए स्पष्ट उपयोग की आवश्यकता होती है और यदि उपयोगकर्ता के पास सीधी तालिका पहुंच है तो इसे बायपास किया जा सकता है
D
RLS and view-based filtering are identical आरएलएस और दृश्य-आधारित फ़िल्टरिंग समान हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) RLS (PostgreSQL): CREATE POLICY emp_policy ON employee FOR SELECT USING (dept = current_user_dept()); ALTER TABLE employee ENABLE ROW LEVEL SECURITY. Any SELECT on employee automatically filters by department even if user queries the base table directly. Cannot be bypassed by the restricted user.
व्याख्या (हिन्दी) आरएलएस (पोस्टग्रेएसक्यूएल): चुनिंदा उपयोग के लिए कर्मचारी पर नीति emp_policy बनाएं (विभाग = current_user_dept()); परिवर्तन तालिका कर्मचारी पंक्ति स्तरीय सुरक्षा सक्षम करें। कर्मचारी पर कोई भी चयन स्वचालित रूप से विभाग द्वारा फ़िल्टर किया जाता है, भले ही उपयोगकर्ता सीधे आधार तालिका पर सवाल उठाता हो। प्रतिबंधित उपयोगकर्ता द्वारा बायपास नहीं किया जा सकता.
74
EN + हिं Easy
GB What is transparent data encryption (TDE) and what threat does it protect against?
IN पारदर्शी डेटा एन्क्रिप्शन (टीडीई) क्या है और यह किस खतरे से बचाता है?
A
Database-level encryption where data files log files and backups are encrypted on disk automatically by the DBMS without application changes; protects against: theft of physical storage media unauthorized access to database file copies but does NOT protect against authorized database users or SQL injection डेटाबेस-स्तरीय एन्क्रिप्शन जहां डेटा फ़ाइलें लॉग फ़ाइलें और बैकअप एप्लिकेशन परिवर्तन के बिना डीबीएमएस द्वारा स्वचालित रूप से डिस्क पर एन्क्रिप्ट की जाती हैं; इनसे सुरक्षा करता है: भौतिक भंडारण मीडिया की चोरी, डेटाबेस फ़ाइल प्रतियों तक अनधिकृत पहुंच, लेकिन अधिकृत डेटाबेस उपयोगकर्ताओं या SQL इंजेक्शन से सुरक्षा नहीं करता है
B
Encryption applied transparently to all SQL results एन्क्रिप्शन सभी SQL परिणामों पर पारदर्शी रूप से लागू किया गया
C
Encryption that is visible to database users एन्क्रिप्शन जो डेटाबेस उपयोगकर्ताओं को दिखाई देता है
D
Encryption of the database schema definition डेटाबेस स्कीमा परिभाषा का एन्क्रिप्शन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) TDE protection: physical media theft (stolen hard drive has encrypted data = unreadable without DBMS key). Backup file theft (encrypted backup file is unreadable without key). Does NOT protect: legitimate DB user with SELECT privilege, DBA accounts, in-memory data during query execution, or SQL injection attacks.
व्याख्या (हिन्दी) टीडीई सुरक्षा: भौतिक मीडिया चोरी (चोरी की गई हार्ड ड्राइव में एन्क्रिप्टेड डेटा = डीबीएमएस कुंजी के बिना अपठनीय है)। बैकअप फ़ाइल चोरी (एन्क्रिप्टेड बैकअप फ़ाइल कुंजी के बिना अपठनीय है)। सुरक्षा नहीं करता: SELECT विशेषाधिकार के साथ वैध DB उपयोगकर्ता, DBA खाते, क्वेरी निष्पादन के दौरान इन-मेमोरी डेटा, या SQL इंजेक्शन हमले।
75
EN + हिं Easy
GB What is data masking (static vs dynamic) in database security?
IN डेटाबेस सुरक्षा में डेटा मास्किंग (स्थैतिक बनाम गतिशील) क्या है?
A
Static data masking: permanently replaces sensitive data with realistic but fictitious values in non-production copies. Dynamic data masking: applies masking rules at query time for specific users returning masked values while original data remains stored unchanged स्टेटिक डेटा मास्किंग: गैर-उत्पादन प्रतियों में संवेदनशील डेटा को यथार्थवादी लेकिन काल्पनिक मूल्यों से स्थायी रूप से बदल देता है। डायनामिक डेटा मास्किंग: विशिष्ट उपयोगकर्ताओं के लिए क्वेरी समय पर मास्किंग नियम लागू करता है, जो मास्क्ड मान लौटाते हैं, जबकि मूल डेटा अपरिवर्तित रहता है
B
Compressing data for storage efficiency भंडारण दक्षता के लिए डेटा को संपीड़ित करना
C
Encrypting data before storage भंडारण से पहले डेटा एन्क्रिप्ट करना
D
Hiding column names from users उपयोगकर्ताओं से कॉलम नाम छुपाया जा रहा है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Static masking: copy prod data, apply irreversible masks (SSN 123-45-6789 becomes 999-99-9999), give to dev team. Data cannot be unmasked. Dynamic masking (SQL Server, Oracle): DBA sees real SSN, app user sees masked value. Applied at query time. Useful for: partial data visibility, customer service seeing only last 4 digits.
व्याख्या (हिन्दी) स्टेटिक मास्किंग: उत्पाद डेटा कॉपी करें, अपरिवर्तनीय मास्क लागू करें (एसएसएन 123-45-6789 999-99-9999 बन जाता है), डेव टीम को दें। डेटा को उजागर नहीं किया जा सकता. डायनेमिक मास्किंग (एसक्यूएल सर्वर, ओरेकल): डीबीए वास्तविक एसएसएन देखता है, ऐप उपयोगकर्ता मास्क्ड वैल्यू देखता है। क्वेरी के समय लागू किया गया. इसके लिए उपयोगी: आंशिक डेटा दृश्यता, ग्राहक सेवा केवल अंतिम 4 अंक देखती है।
61–75 of 122