Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
Are the following two statement same? 1. a <= 20 ? (b = 30): (c = 30); 2. (a <=20) ? b : (c = 30); ?->(Show Answer!)
Question Set

1. Are the following two statement same? 1. a <= 20 ? (b = 30): (c = 30); 2. (a <=20) ? b : (c = 30);



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
    No, the expressions 1 and 2 are not same. 1. a <= 20 ? (b = 30) : (c = 30); This statement can be rewritten as, if(a <= 20) { b = 30; } else { c = 30; } 2. (a <=20) ? b : (c = 30); This statement can be rewritten as, if(a <= 20) { //Nothing here } else { c = 30; }
Show Similar Question And Answers
QA->A statement followed by two assumptions I and II is given. You have to consider the statement to be true even if it seems to be at variance from commonly known facts. You are to decide which of the given assumptions can definitely be drawn from the given statement. Indicate which one of the four given alternatives is correct ? Statement : If more encouragement is given to Sports, Indians will win more gold medals at the Olympic Games. Assumptions : I. Indians do not win gold medals. II. More enc....
QA->If two bodies of different masses, initially at rest, are acted upon by the same force for the same time, then the both bodies acquire the same?....
QA->Two statements are given followed by two conclusions I and II. You have to consider the two statements to be true even if they seem to be at variance from commonly known facts. You have to decide which one of the given conclusions is definitely drawn from the given statements. Statement : All virtuous persons are happy. No unhappy person is virtuous. Conclusions : I. Happiness is related to virtue II. Unhappy person is not virtuous.....
QA->A, B and C start at the same time in the same direction to run around a circular stadium. A completes a round in 252 seconds, B in 308 seconds and c in 198 seconds, all starting at the same point. After what time will they again at the starting point ?....
QA->Two satellite are moving in the same circular orbit around the earth they must have the same?....
MCQ->Which of the following statements are correct? The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body. The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears. Branching is performed using jump statements which cause an immediate transfer of the program control. A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement. The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false.....
MCQ->Pick out thể one word for - a secret arrangement....
MCQ->This item consists of two statements Statement I and Statement II Statement I: Kuroshio is a warm north flowing ocean current on the west side of North Pacific Ocean Statement II: Presence of a number of volcanoes at the bottom of the sea of Japan is responsible for Kuroshio becoming warm Examine these two statements carefully and select the answer to the item using codes....
MCQ->Which of the following statements are correct? A switch statement can act on numerical as well as Boolean types. A switch statement can act on characters, strings and enumerations types. We cannot declare variables within a case statement if it is not enclosed by { }. The foreach statement is used to iterate through the collection to get the desired information and should be used to change the contents of the collection to avoid unpredictable side effects. All of the expressions of the for statement are not optional.....
MCQ->This question consists of a statement followed by two assumptions numbered I and II. An assumption is something supposed or taken for granted. You have to consider the statement and the following assumptions and decide which of those is/are implicit in the statement Statement : Bank B has requested the Apex Bank of the country to permit them to dilute Governments stake in the bank to raise funds from the equity market to balance the losses from non-performing assets. Assumption : I. The funds generated by diluting the Governments stake will enable the bank to recover from the losses to some extent. Assumption : II. Atleast some equity investors will be ready to purchase the shares of the bank.....
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