1(c)2017Short answerEasy2 marksState the number of bytes occupied by char and int data types.Add to worksheetShow answer
1(d)2017DifferenceEasy2 marksWrite one difference between / and % operator.Add to worksheetShow answer
2(e)2017OutputModerate2 marksWrite the output: char ch = 'F'; int m = ch; m = m + 5; System.out.println(m + " " + ch);Add to worksheetShow answer
3(b)2017OutputHard2 marksWhat is the value of x1 if x = 5? x1 = ++x - x++ + --x;Add to worksheetShow answer
2(b)2016Short answerModerate2 marksWhat are the types of casting shown by the following examples? (i) char c = (char)120; (ii) int x = 't';Add to worksheetShow answer
3(g)2016DifferenceModerate2 marksWrite one difference between primitive data types and composite data types.Add to worksheetShow answer
3(i)2016OutputHard2 marksGive the output of the following expression: a += a++ + ++a + --a + a--; when a = 7Add to worksheetShow answer