JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
Which of the following is not a part of Data definition language
Anonymous Quiz
31%
RENAME
24%
REVOKE
24%
GRANT
22%
UPDATE
Which statement are true?
A)The expression (1+2+"3") evaluates to the String "33".
B)The expression ("1"+2+3) evaluates to the String "15".
C)The expression (4+1.0f) evaluates to the float value 5.0f.
D)The expression (10/9) evaluates to the int value 1.
E)The expression ('a'+1) evaluates to the char value 'b'.
interface A{
public void aaa();
}
class AA implements A{
public void aaa(){
System.out.println("Hi");
}
}
class D extends AA{
public class Exa{
public void aaa(){
System.out.println("Wow");
}
public void main (String[] args) {
A a=new D();
a.aaa();
}
}
public void aaa(){
System.out.println("Bye");
}
}
public class Program
{
Integer funn(Integer a,Integer b){
if(b>a){
return b+funn(a+1,b-1);
}
else{
return a;
}
}
public static void main(String[] args) {
Program p=new Program();
System.out.println(p.funn(2,5));
}
}
Options
Anonymous Quiz
14%
16
45%
27
24%
6
18%
13
public class Program
{
static String getString(long... ls){
return "ONE";
}
static String getString(Long... ls){
return "TWO";
}
static String getString(Integer i1,Integer i2){
return "THREE";
}
static String getString(Long l1,Long l2){
return "FOUR";
}
static String getString(Number n1,Number n2){
return "FIVE";
}
public static void main(String[] args) {
System.out.println(getString((byte)5,(byte)10)+","+getString(5,10));
System.out.println(getString(5L,10)+","+getString(5L,10L));
}
}
What will be the output of the following pseudocode for a=6,b=6,c=4?

Integer funn(Integer a,Integer b,Integer c){
c=b+c;
c=7+c;
if((5-3)<(10-b)||a<b)
a=8+c;
b=12+b;
a=(b+b)+b;
return a+b+c;
}
Options
Anonymous Quiz
48%
89
21%
100
16%
70
14%
92
What will be the output of the following pseudocode for a=8,b=6,c=9?

Integer funn(Integer a,Integer b,Integer c){
for(each c from 3 to 6){
b=5+a;
if((c+a)>(a-c))
continue
Else
a=7+a;
a=(a&b)+b;
End if
End for
return a+b;
End function funn()