JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
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()
Options
Anonymous Quiz
22%
10
46%
21
24%
29
7%
38
What is the output of the following pseudocode?
Integer p,q,r;
Set p=8,q=3,r=10
for(each r from 5 to 9)
p=q^r
if(9<r)
continue
else
Jump out of the loop
End if
p=7+q
End for
Print p+q;
Options
Anonymous Quiz
23%
6
46%
10
23%
21
8%
9
What is the output of the following pseudocode?
Integer j,m
Set m=1
Integer a[4]={1,1,0,2}
a[0]=a[0]-a[1]+a[2]
a[1]=a[1]-a[2]
a[2]=a[2]-a[3]
a[3]=a[0]
m=a[3]
Print m;
Options
Anonymous Quiz
47%
0
24%
-2
17%
9
12%
1