Join Regular Classroom : Visit ClassroomTech

Pseudocode – Set 3 – Accenture – Codewindow.in

Hot Topics

What will be the Output of the following pseudocode?

a=0
b=7
def fun(a,b):
    if ((b<7 or 3>a) and 3<b):
        a=2+a+a
        a=b+2
        a=3+1+a
        return fun(a,b)
    return b
print(fun(a,b))

Ans : 7

What will be the Output of the following pseudocode?

def fun(a, b):
    if ((b^a)<(a+b) and (a&b)<(b-a)):
        b=a+1+a
        a=3+a+b
        a=1+b+b
        return 1+fun(a+1,b+2)+2
    return a-1

print(fun(3,7))

Ans : 18

What will be the Output of the following pseudocode?

p=9
q=4
r=6
r=(r^p)^q
q=(p+q)&p
print(p+q+r)

 Ans : 29

What will be the Output of the following pseudocode?

pp=2
qq=7
rr=7
for rr in range(4,6):
    if(3<qq):
        qq=qq+pp
        qq=7+rr
    qq=(rr+3)^qq
print(pp+qq)

Ans :6

What will be the Output of the following pseudocode?

a=4
b=6
c=4
for c in range(3,7):
    b=(c&9)&b
    b=(2^10)^a
c=(c+c)+b
print(a+b)

Ans: 16

What will be the Output of the following pseudocode?

a=4
b=6
c=4
for c in range(3,7):
    b=c&c
    b=(a^a)&b
print(a+b)

Ans : 4

What will be the Output of the following pseudocode?

def fun(a, b):
    if ((4-a)>(a-b) and a<4):
        a=3+2+a
        a=3+1+a
        a=1+3+b
        return a+fun(a,b)+fun(a,a)
    return a+b

print(fun(0,0))

Ans : 16

What will be the Output of the following pseudocode?

def fun(a, b, c):
    if((c+a)<(b-c)):
        c=(c+8)+b
    if(4>b and (c&b)<b):
        c=(a+7)+b
    else:
        c=a&c
    return a+b+c

print(fun(3,5,10))

Ans : 10

What will be the Output of the following pseudocode?

def fun(p,q,r):
    for r in range(3,7):
        q=r&r
        q=(p^p)&q
    return p+q

print(fun(9,5,8))

Ans : 9

What will be the Output of the following pseudocode?

def fun(p,q,r):
    if((1+p)<q or (r+3)<3):
        q=9+q
        if((q+p+r)<(r+6)):
            p=(p+p)+q
        r=q+p
    return p+q+r
print(fun(1,2,10))

Ans: 13

Nagarro Solved

Automata Fixing

      

Popular Category

Hot Topics

Company Based – Codewindow

Interview Questions
1. TCS Technical Questions
2. CTS Technical Questions
3. Infosys Technical Questions
4. Capgemini Technical Questions
5. IBM Technical Questions
6. Wipro Technical Questions
7. Accenture Technical Questions
8. Deloitte Technical Questions
9. MindTree Technical Questions
10. NTT Data Technical Questions
11. Persistent Technical Questions
12. Hexaware Technical Questions
13. ZOHO Technical Questions
14. HCL Technical Questions
15. Genpact Technical Questions
16. udostres Technical Questions
17. samsung research Technical Questions
18. Media.net Technical Questions
19. Tejas Network Technical Questions
20. Kantar Technical Questions
21. Itron Technical Questions
22. Fractal Analyst Technical Questions
23. Lexmark International Technical Questions
24. Infeneon Technologies Technical Questions
25. Razorpay Technical Questions
26. payu Technical Questions
27. Navi Technical Questions
28. Tata Cliq Technical Questions
29. Grab Technical Questions
30. Schlumberger Technical Questions
31. Latenview Analytics Technical Questions
32. GreayB Technical Questions
33. Tally solution Technical Questions
34. Amagi Technical Questions
35. HFCL Technical Questions
36. Slice Technical Questions
37. Larsen & Turbo Technical Questions
38. Zenser Technical Questions
39. Siemens Technical Questions
40. Exon Movie Technical Questions
41. Gupshup Technical Questions
42. Smart cube Technical Questions
43. Celebal Tech Technical Questions
44. Teg Analytics Technical Questions
45. Commvault Systems Technical Questions
46. Incuture Technical Questions
47. Tiger Technical Questions
48. Bridgei2i Technical Questions
49. code nation Technical Questions
50. DE Show Technical Questions
51. Amazon Technical Questions
52. Flipkart Technical Questions
53. Morgan Stanly Technical Questions
54. duutsche bank Technical Questions
55. textas Technical Questions
56. pwc Technical Questions
57. salesforce Technical Questions
58. optum Technical Questions
59. Nvidia Technical Questions
60. Itc Infotech Technical Questions
61. linkedin Technical Questions
62. Adobe Technical Questions

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories