451 Question 451 EN + हिं GB The output of: auto v=vector{1,2,3,4,5}; auto sum=reduce(v.begin(),v.end()); cout< IN का आउटपुट: ऑटो v=वेक्टर{1,2,3,4,5}; स्वत: योग=कम(v.begin(),v.end()); अदालत A 15 15 B 10 10 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) reduce sums all: 1+2+3+4+5=15. व्याख्या (हिन्दी) सभी योगों को कम करें: 1+2+3+4+5=15. 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i The output of: int a=2,b=5,m=7; int result=1; while(b>0... The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
452 Question 452 EN + हिं GB The output of: vector v={1,2,3,4,5}; auto r=v|views::filter([](int x){return x>3;})| views::transform([](int x){return x*x;}); for(auto x:r)cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; ऑटो r=v|व्यूज़::फ़िल्टर([](int x){रिटर्न x>3;})| दृश्य::परिवर्तन([](int x){रिटर्न x*x;}); for(auto x:r)cout A 16 25 16 25 B 4 5 4 5 C 9 16 25 9 16 25 D 1 4 9 1 4 9 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Filter x>3: {4,5}; transform x*x: {16,25}. व्याख्या (हिन्दी) फ़िल्टर x>3: {4,5}; रूपांतर x*x: {16,25}। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is Eulers totient function phi(6)? What is the time complexity to find if a number is prim... The output of: using namespace std; auto gcd=[](int a,i... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
453 Question 453 EN + हिं GB The output of: using namespace std; auto gcd=[](int a,int b){while(b){a%=b; swap(a,b);} return a;}; cout< IN इसका आउटपुट: नेमस्पेस एसटीडी का उपयोग करना; ऑटो gcd=[](int a,int b){जबकि(b){a%=b; स्वैप(ए,बी);} रिटर्न ए;}; अदालत A 14 14 B 7 7 C 28 28 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) GCD(98)=14. व्याख्या (हिन्दी) जीसीडी(98)=14. 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int n=36; cout The output of: string s="Hello World"; cout The output of: int x=0b10110; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
454 Question 454 EN + हिं GB The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i<=5;i++) for(int j=i;j<=5;j++) dp[j]+=dp[j-i]; cout< IN इसका आउटपुट: int dp[6]={0}; डीपी[0]=1; for(int i=1;i A 5 5 B 7 7 C 10 10 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Coin change ways for 5 with coins {1,2,3,4,5}=7. व्याख्या (हिन्दी) सिक्कों के साथ 5 के लिए सिक्के बदलने के तरीके {1,2,3,4,5}=7। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the time complexity to find if a number is prim... The output of: int n=100; cout The output of: int x=0b10110; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
455 Question 455 EN + हिं GB The output of: string s="Hello World"; cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो वर्ल्ड'; अदालत A 5 5 B 6 6 C 4 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) find(" ")=5; size=11; 11-5-1=5 (length of "World"). व्याख्या (हिन्दी) ढूंढें(" ")=5; आकार=11; 11-5-1=5 ("विश्व" की लंबाई)। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: int n=36; cout The output of: int n=100; cout The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
456 Question 456 EN + हिं GB The output of: vector v={1,2,3,4,5}; int prod=1; for_each(v.begin(),v.end(),[&](int x){prod*=x;}); cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; पूर्णांक उत्पाद=1; for_each(v.begin(),v.end(),[&](int x){prod*=x;}); अदालत A 15 15 B 120 120 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Product: 1*2*3*4*5=120. व्याख्या (हिन्दी) उत्पाद: 1*2*3*4*5=120। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int a=2,b=5,m=7; int result=1; while(b>0... The output of: int n=36; cout The output of: int x=0b10110; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
457 Question 457 EN + हिं GB The output of: int n=100; cout<<(int)log2(n)+1; IN इसका आउटपुट: int n=100; अदालत A 6 6 B 7 7 C 8 8 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) log2(100)≈6.64; (int)=6; 6+1=7. व्याख्या (हिन्दी) लॉग2(100)≈6.64; (int)=6; 6+1=7. 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: string s="Hello World"; cout The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i The output of: vector v={1,2,3,4,5}; auto r=v|views::fi... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
458 Question 458 EN + हिं GB The output of: int x=0b10110; cout<<__builtin_popcount(x); IN इसका आउटपुट: int x=0b10110; अदालत A 3 3 B 4 4 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 10110 has 3 set bits. व्याख्या (हिन्दी) 10110 में 3 सेट बिट हैं। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: auto v=vector{1,2,3,4,5}; auto sum=reduc... The output of: int n=100; cout The output of: int a=2,b=5,m=7; int result=1; while(b>0... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
459 Question 459 EN + हिं Hard GB What is the time complexity to find if a number is prime (trial division)? IN यह पता लगाने में समय की जटिलता क्या है कि कोई संख्या अभाज्य है (परीक्षण प्रभाग)? A O(1) हे(1) B O(sqrt(n)) ओ(वर्ग(एन)) C O(n) पर) D O(log n) ओ(लॉग एन) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Check divisors up to sqrt(n). व्याख्या (हिन्दी) sqrt(n) तक के विभाजक की जाँच करें। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Hard"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: vector v={1,2,3,4,5}; auto r=v|views::fi... The output of: int n=36; cout The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
460 Question 460 EN + हिं Medium GB Sieve of Eratosthenes finds all primes up to n in: IN एराटोस्थनीज़ की छलनी में n तक के सभी अभाज्य गुण पाए जाते हैं: A O(n) पर) B O(n log log n) ओ(एन लॉग लॉग एन) C O(n^2) ओ(एन^2) D O(sqrt(n)) ओ(वर्ग(एन)) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Sieve: O(n log log n) time, O(n) space. व्याख्या (हिन्दी) चलनी: O(n लॉग लॉग n) समय, O(n) स्थान। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello World"; cout The output of: cout The number of digits in integer n is: 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
461 Question 461 EN + हिं GB The output of: int n=36; cout<<(int)sqrt(n)*(int)sqrt(n)==n?"Perfect Square":"Not"; IN का आउटपुट: int n=36; अदालत A Perfect Square उत्तम वर्ग B Not नहीं C Error गलती D 36 36 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sqrt(36)=6; 6*6=36; perfect square. व्याख्या (हिन्दी) sqrt(36)=6; 6*6=36; पूर्ण वर्ग. 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is Eulers totient function phi(6)? The output of: using namespace std; auto gcd=[](int a,i... The output of: auto v=vector{1,2,3,4,5}; auto sum=reduc... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
462 Question 462 EN + हिं Medium GB The number of digits in integer n is: IN पूर्णांक n में अंकों की संख्या है: A n एन B floor(log10(n))+1 मंजिल(लॉग10(एन))+1 C log2(n) लॉग2(एन) D n/10 एन/10 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) digits = floor(log10(n))+1 for n>0. व्याख्या (हिन्दी) अंक = मंजिल(लॉग10(एन))+1 n>0 के लिए। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is Eulers totient function phi(6)? The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... The output of: int n=100; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
463 Question 463 EN + हिं GB The output of: cout<<(int)(log10(12345))+1; IN का आउटपुट: कॉउट A 5 5 B 4 4 C 6 6 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) log10(12345)≈4.09; (int)=4; 4+1=5 digits. व्याख्या (हिन्दी) लॉग10(12345)≈4.09; (int)=4; 4+1=5 अंक. 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int n=100; cout The number of digits in integer n is: The output of: vector v={1,2,3,4,5}; auto r=v|views::fi... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
464 Question 464 EN + हिं Easy GB What is Eulers totient function phi(6)? IN यूलर्स टोटिएंट फंक्शन फाई(6) क्या है? A 2 2 B 3 3 C 4 4 D 6 6 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Numbers coprime to 6 and ≤6: {1,5}; phi(6)=2. व्याख्या (हिन्दी) 6 और ≤6 से सहअभाज्य संख्याएँ: {1,5}; फ़ि(6)=2. 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Easy"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i Sieve of Eratosthenes finds all primes up to n in: The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
465 Question 465 EN + हिं GB The output of: int a=2,b=5,m=7; int result=1; while(b>0){if(b&1)result=result*a%m; a=a*a%m; b>>=1;} cout< IN का आउटपुट: int a=2,b=5,m=7; पूर्णांक परिणाम=1; जबकि(b>0){if(b&1)result=result*a%m; a=a*a%m; b>>=1;} कोउट A 4 4 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Fast modular exponentiation: 2^5 mod 7 = 32 mod 7 = 4. व्याख्या (हिन्दी) तेज़ मॉड्यूलर घातांक: 2^5 मॉड 7 = 32 मॉड 7 = 4। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello World"; cout The output of: int x=0b10110; cout The output of: int n=36; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)