JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
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
What is the output of the following pseudocode?
Integer pp,qq,rr
Set pp=8,qq=3,rr=14
qq=(pp+qq)+qq
qq=11^rr
qq=qq+rr
qq=(rr^6)&rr
qq=(rr^6)&rr
Print pp+qq+rr
Options
Anonymous Quiz
29%
34
45%
30
15%
40
11%
26
public class Program
{
public static void main(String[] args) {
class Inner{
public String name;//Line 4
public Inner(String s){
name=s;//Line 7
}
}
Object o=new Inner("Hello");//Line 10
Inner inner=(Inner)o;
System.out.println(inner.name);
}
}
What will be the output of the given code?
Which component is responsible for to optimize bytecode to machine code?
Anonymous Quiz
56%
JVM
14%
JDK
8%
JRE
8%
JIT
11%
All of the above
2%
None of the above
A class is a template for object creation. State true or false
Anonymous Quiz
93%
True
7%
False