← કમ્પ્યુટર અને ITComputer & IT
કમ્પ્યુટર અને IT · આ ટોપિકમાં 44 પ્રશ્નોComputer & IT · 44 questions in this topic

ડેટાબેઝ (DBMS): પ્રશ્નો અને જવાબોDatabases (DBMS): questions and answers

GPSC, GSSSB, તલાટી અને ગુજરાત પોલીસ પરીક્ષા માટે 10 ફ્રી પ્રશ્નો, દરેકનો જવાબ અને ગુજરાતી + English સમજૂતી સાથે.10 free practice questions for GPSC, GSSSB, Talati and Gujarat Police exams, each with the answer and a Gujarati + English explanation.

  1. 1. જૂથોને ફિલ્ટર કરવા માટે કયા SQL કલમનો ઉપયોગ થાય છે?Which SQL clause is used to filter groups?

    • AWHEREWHERE
    • BHAVINGHAVING
    • CGROUP BYGROUP BY
    • DORDER BYORDER BY
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) HAVINGHAVING

    HAVING નો ઉપયોગ GROUP BY દ્વારા બનાવેલા જૂથોને ફિલ્ટર કરવા માટે થાય છે. જ્યાં જૂથ બનાવતા પહેલા વ્યક્તિગત પંક્તિઓ ફિલ્ટર કરે છે, જ્યારે જૂથીકરણ પછી જૂથોને ફિલ્ટર કરે છે.HAVING is used to filter groups created by GROUP BY. WHERE filters individual rows before grouping, while HAVING filters groups after grouping.

  2. 2. કયું ઇન્ડેક્સ માળખું સમાનતા શોધ માટે અત્યંત કાર્યક્ષમ છે પરંતુ શ્રેણી પ્રશ્નો માટે નબળું છે?Which index structure is extremely efficient for equality searches but poor for range queries?

    • AB-TreeB-Tree
    • BB+ TreeB+ Tree
    • CHash IndexHash Index
    • DClustered IndexClustered Index
    જવાબ જુઓShow answer

    જવાબ:Answer: (C) Hash IndexHash Index

    હેશ ઇન્ડેક્સ ડેટા રેકોર્ડના સરનામાની ગણતરી કરવા માટે હેશ ફંક્શનનો ઉપયોગ કરે છે. તેઓ ચોક્કસ મેચ (સમાનતા) ક્વેરીઝ (O(1) સમય માટે ખૂબ જ ઝડપી હોય છે, પરંતુ તેઓ ડેટાને સૉર્ટ કરેલા ક્રમમાં જાળવી રાખતા નથી, જેનાથી તેઓ રેન્જ ક્વેરીઝ માટે નકામું બની જાય છે.Hash indexes use a hash function to compute the address of a data record. They are very fast for exact match (equality) queries (O(1) time), but they do not maintain data in a sorted order, making them useless for range queries.

  3. 3. SQL ક્વેરી માં, "ORDER BY" કલમ મૂળભૂત રીતે ચડતા ક્રમમાં સેટ કરેલા પરિણામને સૉર્ટ કરે છે. ઉતરતા ક્રમમાં સૉર્ટ કરવા માટે, તમારે કીવર્ડનો ઉપયોગ કરવો આવશ્યક છે:In a SQL query, the "ORDER BY" clause sorts the result set in ascending order by default. To sort in descending order, you must use the keyword:

    • ADOWNDOWN
    • BDESCDESC
    • CASCASC
    • DREVERSEREVERSE
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) DESCDESC

    પરિણામોને ઉતરતા ક્રમમાં સૉર્ટ કરવા માટે "DESC" કીવર્ડ ORDER BY કલમમાં કૉલમના નામ સાથે જોડવામાં આવે છે.The keyword "DESC" is appended to the column name in the ORDER BY clause to sort the results in descending order.

  4. 4. ડેટાબેઝમાંથી કોષ્ટકને સંપૂર્ણપણે દૂર કરવા માટેનો SQL આદેશ છે:The SQL command to remove a table entirely from the database is:

    • ADELETE TABLEDELETE TABLE
    • BTRUNCATE TABLETRUNCATE TABLE
    • CDROP TABLEDROP TABLE
    • DREMOVE TABLEREMOVE TABLE
    જવાબ જુઓShow answer

    જવાબ:Answer: (C) DROP TABLEDROP TABLE

    DROP TABLE કમાન્ડ ટેબલ સ્ટ્રક્ચર અને તેના ડેટાને ડેટાબેઝમાંથી સંપૂર્ણપણે કાઢી નાખે છે. TRUNCATE ડેટા દૂર કરે છે પરંતુ માળખું રાખે છે; DELETE ચોક્કસ પંક્તિઓ દૂર કરે છે.The DROP TABLE command deletes the table structure and its data completely from the database. TRUNCATE removes data but keeps the structure; DELETE removes specific rows.

  5. 5. કયું સામાન્ય સ્વરૂપ સૂચવે છે કે પ્રાથમિક કી પર બિન-પ્રાઈમ એટ્રિબ્યુટ્સની કોઈ સંક્રમિત અવલંબન હોવી જોઈએ નહીં?Which normal form dictates that there should be no transitive dependency of non-prime attributes on the primary key?

    • A1NF1NF
    • B2NF2NF
    • C3NF3NF
    • DBCNFBCNF
    જવાબ જુઓShow answer

    જવાબ:Answer: (C) 3NF3NF

    ત્રીજા સામાન્ય ફોર્મ (3NF) માટે જરૂરી છે કે સંબંધ 2NF માં હોય અને તમામ બિન-કી વિશેષતાઓ પ્રાથમિક કી પર સખત રીતે આધારિત હોય (કોઈ ટ્રાન્ઝિટિવ ડિપેન્ડન્સી નથી).Third Normal Form (3NF) requires that a relation is in 2NF and that all non-key attributes are strictly dependent on the primary key (no transitive dependencies).

  6. 6. રિલેશનલ બીજગણિતમાં, ઑપરેશન કે જે અમુક કૉલમ પસંદ કરે છે અને અન્યને કાઢી નાખે છે તેને કહેવામાં આવે છે:In relational algebra, the operation that selects certain columns and discards others is called:

    • ASelectionSelection
    • BProjectionProjection
    • CJoinJoin
    • DUnionUnion
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) ProjectionProjection

    રિલેશનલ બીજગણિતમાં પ્રોજેક્શન ઑપરેશન (π દ્વારા સૂચિત) નો ઉપયોગ સંબંધમાંથી ચોક્કસ વિશેષતાઓ (કૉલમ્સ) પસંદ કરવા માટે થાય છે, બાકીનાને છોડીને.The Projection operation (denoted by π) in relational algebra is used to select specific attributes (columns) from a relation, discarding the rest.

  7. 7. સંગ્રહિત પ્રક્રિયા છે:A stored procedure is:

    • AA saved queryA saved query
    • Bડેટાબેઝમાં સંગ્રહિત SQL સ્ટેટમેન્ટનો પૂર્વ સંકલિત સંગ્રહA precompiled collection of SQL statements stored in the database
    • CA type of indexA type of index
    • DA database tableA database table
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) ડેટાબેઝમાં સંગ્રહિત SQL સ્ટેટમેન્ટનો પૂર્વ સંકલિત સંગ્રહA precompiled collection of SQL statements stored in the database

    સંગ્રહિત પ્રક્રિયા એ ડેટાબેઝમાં સંગ્રહિત SQL સ્ટેટમેન્ટ્સ અને વૈકલ્પિક નિયંત્રણ પ્રવાહ તર્કનો પૂર્વસંકલિત સંગ્રહ છે. તેને એપ્લીકેશન દ્વારા બોલાવી શકાય છે, પ્રદર્શન અને સુરક્ષામાં સુધારો કરે છે.A stored procedure is a precompiled collection of SQL statements and optional control flow logic stored in the database. It can be called by applications, improving performance and security.

  8. 8. NoSQL ડેટાબેસેસ આ માટે સૌથી યોગ્ય છે:NoSQL databases are best suited for:

    • AStrict transactional systemsStrict transactional systems
    • Bઅનસ્ટ્રક્ચર્ડ ડેટાના મોટા જથ્થાને હેન્ડલ કરવુંHandling large volumes of unstructured data
    • CSmall datasets onlySmall datasets only
    • DOnly relational dataOnly relational data
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) અનસ્ટ્રક્ચર્ડ ડેટાના મોટા જથ્થાને હેન્ડલ કરવુંHandling large volumes of unstructured data

    NoSQL ડેટાબેસેસ (MongoDB, Cassandra, વગેરે) મોટા પ્રમાણમાં અનસ્ટ્રક્ચર્ડ/સેમી-સ્ટ્રક્ચર્ડ ડેટા, હોરિઝોન્ટલ સ્કેલિંગ અને લવચીક સ્કીમા માટે ડિઝાઇન કરવામાં આવ્યા છે. તેઓ મોટા ડેટા અને રીઅલ-ટાઇમ વેબ એપ્લિકેશન્સમાં ઉપયોગમાં લેવાય છે.NoSQL databases (MongoDB, Cassandra, etc.) are designed for large volumes of unstructured/semi-structured data, horizontal scaling, and flexible schemas. They are used in big data and real-time web applications.

  9. 9. વિતરિત ડેટાબેઝમાં બહુવિધ ગાંઠો પર સંગ્રહિત કરવા માટે કોષ્ટકને ઊભી અથવા આડી રીતે વિભાજીત કરવાની પ્રક્રિયા તરીકે ઓળખાય છે:The process of splitting a table vertically or horizontally to store it across multiple nodes in a distributed database is known as:

    • AReplicationReplication
    • BFragmentation (or Sharding)Fragmentation (or Sharding)
    • CClusteringClustering
    • DNormalizationNormalization
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) Fragmentation (or Sharding)Fragmentation (or Sharding)

    ફ્રેગમેન્ટેશન (NoSQL સંદર્ભમાં શાર્ડિંગ તરીકે પણ ઓળખાય છે) એ ડેટાબેઝ કોષ્ટકને નાના ટુકડાઓ (ટુકડાઓ) માં તોડવાની પ્રક્રિયા છે જેથી તે વિવિધ સાઇટ્સ પર વિતરિત કરી શકાય.Fragmentation (also known as sharding in NoSQL context) is the process of breaking a database table into smaller pieces (fragments) so they can be distributed across different sites.

  10. 10. કયો કન્કરન્સી કંટ્રોલ પ્રોટોકોલ દરેક ટ્રાન્ઝેક્શન માટે અનન્ય ટાઇમસ્ટેમ્પ અસાઇન કરે છે અને શ્રેણીબદ્ધતાની ખાતરી કરવા માટે આ ટાઇમસ્ટેમ્પના આધારે તેમને ઓર્ડર આપે છે?Which concurrency control protocol assigns a unique timestamp to each transaction and orders them based on these timestamps to ensure serializability?

    • ATwo-Phase Locking (2PL)Two-Phase Locking (2PL)
    • BTimestamp Ordering ProtocolTimestamp Ordering Protocol
    • CGraph-based ProtocolGraph-based Protocol
    • DValidation-based ProtocolValidation-based Protocol
    જવાબ જુઓShow answer

    જવાબ:Answer: (B) Timestamp Ordering ProtocolTimestamp Ordering Protocol

    ટાઇમસ્ટેમ્પ ઓર્ડરિંગ પ્રોટોકોલ વ્યવહારો માટે ટાઇમસ્ટેમ્પ તરીકે સિસ્ટમ સમય અથવા લોજિકલ કાઉન્ટરનો ઉપયોગ કરે છે. તે આ ટાઇમસ્ટેમ્પના આધારે ક્રમાંકિતતા ક્રમ નક્કી કરે છે.The Timestamp Ordering Protocol uses system time or a logical counter as a timestamp for transactions. It determines the serializability order based on these timestamps.

ડેટાબેઝ (DBMS) ના વધુ 4 સેટ4 more sets of Databases (DBMS)

પ્રેક્ટિસમાં દરેક પ્રશ્ન પછી તરત જવાબ મળે છે. ફુલ મોક ટેસ્ટમાં અસલી પરીક્ષા જેવો સમય હોય છે.Practice gives the answer right after each question. Full mock tests time you like the real exam.