Capgemini Pseudo Code MCQs Asked on 20th december 2021
Capgemini Pseudo Code MCQs Asked on 20th december 2021 Capgemini Pseudo Code MCQs Asked on 20th december 2021 1)What will be the output of the following pseudocode? Integer p,q,r Set p=9,q=7,r=4 r=q+r if((p^q) q=11+r q=(q+p)+r End if Print p+q+r a) 27 b)13 c) 34 d) 46 Ans: Option a 2)What will be the output of the following pseudocode? integer a,b,c Set a=3,b=7,c=10 for(each c from 2 to 4) a=(b^b)+b if(c>a) continue else jump out of the loop a=(8&12)+a Print a+b a) 17 b) 10 c) 7 d) 22 Ans: Option d 3) What will be the output of the following pseudocode? integer a,b,c Set a=8,b=4,c=9 for(each c from 5 to 7) a=3+b if(5<a) a=(c+3)+b Print a+b a) 18. b) 36. c) 12. d) 20 ...