Advertisements
Advertisements
What value will Math.sqrt (Math.ceil (15.3)) return?
Concept: undefined > undefined
The absence of which statement leads to fall through situation in switch case statement?
Concept: undefined > undefined
Advertisements
Write a method prototype name check() which takes an integer argument and returns a char:
Concept: undefined > undefined
The number of values that a method can return is ______.
Concept: undefined > undefined
The code obtained after compilation is known as ______.
Concept: undefined > undefined
Consider the following program segment and select the output of the same when n = 10:
switch(n)
{Case 10: System.out.println(0*2);
case 4: System.out.println(n*4); break;
default : Syslem.out.println(n);
}
Concept: undefined > undefined
A method which does not modify the value of variables is termed as ______.
Concept: undefined > undefined
Write the Java expression for (a + b)x.
Concept: undefined > undefined
Evaluate the expression when the value of x = 4;
x* = - - x + x + + + x
Concept: undefined > undefined
Convert the following do...while loop to for loop:
int x = - 10;
do
{x - -;
System.out.print(x);
}while(r >= 1);
Concept: undefined > undefined
Rewrite the following code using the if-else statement:
int m = 400;
double cl). = (m>300) ? (m/10.0) * 2; (m/20.0) - 2;
Concept: undefined > undefined
Give the output of the following program segment:
int n = 4279; int d;
while(n>0)
(d=n%10;
System.out.println(d);
n=n/100;
}
Concept: undefined > undefined
Name the following:
The method which has same name as that of the class name.
Concept: undefined > undefined
The access specifier that gives least accessibility is ______.
Concept: undefined > undefined
What is the output of Math.ceil(5.4) + Math.ceil(4.5)?
Concept: undefined > undefined
The extension of a Java source code file is ______.
Concept: undefined > undefined
Which of the following data type cannot be used with switch case construct?
Concept: undefined > undefined
Which of the following mathematical methods returns only an integer?
Concept: undefined > undefined
Define a class to overload the method perform as follows:
double perform (double r, double h) | to calculate and return the value of Curved surface area of cone CSA π rl |
void perform (int r, int c) | Use NESTED FOR LOOP to generate the following format r = 4, c = 5 output - 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 |
void perform (int m, int n, char ch) | to print the quotient of the division of m and n if ch is Q else print the remainder of the division of m and n if ch is R |
Concept: undefined > undefined
"Java compiled code (byte code) can run on all operating systems" - Name the feature.
Concept: undefined > undefined