Question No : 1
Which of the following will produce a value of 22 if x=22.9:
Question No : 2
If m and n are int type variables, what will be the result of the expression
'm % n' when m = -14 and n = -3?
Question No : 3
Consider the following statements:
int x = 10, y = 15;
x = ((x < y) ? (y + x) : (y - x);
Question No : 4
Which of the following will produce a value of 10 if x = 9.7?
Question No : 5
Which of the following control expressions are valid for an if statement?
Question No : 6
Consider the following class definition.
Class Student extends String
{
}
What happens when we try to compile this class?
Question No : 7
What is wrong in the following class definitions?
abstract class print {
abstract show();
}
class Display extends print {
}