Pseudo Code
Pseudo Code
1. Integer a,b,c
2. Set a=4, b=6, c=9
3. If(a>b && (c^7)<7)
4. b=5+a
5. a=(3+9)+a
6. Else
7. B=(8^3)+b
8. End if
9. c=b+b
10. Print a+b+c
Options:
A. 57
B. 55
C. 50
D. 61
7. What will be the output for the following pseudocode for a=5, b=7, c=9?
1. Integer funn(Integer a, Integer b, Integer c)
2. If((a+b)<c)
3. a=a+c
4. b=(c+a)+c
5. c=(9+9)+a
6. End if
7. Return a+b+c
Options:
A. 25
B. 21
C. 16
D. 26
8. What will be the output of the following pseudocode?
1. Integer a,b,c
2. Set a=5, b=4, c=4
3. If((c+a+b)<(b+c))
4. a=(b+a)+c
5. Else
6. b=(c+c)+b
7. End if
8. If((2+a)<(b+2))
9. b=(1+10)+c
10. End if
11. Print a+b+c
Options:
A. 25
B. 34
C. 24
D. 22
10. What will be the output of the following pseudocode for a=4, b=2, c=8?
1. Integer funn(Integer a, Integer b, Integer c)
2. b=b+a
3. if((b+c)<(a+b))
4. c=c+a
5. a=(10+12)&c
6. c=(5+11)+c
7. End if
8. Return a+b+c
Options:
A. 19
B. 12
C. 32
D. 18
14. What will be the output of the following pseudocode for a=9, b=8, c=4?
1. Integer funn(Integer a, Integer b, Integer c)
2. b=(b+8)+b
3. c=(9+2)+b
4. b=(b+b)+c
5. if(b>c && (9+4)<a)
6. c=b+c
7. End if
8. a=(5+7)+a
9. Return a+b+c
Options:
A. 135
B. 139
C. 142
D. 148
15. What will be the output of the following pseudocode for a=7, b=3, c=10?
1. Integer funn(Integer a, Integer b, Integer c)
2. a=(a+b)+c
3. c=a+a
4. b=(c+4)+c
5. c=(c+4)+c
6. c=(a&8)^b
7. c=(c+6)+c
8. return a+b+c
Options:
A. 279
B. 285
C. 278
D. 274
18. What will be the output of the following pseudocode for a=7, b=8, c=9?
1. Integer funn (Integer a, Integer b, Integer c)
2. a=(b+12)&b
3. If((c+a)<(a-c))
4. c=a&c
5. b=10+b
6. c=(c+6)
7. End if
8. Return a+b+c
Options:
A. 23
B. 14
C. 17
D. 26