Question Set

1. The expression of the right hand side of || operators doesn't get evaluated if the left hand side determines the outcome.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.01 pm
    Because, if a is non-zero then b will not be evaluated in the expression (a || b)
Show Similar Question And Answers
QA->Read the statements carefully and answer the question which follow: A cube has six sides each of a different colour.The red side is opposite black.The green side is between red and black.The blue side is adjacent to white .The brown side is adjacent to blue.The red side is face down.The side opposite brown is:....
QA->A cyclist goes 40 km towards East and then turning to right he goes 40 km. Again he turn to his left and goes 20 kn. After this he turns to his left and goes 40 km, then again turns right and goes 10 km. I-low far is he from his starting point ?....
QA->Rahim travelled straight from point E to F at a distance of 5 km. From F he turned left and travelled 6 km and reached point G, there he took a left turn and travelled 5 km to reach point H. He took another left turn and travelled 2 km and reached point I. How far is he from the starting point ?....
QA->Arun started walking towards North after walking 30m, he turned left and walked 40m. He then turned left and walked 30m. He again turned left and walked 50m. How far is he from his original position....
QA->In a row of 16 boys, when Ram moves two places towards left, he becomes 7th from the left end. What was his earlier position from right end of the row ?....
MCQ->The expression of the right hand side of || operators doesn't get evaluated if the left hand side determines the outcome.....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? if (age > 18 || no < 11) a = 25; The condition no < 11 will get evaluated only if age > 18 evaluates to False. The condition no < 11 will get evaluated if age > 18 evaluates to True. The statement a = 25 will get evaluated if any one one of the two conditions is True. || is known as a short circuiting logical operator. The statement a = 25 will get evaluated only if both the conditions are True.....
MCQ->What will be the output of the program? public class If1 { static boolean b; public static void main(String [] args) { short hand = 42; if ( hand < 50 && !b ) / Line 7 / hand++; if ( hand > 50 ); / Line 9 / else if ( hand > 40 ) { hand += 7; hand++; } else --hand; System.out.println(hand); } }....
MCQ->Statement: It has been reported by one of the TV channels that the answer papers of Board examination of one State are evaluated by students studying in the same standard with the help of model answers as instructed by the examiners. Courses of Action: All such examiners should be immediately suspended from their official positions. All such papers evaluated by the students should be immediately confiscated and got evaluated by qualified teachers. The Board should explore possibilities even though they are remote, of getting the answer papers of this examination evaluated by computerised machines.

....
MCQ->In a C expression using assignment operators, relational operators and arithmetic operators, the hierarchy of operations (in the absence of parenthesis) is....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution