JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
Which types of exceptions/errors must be caught or specified with a throws clause in the method's declaration?
Anonymous Quiz
32%
Checked Exceptions and unchecked exceptions
29%
Checked Exceptions and Errors
19%
Unchecked Exceptions and Errors
19%
Checked Exceptions only
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)ORa<b)
a=8+c
end if
b = 12 + b
a = (b + b) + b
return a + b + c
End function funn()
Options
Anonymous Quiz
32%
89
34%
100
22%
70
12%
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()
👍1
Options
Anonymous Quiz
21%
10
36%
21
27%
29
15%
38
What will be 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
14%
6
46%
10
30%
21
11%
9
What will be 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
42%
0
31%
-2
7%
9
20%
1
What will be the output of the following pseudocode?

Integer p, q, r
Set p = 4, q = 6, r = 8
q = 3 + q
for(each r from 4 to 5)
p = 6 + p
q = (q + q) + p
End for
Print p + q
Options
Anonymous Quiz
16%
70
47%
102
9%
97
28%
88
What will be the output of the pseudocode?

Integer p, q, r;
Set p = 0, q = 6, r = 7
r = r + r
for(each r from 4 to 7)
q = (10 & 2) + q
End for
Print p + q
Options
Anonymous Quiz
11%
15
50%
10
36%
14
3%
26
What will be the output of the following pseudocode?

Integer p, q, r
Set p = 8, q = 3, r = 14
q = (p + q) + q
q = 11 ^ r
q = q + r
q = (r ^ 6) & r
Print p + q + r
Options
Anonymous Quiz
13%
34
38%
30
35%
40
15%
26
Which will be the output of the following pseudocode?

Integer p, q, r
Set p = 1, q = 2, r = 4
for(each r from 4 to 7){
q = (r + 11) & p
if((q + 6) > (r -q))
continue
Else
Jump out of the loop
End if
q = r + q
End for
Print p + q
Options
Anonymous Quiz
9%
2
41%
1
41%
12
9%
-18
What will be the output of the following pseudocode?

Integer p, q, r
Set p = 4, q = 4, r = 8
q = 8 + r
if((p + q) < (q-p))
if((p ^ q ^ r) < (q + r + p))
r = (11 & 7) ^ p
p = (11 ^ 8) + q
End if
q = (p + q) + r
End if
q = (p + q) + r
Print p + q + r
Options
Anonymous Quiz
19%
44
32%
50
23%
37
26%
40