पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
डेटा वेयरहाउस के प्रश्नों (query) में bitmap अनुक्रमणिका का मुख्य फ़ायदा क्या है?
What is the primary benefit of using bitmap indices for data warehouse queries?
Aप्रश्न के चलने का समय घटनाReduced query execution time
Bलेन-देन संसाधन के लिए बेहतर सहाराEnhanced support for transaction processing
Cडेटा की बेहतर संगति (consistency)Improved data consistency
Dज़्यादा भंडारण दक्षताHigher storage efficiency
सही उत्तर / Answer: (A)
हल / Solution
डेटा वेयरहाउस के प्रश्नों में अक्सर कई स्तंभों पर एक साथ शर्तें लगती हैं। Bitmap अनुक्रमणिका इन शर्तों को बिट-स्तर की AND-OR क्रियाओं में बदल देती है, जो प्रोसेसर बहुत तेज़ी से निपटा देता है — इसीलिए मुख्य फ़ायदा प्रश्न के चलने का समय घटना है। कम विविधता वाले स्तंभों पर जगह भी बचती है, पर वह साथ मिलने वाला लाभ है; लेन-देन संसाधन में यह ढाँचा उलटा महँगा पड़ता है।
Warehouse queries usually filter on several columns at once. A bitmap index turns those filters into bit level AND and OR operations, which a processor performs extremely quickly, so the main gain is a sharp fall in query execution time. Space savings do occur on low cardinality columns, but that is a side benefit rather than the primary one, and for transaction processing this structure is actually a burden.
प्रश्न 2उत्तर + हल
डेटा वेयरहाउसिंग में bitmap अनुक्रमणिका (bitmap index) का आम उपयोग कौन-सा है?
Which of the following is a common application of bitmap indices in data warehousing?
Aवास्तविक समय का लेन-देन संसाधनReal-time transaction processing
Bडेटा माइनिंग और विश्लेषण (analytics)Data mining and analytics
Cसोशल मीडिया भावना विश्लेषणSocial media sentiment analysis
Dइंटरनेट ऑफ़ थिंग्स (IoT) संवेदक डेटा संसाधनInternet of Things (IoT) sensor data processing
सही उत्तर / Answer: (B)
हल / Solution
Bitmap अनुक्रमणिका (bitmap index) हर संभव मान के लिए बिटों की एक पट्टी रखती है, इसलिए «पुरुष और राजस्थान और पिछला वर्ष» जैसी कई शर्तें सीधे AND-OR करके जोड़ी जा सकती हैं। डेटा वेयरहाउस में यही काम सबसे ज़्यादा पड़ता है — बड़े ढेर पर समूहन और विश्लेषण। लेन-देन वाले सिस्टम में हर update पूरी पट्टी बदलवाता है, सो विकल्प 1 और 4 ठीक नहीं, और भावना विश्लेषण पाठ का काम है।
A bitmap index keeps one bit string for every distinct value, so several conditions can be combined by simple AND and OR operations on those strings. That is exactly the work a data warehouse does: grouping, slicing and analysing huge historical tables. In transaction systems every update rewrites whole bit strings, which rules out options 1 and 4, while sentiment analysis of social media text needs quite different tools.
प्रश्न 3उत्तर + हल
bitmap index के प्रदर्शन को सबसे ज़्यादा कौन सी बात तय करती है?
What is the primary factor affecting the performance of bitmap indices?
Aattribute के अलग-अलग मानों की संख्याNumber of distinct attribute values
Bdata में records की संख्याNumber of records in the dataset
Cdatabase की भंडारण क्षमताStorage capacity of the database system
Dएक साथ काम करने वाले users की संख्याNumber of concurrent users
सही उत्तर / Answer: (A)
हल / Solution
bitmap index में हर अलग मान का एक vector बनता है, इसलिए cardinality ही तय करती है कि कितने vector रखने पड़ेंगे। मान थोड़े हों तो index छोटा रहता है और क्रियाएँ तेज़। मान बहुत हों तो vectors की भरमार हो जाती है और range query में बहुत सारे bitmap जोड़ने पड़ते हैं। records की संख्या हर vector की लम्बाई बढ़ाती है, पर असली फ़र्क़ cardinality डालती है। विकल्प 3 और 4 index की बनावट से जुड़े ही नहीं।
A bitmap index creates one vector for every distinct value, so the cardinality of the column decides how many vectors must be kept. Few values keep the index small and quick, while many values flood it with vectors and force a range query to combine a great number of bitmaps. The record count stretches each vector, yet cardinality is what really shifts the behaviour. Options 3 and 4 do not touch the structure of the index at all.
प्रश्न 4उत्तर + हल
bitmap index में इस्तेमाल होने वाली compression तकनीक का सबसे सही वर्णन कौन सा है?
Which of the following best describes the bitmap compression technique used in bitmap indices?
Abitmap को किसी दबी हुई फ़ाइल के रूप में रखनाStoring bitmaps in a compressed file format
Bफ़ालतू दोहराव हटाकर bitmap का आकार घटानाReducing the size of bitmaps by removing redundant information
Cbitmap को धूसर चित्र में बदल देनाConverting bitmaps into grayscale images
Dbitmap को हानि वाली compression से दबानाEncoding bitmaps using a lossy compression algorithm
सही उत्तर / Answer: (B)
हल / Solution
bitmap में 0 की लम्बी-लम्बी क़तारें पड़ी रहती हैं, ख़ासकर तब जब column में मान बहुत हों। compression इसी दोहराव को छोटा करके लिख देती है, जैसे यह दर्ज करना कि यहाँ दो हज़ार 0 लगातार हैं। इससे जगह घटती है। विकल्प 1 फ़ाइल के स्तर की बात है, index के भीतर की नहीं। विकल्प 3 चित्रों से जुड़ा है, और विकल्प 4 ग़लत है क्योंकि यहाँ एक भी bit खोया नहीं जा सकता।
A bitmap usually contains very long stretches of zeros, especially when the column has many distinct values. Compression records that repetition in a shorter form, for instance by noting that two thousand zeros follow. Space drops sharply and AND or OR can often run on the compressed form. Option 1 talks about the file level rather than the index itself, option 3 belongs to image processing, and option 4 is wrong because not a single bit may be lost here.
प्रश्न 5उत्तर + हल
bitmap indexing में bitmap intersection क्रिया का उद्देश्य क्या है?
In bitmap indexing, what is the purpose of the bitmap intersection operation?
Aकई attribute मानों को एक साथ दिखाने के लिए bitmap जोड़नाCombining bitmaps to represent multiple attribute values
Bकिसी bitmap का पूरक निकालनाFinding the complement of a bitmap
Cbitmap vector को B-tree के node में बदलनाConverting a bitmap vector into a B-tree node
Dकिसी bitmap को छोटे हिस्सों में बाँटनाSplitting a bitmap into smaller segments
सही उत्तर / Answer: (A)
हल / Solution
intersection का मतलब है दो bitmap पर bit-दर-bit AND चलाना। नतीजे में 1 वहीं बचता है जहाँ दोनों में 1 था, यानी वे records जिनमें दोनों शर्तें एक साथ पूरी होती हैं। इसी तरह कई मानों की शर्त एक साथ लगाई जाती है और असली पंक्तियाँ पढ़े बिना जवाब निकल आता है। पूरक निकालना NOT का काम है, टुकड़े करना compression और भंडारण से जुड़ा मामला है, और bitmap को B-tree के node में बदलने जैसा कुछ होता ही नहीं।
Intersection means running a bit by bit AND over two bitmaps. A one survives only where both inputs had a one, marking the records that satisfy both conditions at once. In this way several value conditions are applied together and the answer is reached without reading the table rows. Finding a complement is the job of NOT, splitting into segments belongs to storage and compression, and turning a bitmap into a tree node is not an operation that exists.
प्रश्न 6उत्तर + हल
bitmap indexing इनमें से किस काम में बहुत कुशल रहती है?
Which of the following operations is bitmap indexing highly efficient for?
Aबड़े data को क्रम में जमाने मेंSorting large datasets
Bविरल यानी sparse data सँभालने मेंHandling sparse data
Cपूरे पाठ में खोज करने मेंPerforming full-text searches
Dनए record जोड़ने मेंInserting new records
सही उत्तर / Answer: (B)
हल / Solution
bitmap में ज़्यादातर bits अक्सर 0 ही रहते हैं, यानी पंक्ति विरल होती है। ऐसी पंक्ति को दबाने की तकनीकें, जैसे 0 के लम्बे सिलसिले को एक साथ लिख देना, बहुत असरदार होती हैं। इसीलिए विरल data पर bitmap जगह कम लेता है और क्रियाएँ तेज़ रहती हैं। क्रम में जमाना bitmap का काम नहीं है, पूरे पाठ की खोज के लिए अलग तरह के index बनते हैं, और नया record जुड़ते ही हर bitmap छूना पड़ता है।
Most of the bits in a bitmap are usually zeros, which makes each vector very sparse. Compression schemes that record a long run of zeros in a compact form work extremely well on such data, so a sparse column costs little space and its bitmaps still combine quickly. Sorting is not what a bitmap does, full text searching relies on a different kind of index altogether, and inserting a record forces every bitmap of that column to be touched.
प्रश्न 7उत्तर + हल
bitmap indexing में किसी ख़ास attribute मान की उपस्थिति या अनुपस्थिति दिखाने वाले bitmap को क्या कहते हैं?
In bitmap indexing, what is the term used to describe the bitmap representing the presence or absence of a specific attribute value?
Aattribute mapAttribute map
Bvalue mapValue map
Cbitmap vectorBitmap vector
Dbit stringBit string
सही उत्तर / Answer: (C)
हल / Solution
हर अलग attribute मान के लिए एक पूरी bit-पंक्ति बनती है, जिसमें हर record का एक bit होता है — मान मौजूद हो तो 1, वरना 0। इसी पंक्ति को bitmap vector कहते हैं, और query में इन्हीं पर AND या OR चलते हैं। attribute map और value map प्रचलित नाम नहीं हैं। bit string आम शब्द है, जो bits की किसी भी क़तार पर लग जाता है, इसलिए वह तकनीकी नाम नहीं।
For every distinct value a full row of bits is created, one bit per record, a one where the value is present and a zero where it is not. That row is called a bitmap vector, and queries work by applying AND or OR across such vectors. Attribute map and value map are not established terms. Bit string is a general phrase that fits any sequence of bits, so it is not the specific technical name used here.
प्रश्न 8उत्तर + हल
B-tree index की तुलना में bitmap index की सबसे बड़ी कमी क्या है?
What is the primary drawback of bitmap indices compared to B-tree indices?
Aभंडारण का बोझ ज़्यादा होनाHigher storage overhead
Bquery का धीरे चलनाSlower query performance
Cबराबरी वाली query में मदद न कर पानाInability to answer equality queries
Dindex की एकरूपता बनाए रखने में कठिनाईDifficulty in maintaining index consistency
सही उत्तर / Answer: (A)
हल / Solution
bitmap index में हर अलग मान के लिए एक पूरी bit-पंक्ति रखनी पड़ती है, और उसमें हर record का एक bit होता है। column में मान जितने बढ़ेंगे उतनी ही पंक्तियाँ बनेंगी, इसलिए ज़्यादा विविधता वाले column पर यह जगह B-tree से कहीं आगे निकल जाती है। यही सबसे बड़ी कमी है। विकल्प 2 ग़लत है, क्योंकि पढ़ने वाली query तो तेज़ चलती है। विकल्प 3 उलटा है, बराबरी वाली query तो bitmap की सबसे बड़ी ख़ूबी है।
A bitmap index keeps a whole row of bits for every distinct value, and each row spends one bit per record. The more distinct values the column holds, the more rows exist, so on a high cardinality column the space runs well past a B-tree. That is the main drawback. Option 2 is wrong, since read queries are fast here. Option 3 is the reverse, because equality lookups are the real strength of a bitmap.
प्रश्न 9उत्तर + हल
bitmap indexing इनमें से किस तरह की query के लिए ठीक नहीं है?
Which of the following query types is bitmap indexing not well-suited for?
Arange queryRange queries
Bबराबरी वाली queryEquality queries
Caggregation वाली queryAggregation queries
Djoin वाली queryJoin queries
सही उत्तर / Answer: (A)
हल / Solution
bitmap में हर अलग मान की अपनी पंक्ति होती है, इसलिए बराबरी वाली शर्त पर एक ही bitmap उठा लीजिए। range में ऐसा नहीं होता — दो सीमाओं के बीच जितने मान आते हैं, उन सबके bitmap OR करने पड़ते हैं। मान ज़्यादा हों तो यह काम भारी पड़ जाता है। गिनती वाली query bits गिनकर निकल आती है, और join में भी bitmap का इस्तेमाल होता है, इसलिए बाक़ी तीनों इसके लिए ठीक बैठते हैं।
A bitmap index keeps a separate row of bits for each distinct value, so an equality condition is answered by picking up one bitmap and nothing more. A range condition is different, because every value between the two limits brings its own bitmap and all must be ORed together. With many values in the range that work becomes heavy. Counting queries are served by counting bits, and joins can use bitmaps too, so the other three suit it well.
प्रश्न 10उत्तर + हल
कम विविधता वाले attribute पर bitmap index इस्तेमाल करने का बड़ा फ़ायदा क्या है?
What is a major advantage of using bitmap indices for low-cardinality attributes?
Aभंडारण की ज़रूरत घट जाती हैReduced storage requirements
Brange query तेज़ हो जाती हैFaster processing of range queries
Cdata की शुद्धता बढ़ जाती हैEnhanced data integrity
Dindex की देखभाल का बोझ घट जाता हैDecreased index maintenance overhead
सही उत्तर / Answer: (A)
हल / Solution
किसी attribute में मान थोड़े ही हों, जैसे लिंग या श्रेणी, तो हर मान का एक bitmap रखना पड़ता है, जिसमें हर record का एक bit होता है। मान कम हैं तो bitmap भी कुछ ही बनते हैं, इसलिए B-tree के मुक़ाबले जगह बहुत कम लगती है। यही सबसे बड़ा फ़ायदा है। range query bitmap की ताक़त नहीं, क्योंकि उसमें कई bitmap जोड़ने पड़ते हैं। शुद्धता index से तय नहीं होती, और देखभाल का बोझ तो उलटे बढ़ता है।
When a column takes few distinct values, such as gender or category, one bitmap is kept per value and spends a single bit on every record. Few values mean few bitmaps, so the whole index takes far less room than a B-tree over the same column. That saving is the main gain. Range conditions are not a strength here, since many bitmaps must be combined. Integrity is not an index matter, and maintenance cost actually rises.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
dynamic hashing का सबसे सही वर्णन इनमें से कौन सा है?
Which of the following statements best describes dynamic hashing?
Aयह records की संख्या के हिसाब से hash table का आकार अपने आप बदल देता है।It dynamically resizes the hash table based on the number of records.
Bयह तय आकार की hash table और overflow क्षेत्र से अतिरिक्त records सँभालता है।It uses a fixed-size hash table with overflow areas to accommodate additional records.
Cयह records को उनके hash मान के हिसाब से bucket में रखता है।It assigns records to buckets based on their hash values.
Dयह कुशल query के लिए सिर्फ़ static ढाँचे ही सँभालता है।It only supports static data structures for efficient querying.