प्रश्न और उत्तर का अभ्यास करें
8प्र: What is the output after compile and run the following code ? int Output = 10;boolean b = false;if((b == true) && ((Output += 10) == 20)){ System.out.println("We are equal " + Output);}else{ System.out.println("Not equal! " + Output);} 1611 05b5cc6cee4d2b4197774e2b4
5b5cc6cee4d2b4197774e2b4- 1Compilation and output of "We are equal 10"false
- 2Compilation and output of "Not equal! 10"true
- 3Compilation error, attempting to perform binary comparison on logical data typefalse
- 4Compilation and output of "Not equal! 20"false
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 2. "Compilation and output of "Not equal! 10""
व्याख्या :
Answer: B) Compilation and output of "Not equal! 10" Explanation: The output will be "Not equal! 10". Please note that && is logical AND operator. If first operand before (&&) is false then the other operand will not be evaluated. This illustrates that the Output +=10 calculation was never performed because processing stopped after the first operand was evaluated to be false. If you change the value of b1 to true, processing occurs as you would expect and the output would be "We are equal 20".
प्र: इस प्रश्न में एक अनुक्रम दिया है , जिसमें एक पद लुप्त है । दिए गए विकल्पों में से वह सही विकल्प चुनिए जो अनुक्रम को पूरा करें ।
NOA , PQB , RSC ?
1611 06013b04b5f599e547a7eff34
6013b04b5f599e547a7eff34- 1TUDtrue
- 2TVDfalse
- 3TUEfalse
- 4TVEfalse
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 1. "TUD "
प्र:The 1st and the last sentences of the passage are numbered 1 and 6. The rest of the passage is split into four parts P, Q, R and S. These four parts are not given in their proper order. Read the sentence and find out which of the four combinations is correct. The find the correct answer and indicate it in the answer sheet.
1. In the garden were a lot of trees covered with wonderful jewels.
P. At the end of the garden there was a wall.
Q. There was a lamp hanging on the wall.
R. There were red, blue, green yellow and white jewels.
S. They were all very big and they sparkled in the Sun.
6. Aladdin climbed a ladder and took down the lamp.
1611 05f55d26bd094fa460c0612e2
5f55d26bd094fa460c0612e2P. At the end of the garden there was a wall.
Q. There was a lamp hanging on the wall.
R. There were red, blue, green yellow and white jewels.
S. They were all very big and they sparkled in the Sun.
6. Aladdin climbed a ladder and took down the lamp.
- 1QRSPfalse
- 2RSQPfalse
- 3RSPQtrue
- 4PQRSfalse
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 3. "RSPQ"
प्र: कार्मिक मंत्रालय ने किसको विश्व बैंक के कार्यकारी निदेशक के रूप में नियुक्त किया है?
1611 05f647239e318e06cd33cf5d8
5f647239e318e06cd33cf5d8- 1राजेश खुल्लरtrue
- 2जी शिंपिंगfalse
- 3कपिल शर्माfalse
- 4राजेश देवfalse
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 1. "राजेश खुल्लर"
प्र:निर्देश: निम्नलिखित जानकारी का ध्यानपूर्वक अध्ययन करें और दिए गए प्रश्नों के उत्तर दें।
L. M. N, O, P, Q, R और S एक वृत्ताकार टेबल के चारों ओर केंद्र की ओर मुंह करके बैठे हैं लेकिन जरूरी नहीं कि उसी क्रम में हों। P, M के बाएं से तीसरे स्थान पर है। P, O और S दोनों का एक निकटतम पड़ोसी है। O और Q के बीच केवल एक व्यक्ति बैठता है। R, O का तत्काल पड़ोसी है। केवल एक व्यक्ति R और N के बीच बैठता है।
M, बैठने की व्यवस्था के आधार पर एक निश्चित तरीके से R से संबंधित है। उसी तरह P, M से संबंधित है। L से किससे संबंधित है, उसी पैटर्न से संबंधित है?
1611 05dedec7fa407da69c8afebf3
5dedec7fa407da69c8afebf3- 1Nfalse
- 2Qtrue
- 3Ofalse
- 4Pfalse
- 5Sfalse
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 2. "Q "
प्र: शिवाजी स्टेडियम, जो दिल्ली में अवस्थित है, किस खेल से संबंधित है ?
1611 061236ee56de6c114f788bf05
61236ee56de6c114f788bf05- 1क्रिकेटfalse
- 2टेनिसfalse
- 3फुटबॉलfalse
- 4हॉकीtrue
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 4. "हॉकी"
प्र: Direction: In the following question, out of the four alternatives, choose the one which can be substituted for the given sentence.
That which cannot be defeated
1611 05ff9cfedbfde3c2d396d139b
5ff9cfedbfde3c2d396d139b- 1Invincibletrue
- 2Invulnerablefalse
- 3Infalliblefalse
- 4Indicatablefalse
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर : 1. "Invincible "
प्र:एक बार ग्राफ यूनिट उत्पादन और यूनिट बिक्री को विभिन्न प्रकार की मोबाइल कंपनी A, B, C, D E और F को दिखाता है। बार ग्राफ का अध्ययन करें और निम्नलिखित प्रश्नों का उत्तर दें।
किस मोबाइल कंपनी द्वारा उत्पादित यूनिट और बेची गई यूनिट के बीच अधिकतम अंतर है।
1611 05e213d20ac282f4217111c06
5e213d20ac282f4217111c06
- 1A, Bfalse
- 2B, Afalse
- 3C, Dfalse
- 4B, Dtrue
- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice

