Skip to content
doubtly

What is the output of the following code?

Doubtly 1 min read Updated 23 Sep 2024 Save WhatsApp
Integer p, q, r
Set p=1, q=4, r=6
for (each r from 5 to 9 )
  if(7< p && (4&r)<q)
    Jump out of the loop
  End if
  q=(12+4)^r
End for
Print p+q 
A. 26
B. 33
C. 24
D. 28

More in Unacategorized

See all →