466 Question 466 EN + हिं Medium GB Modular arithmetic: (a+b) mod m equals: IN मॉड्यूलर अंकगणित: (ए+बी) मॉड एम बराबर है: A (a mod m + b mod m) (ए मॉड एम + बी मॉड एम) B (a mod m + b mod m) mod m (ए मॉड एम + बी मॉड एम) मॉड एम C (a+b) only (ए+बी) केवल D Not defined परिभाषित नहीं ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Mod distributes: (a+b)%m = ((a%m)+(b%m))%m. व्याख्या (हिन्दी) मॉड वितरित करता है: (a+b)%m = ((a%m)+(b%m))%m। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: cout The output of: double x=1.0/3.0; cout The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
467 Question 467 EN + हिं GB The output of: int a=INT_MIN; cout<<(a<0?"negative":"positive"); IN का आउटपुट: int a=INT_MIN; अदालत A positive सकारात्मक B negative नकारात्मक C zero शून्य D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) INT_MIN is the most negative int; it is negative. व्याख्या (हिन्दी) INT_MIN सबसे नकारात्मक int है; यह नकारात्मक है. 🎯 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: string s="Hello World"; s.replace(5,"C++... What is the output: cout The output of: string s="12345"; int n=stoi(s); cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
468 Question 468 EN + हिं GB What is the output: cout<::max(); IN आउटपुट क्या है: cout A 2147483647 2147483647 B INT_MAX INT_MAX C 2^31-1 2^31-1 D All correct सभी सही ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) All represent the same maximum int value. व्याख्या (हिन्दी) सभी समान अधिकतम पूर्णांक मान का प्रतिनिधित्व करते हैं। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: cout The output of: double x=1.0/3.0; cout The output of: string s="Hello World"; s.replace(5,"C++... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
469 Question 469 EN + हिं GB The output of: double x=1.0/3.0; cout< IN का आउटपुट: डबल x=1.0/3.0; अदालत A 0.333333333333333 0.333333333333333 B 0.333 0.333 C 1.0 1.0 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) High precision shows repeating decimal pattern. व्याख्या (हिन्दी) उच्च परिशुद्धता दोहराए जाने वाले दशमलव पैटर्न को दर्शाती है। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: vector v={"Hello","World"}; string resul... The output of: int n=42; string s=to_string(n); cout The output of: string s="Hello World"; s.replace(5,"C++... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
470 Question 470 EN + हिं Easy GB What is epsilon comparison for floating point? IN फ़्लोटिंग पॉइंट के लिए ईपीएसलॉन तुलना क्या है? A a==b ए==बी B abs(a-b)<epsilon (for small epsilon) पेट(ए-बी) C a-b==0 ए-बी==0 D (float)a==(float)b (फ्लोट)ए==(फ्लोट)बी ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Floating point equality: compare difference to small epsilon. व्याख्या (हिन्दी) फ़्लोटिंग पॉइंट समानता: अंतर की तुलना छोटे ईपीएसलॉन से करें। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Easy"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: vector v={"Hello","World"}; string resul... The output of: string s="12345"; int n=stoi(s); cout What does string::npos equal? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
471 Question 471 EN + हिं GB The output of: cout<<(0.1+0.2==0.3); IN का आउटपुट: कॉउट A 1 1 C Error गलती D True सत्य ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Floating point precision: 0.1+0.2 ≠ 0.3 exactly. व्याख्या (हिन्दी) फ़्लोटिंग पॉइंट परिशुद्धता: 0.1+0.2 ≠ 0.3 बिल्कुल। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: cout Which is the output: double a=0.1+0.2; cout The output of: double x=1.0/3.0; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
472 Question 472 EN + हिं GB Which is the output: double a=0.1+0.2; cout< IN आउटपुट कौन सा है: डबल a=0.1+0.2; अदालत A 0.30000000000000000000 0.30000000000000000 B 0.30000000000000004440 0.300000000000000004440 C 0.30000000000000001110 0.3000000000000001110 D 0.30000000000000000001 0.30000000000001 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) IEEE 754 double precision shows small error. व्याख्या (हिन्दी) आईईईई 754 दोहरी परिशुद्धता छोटी त्रुटि दिखाती है। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: double x=1.0/3.0; cout What is the output: cout The output of: string s="12345"; int n=stoi(s); cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
473 Question 473 EN + हिं GB The output of: int n=5; string s(n,*); cout< IN का आउटपुट: int n=5; स्ट्रिंग एस(एन,*); अदालत A ***** ***** B n एन C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) string(*) creates "****". व्याख्या (हिन्दी) स्ट्रिंग(*) "****" बनाता है। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello"; s.insert(" World"); co... The output of: cout The output of: int a=INT_MIN; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
474 Question 474 EN + हिं GB The output of: string s="Hello"; s.insert(" World"); cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो'; s.insert('विश्व'); अदालत A Hello World हैलो वर्ल्ड B WorldHello विश्वनमस्कार C HelloWorld हैलो वर्ल्ड D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Insert " World" at position 5 (end of "Hello"). व्याख्या (हिन्दी) स्थिति 5 ("हैलो" के अंत में) "वर्ल्ड" डालें। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int n=5; string s(n,*); cout The output of: string s="Hello World"; s.replace(5,"C++... The output of: string s="hello"; for(auto &c:s) c=toupp... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
475 Question 475 EN + हिं GB The output of: string s="Hello World"; s.replace(5,"C++"); cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो वर्ल्ड'; s.replace(5,"C++"); अदालत A Hello C++ नमस्ते सी++ B Hello World हैलो वर्ल्ड C C++ World सी++ विश्व D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Replace 5 chars starting at 6 ("World") with "C++". व्याख्या (हिन्दी) 6 ("विश्व") से शुरू होने वाले 5 वर्णों को "C++" से बदलें। 🎯 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=5; string s(n,*); cout The output of: vector v={"Hello","World"}; string resul... What does string::npos equal? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
476 Question 476 EN + हिं Easy GB What does string::npos equal? IN स्ट्रिंग::npos किसके बराबर है? B -1 as size_t (maximum size_t value) -1 size_t के रूप में (अधिकतम size_t मान) C NULL व्यर्थ D Empty string खाली स्ट्रिंग ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) npos = (size_t)-1 = maximum value of size_t. व्याख्या (हिन्दी) npos = (size_t)-1 = size_t का अधिकतम मान। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Easy"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: string s="hello"; for(auto &c:s) c=toupp... Which is the output: double a=0.1+0.2; cout What is epsilon comparison for floating point? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
477 Question 477 EN + हिं GB The output of: string s="hello"; for(auto &c:s) c=toupper(c); cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो'; for(auto &c:s) c=toupper(c); अदालत A hello नमस्ते B HELLO नमस्ते C Hello नमस्ते D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) toupper converts each char; auto& modifies in place. व्याख्या (हिन्दी) टॉपर प्रत्येक चार को परिवर्तित करता है; स्वत:&स्थान में संशोधित होता है। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello World"; s.replace(5,"C++... Which is the output: double a=0.1+0.2; cout The output of: int a=INT_MIN; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
478 Question 478 EN + हिं GB The output of: string s="12345"; int n=stoi(s); cout< IN इसका आउटपुट: स्ट्रिंग s='12345'; int n=stoi(s); अदालत A 1234512345 1234512345 B 24690 24690 C 12345 12345 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) stoi converts to 12345; 12345*2=24690. व्याख्या (हिन्दी) Stoi 12345 में परिवर्तित हो जाता है; 12345*2=24690. 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello"; s.insert(" World"); co... Modular arithmetic: (a+b) mod m equals: The output of: double x=1.0/3.0; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
479 Question 479 EN + हिं GB The output of: int n=42; string s=to_string(n); cout< IN का आउटपुट: int n=42; स्ट्रिंग s=to_string(n); अदालत A 2 2 B 42 42 C 1 1 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) "42" has 2 characters. व्याख्या (हिन्दी) "42" में 2 अक्षर हैं। 🎯 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=5; string s(n,*); cout The output of: string s="12345"; int n=stoi(s); cout Modular arithmetic: (a+b) mod m equals: 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
480 Question 480 EN + हिं GB The output of: vector v={"Hello","World"}; string result=accumulate(v.begin(),v.end(),string("")); cout< IN इसका आउटपुट: वेक्टर v={"हैलो","वर्ल्ड"}; स्ट्रिंग परिणाम=संचय(v.begin(),v.end(),string("")); अदालत A HelloWorld हैलो वर्ल्ड B Hello World हैलो वर्ल्ड C Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Accumulate with string: "" + "Hello" + "World" = "HelloWorld". व्याख्या (हिन्दी) स्ट्रिंग के साथ जमा करें: "" + "हैलो" + "वर्ल्ड" = "हैलोवर्ल्ड"। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What does string::npos equal? The output of: string s="12345"; int n=stoi(s); cout What is the output: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)