1. Which of the following operations will give the result 2 in C?





Write Comment

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

Comments

Tags
Show Similar Question And Answers
QA->Whichbank is to shut its banking operations in India having given up on efforts tofind a buyer as the planned to reduce its international operations to 13countries?....
QA->If the average of the first 6 result is 59 and that of the last six is 62, find the sixth result?....
QA->Who said these words “Give us good mother and I shall give you good nation”?....
QA->' GIVE ME BLOOD, I WILL GIVE YOU FREEDOM ' WHO SAID THESE WORDS....
QA->" GIVE ME BLOOD, I WILL GIVE YOU FREEDOM " WHO SAID THESE WORDS....
MCQ->What will be the output of the program? public class WrapTest { public static void main(String [] args) { int result = 0; short s = 42; Long x = new Long("42"); Long y = new Long(42); Short z = new Short("42"); Short x2 = new Short(s); Integer y2 = new Integer("42"); Integer z2 = new Integer(42); if (x == y) / Line 13 / result = 1; if (x.equals(y) ) / Line 15 / result = result + 10; if (x.equals(z) ) / Line 17 / result = result + 100; if (x.equals(x2) ) / Line 19 / result = result + 1000; if (x.equals(z2) ) / Line 21 / result = result + 10000; System.out.println("result = " + result); } }....
MCQ->What will be the output of the program? public class BoolTest { public static void main(String [] args) { int result = 0; Boolean b1 = new Boolean("TRUE"); Boolean b2 = new Boolean("true"); Boolean b3 = new Boolean("tRuE"); Boolean b4 = new Boolean("false"); if (b1 == b2) / Line 10 / result = 1; if (b1.equals(b2) ) / Line 12 / result = result + 10; if (b2 == b4) / Line 14 / result = result + 100; if (b2.equals(b4) ) / Line 16 / result = result + 1000; if (b2.equals(b3) ) / Line 18 / result = result + 10000; System.out.println("result = " + result); } }....
MCQ->What will be the output of the program? public class ObjComp { public static void main(String [] args ) { int result = 0; ObjComp oc = new ObjComp(); Object o = oc; if (o == oc) result = 1; if (o != oc) result = result + 10; if (o.equals(oc) ) result = result + 100; if (oc.equals(o) ) result = result + 1000; System.out.println("result = " + result); } }....
MCQ-> Study the following information to answer the given questions. A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement. ‘’(All the numbers are two digits numbers and are arranged as per some logic based on the value of the number)’’. Input : win 56 32 93 bat for 46 him 28 11 give chance. Step I : 93 56 32 bat for 46 him 28 11 give chance win Step II : 11 93 56 32 bat for 46 28 give chance win him Step III: 56 11 93 32 bat for 46 28 chance win him give Step IV: 28 56 11 93 32 bat 46 chance win him give for Step V: 46 28 56 11 93 32 bat win him give for chance Step V: 32 46 28 56 11 93 win him give for chance bat and Step VI is last step of the arrangement of the above input as the intended arrangement is obtained. As per the rules followed in the above steps, find out in each of the following questions the appropriate steps for the given input, Input for the questions: Input : ‘’fun 89 at the 28 16 base camp 35 53 here 68’’ (All the numbers given in the arrangement are two digit numbers.)Which of the following would be the Step II?
 ....
MCQ-> Study the following information to answer the given questions: A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement.(All the numbers are two-digit numbers and are arranged as per some logic based on the value of the numbers.) Input:win 56 32 93 bat for 46 him 28 11 give chance Step I:93 56 32 bat for 46 him 28 11 give chance win StepII:11 93 56 32 bat for 46 28 give chance win him Step III:56 11 93 32 bat for 46 28 chance win him give Step IV:28 56 11 93 32 bat win him give for chance bat Step V:46 28 56 11 93 32 bat win him give for chance Step VI:32 46 28 56 11 93 win him give for chance bat Step VI is the last step of the arrangement the above input. Input for the question: Input:fun 89 at the 28 16 base camp 35 53 here 68 (All the number given in the arrangement are two digit numbers.)Which of the following would be step II ?
 ....
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
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions