OOP Using C++ — MCQ Practice

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

📚 163 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
163 questions

Question 121

EN + हिं
GB What is the output: int x=5; cout<<+(+x)<<-(-x);
IN आउटपुट क्या है: int x=5; अदालत
55 55
-55 -55
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) +(+5)=5; -(-5)=5. Output: 55.
व्याख्या (हिन्दी) +(+5)=5; -(-5)=5. आउटपुट: 55.
🎯 Exam Perspective
OOP Using C++ ("Operators in C++" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 122

EN + हिं
GB What is the output: int x=5; cout<<(x>0&x<10);
IN आउटपुट क्या है: int x=5; अदालत
1 1
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) (x>0)=1; (x<10)=1; 1&1=1. Output: 1.
व्याख्या (हिन्दी) (x>0)=1; (एक्स
🎯 Exam Perspective
Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में OOP Using C++ ("Operators in C++" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 123

EN + हिं
GB What is the output: int x=5; cout<<(x>0|x>10);
IN आउटपुट क्या है: int x=5; cout10);
1 1
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 1|0=1. Output: 1.
व्याख्या (हिन्दी) 1|0=1. आउटपुट: 1.
🎯 Exam Perspective
अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो OOP Using C++ ("Operators in C++" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 124

EN + हिं
GB What is the output: int x=5; auto op=[](int a,int b,int c){return a?b:c;}; cout<3,x*2,x/2);
IN आउटपुट क्या है: int x=5; ऑटो ऑप=[](int a,int b,int c){return a?b:c;}; अदालत
10 10
2 2
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) x>3=1(true); returns b=x*2=10. Output: 10.
व्याख्या (हिन्दी) x>3=1(सत्य); b=x*2=10 लौटाता है। आउटपुट: 10.
🎯 Exam Perspective
OOP Using C++ ("Operators in C++" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 125

EN + हिं
GB What is the output: int x=5; cout<
IN आउटपुट क्या है: int x=5; अदालत
10 10
8 8
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) max=10. Output: 10.
व्याख्या (हिन्दी) अधिकतम=10. आउटपुट: 10.
🎯 Exam Perspective
यह सवाल OOP Using C++ ("Operators in C++" sub-topic) category का है, और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 126

EN + हिं
GB What is the output: int x=5; cout<
IN आउटपुट क्या है: int x=5; अदालत
4 4
5 5
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) min=4. Output: 4.
व्याख्या (हिन्दी) मिनट=4. आउटपुट: 4.
🎯 Exam Perspective
यह प्रश्न OOP Using C++ ("Operators in C++" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 127

EN + हिं
GB What is the output: int x=5; cout<<(x%10)<<(x/10);
IN आउटपुट क्या है: int x=5; अदालत
50 50
05 05
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 5%10=5; 5/10=0. Output: 50.
व्याख्या (हिन्दी) 5%10=5; 5/10=0. आउटपुट: 50.
🎯 Exam Perspective
OOP Using C++ ("Operators in C++" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 128

EN + हिं
GB What is the output: int x=5; cout<
IN आउटपुट क्या है: int x=5; अदालत
10 10
15 15
Compile error संकलन त्रुटि
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) x*3=15; clamp(15,0,10)=10. Output: 10.
व्याख्या (हिन्दी) x*3=15; क्लैंप(15,0,10)=10. आउटपुट: 10.
🎯 Exam Perspective
SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में OOP Using C++ ("Operators in C++" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 129

EN + हिं
GB What is the output: int x=5; cout<<(x&0)==0;
IN आउटपुट क्या है: int x=5; अदालत
1 1
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) x&0=0; 0==0=1. Output: 1.
व्याख्या (हिन्दी) x&0=0; 0==0=1. आउटपुट: 1.
🎯 Exam Perspective
अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो OOP Using C++ ("Operators in C++" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 130

EN + हिं
GB What is the output: int x=5; cout<<(x|0x80000000u);
IN आउटपुट क्या है: int x=5; अदालत
2147483653 2147483653
-2147483643 -2147483643
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 0x80000000 as int is INT_MIN. 5|INT_MIN= negative. As signed: -2147483643. Output: -2147483643.
व्याख्या (हिन्दी) 0x80000000 int के रूप में INT_MIN है। 5|INT_MIN= negative. As signed: -2147483643. Output: -2147483643.
🎯 Exam Perspective
OOP Using C++ ("Operators in C++" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 131

EN + हिं
GB What is the output: int x=5; cout<<(bool)(x&(x+1));
IN आउटपुट क्या है: int x=5; अदालत
1 1
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 5=101; 6=110; 101&110=100=4!=0=true=1. Output: 1.
व्याख्या (हिन्दी) 5=101; 6=110; 101&110=100=4!=0=सत्य=1. आउटपुट: 1.
🎯 Exam Perspective
यह सवाल OOP Using C++ ("Operators in C++" sub-topic) category का है, और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 132

EN + हिं
GB What is the output: int x=5,y=3; cout<<(x>y)<<(x=y)<<(x<=y)<<(x==y)<<(x!=y);
IN आउटपुट क्या है: int x=5,y=3; अदालत
100111 100111
101001 101001
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 5>3=1,5<3=0,5>=3=1,5<=3=0,5==3=0,5!=3=1. Output: 101001.
व्याख्या (हिन्दी) 5>3=1,5=3=1,5
🎯 Exam Perspective
यह प्रश्न OOP Using C++ ("Operators in C++" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 133

EN + हिं
GB What is the output: int x=5; x=x>3?x+1:x-1; x=x>5?x*2:x+3; cout<
IN आउटपुट क्या है: int x=5; x=x>3?x+1:x-1; x=x>5?x*2:x+3; अदालत
9 9
12 12
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) x=6 (x=5>3:6); x=6>5:12. Output: 12.
व्याख्या (हिन्दी) x=6 (x=5>3:6); x=6>5:12. आउटपुट: 12.
🎯 Exam Perspective
OOP Using C++ ("Operators in C++" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 134

EN + हिं
GB What is the output: int a=10,b=3; cout<<(a/b*b+a%b);
IN आउटपुट क्या है: int a=10,b=3; अदालत
10 10
9 9
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 3*3+1=10=a. Output: 10.
व्याख्या (हिन्दी) 3*3+1=10=ए. आउटपुट: 10.
🎯 Exam Perspective
SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में OOP Using C++ ("Operators in C++" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 135

EN + हिं
GB What is the output: int x=5; cout<<(x<<2)+(x>>2);
IN आउटपुट क्या है: int x=5; अदालत
21 21
25 25
Compile error संकलन त्रुटि
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 20+1=21. Output: 21.
व्याख्या (हिन्दी) 20+1=21. आउटपुट: 21.
🎯 Exam Perspective
अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो OOP Using C++ ("Operators in C++" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।