Professional Documents
Culture Documents
Flowchart Apptitude With Solution
Flowchart Apptitude With Solution
Study the flow chart give below and the questions that follow
Question: At the end of the flow chart the number placed in which of the following boxes will remain
unchanged
3. Study the flow chart give below and the questions that follow.
The purpose of the following chart is to put a zero in each of the boxes 2,4 and 6. In order to
accomplish exactly this - no more and no less - Which number must be in box 3?
A. 0 B. 6 C. 10 D. 3 E. 8
Answer: 3
4. Study the flow chart give below and the questions that follow.
What number is now in Box 8?
What number is now in box 11?
A. 11, 5 B. 11, 2 C. 8, 6 D. 11, 9
Answer: 11, 9
5. Study the flow chart give below and the questions that follow.
The purpose of the following chart is to double the number in each of the boxes 2, 4, 6, 8 and 10.
In order to accomplish exactly this - no more and no less - What is the smallest number Which may
be in box 1 ?
A. 19 B. 15 C. 9 D. 11 Answer: 19
6. Study the flow chart give below and the questions that follow.
A. 27 B. 23 C. 12 D. 34
Answer: 27
Explanation:
Instruction 1 : 0 [Box 3] + 1 [Box 11] = 1 [Box 11]
Instruction 2 : 1 [Box 1] + 1 [Box 11] = 2 [Box 5]
Instruction 3 : 3 [Box 4] * 3 [Box 4] = 9 [Box 4]
Instruction 4 : IS 2 [Box 5] = 6 [Box 10] ? NO
Instruction 5 : 9 [Box 4] - 6 = 3 [Box 4]
Instruction 6 : 2 [Box 5] + 2 [Box 2] = 4 [Box 5]
Instruction 3 : 3 [Box 4] * 3 [Box 4] = 9 [Box 4]
Instruction 4 : IS 4 [Box 5] = 6 [Box 10] ? NO
Instruction 5 : 9 [Box 4] - 6 = 3 [Box 4]
Instruction 6 : 4 [Box 5] + 2 [Box 2] = 6 [Box 5]
Instruction 3 : 3 [Box 4] * 3 [Box 4] = 9 {box 4]
Instruction 4 : IS 6 [Box 5] = 6 [Box 10] ? YES
Instruction 7 : 24 [Box 7] - 6 [Box 5] = 18 [Box 8]
Instruction 8 : 9 [Box 4] + 18 [Box 8] = 27 [Box 6]
ANSWER Box 6 = 27
7. Study the flow chart give below and the questions that follow.
A. 19 B. 15 C. 11 D. 14 Answer: 14
Explanation:
Instruction 1 : 5 [Box 4] + 2 [Box 10] = 3 [Box 1]
Instruction 2 : 3 [Box 1] + 3 [Box 6] = 6 [Box 1]
Instruction 3 : IS 6 [Box 1] evenly divisible by 4? = NO
Instruction 4 : 6 [Box No.] + 3[Box 6] = 9 [Box No.]
Instruction 5 : IS 13 [Box 2] > 9[Box No.] ? = YES
Instruction 6 : 7[Box 9] - 1 = 6 [Box 9]
Instruction 2 : 6 [Box 1] + 6 [Box 9] = 12 [Box 1]
Instruction 3 : IS 12 [Box 1] evenly divisible by 4? = NO
Instruction 4 : 9[Box No.] + 3[Box 6] = 12[Box No.]
Instruction 5 : IS 13 [Box 2] > 12 [Box No.] ? = YES
Instruction 6 : 6 [Box 9] -1 = 5 [Box 9]
Instruction 2 : 12 [Box 1] + 2 {Box 12] =14[Box 1]
Instruction 3 : IS 14 [Box 1] evenly divisible by 4? = NO
Instruction 4 : 12 [Box No.] + 3 [Box 6] = 15 [Box No.]
Instruction 5 : IS 13 [Box 2] > 15 [Box No.] ? = NO
ANSWER Box 1 = 14
8. Study the flow chart give below and the questions that follow.
A. 4 B. 7 C. 6 D. 8 Answer: 7
Explanation:
If Box 4 = 7
Instruction 1 : 5[ Box 1] - 5 [Box 1] = 0 [Box 3]
Instruction 2 : 0 [Box 3] + 3 {Box 9] = 3 [Box 3]
Instruction 3 : IS 7[Box 4] > 9[Box No.] ? = NO
Instruction 4 : 9 [Box No.] - 1 = 8 [Box No.]
Instruction 2 : 3 [Box 3] + 7 [Box 8] = 10 [Box 3]
Instruction 3 : IS 7[Box 4] > 8[Box No.] ? = NO
Instruction 4 : 8 [Box No.] - 1 = 7 [Box No.]
Instruction 2 : 10 [Box 3] + 6 [Box 7] = 16 [Box 3]
Instruction 3 : IS 7[Box 4] > 7[Box No.] ? = NO
Instruction 4 : 7 [Box No.] - 1 = 6 [Box No.]
Instruction 2 : 16 [Box 3] + 8 [Box 6] = 24 [Box 3]
Instruction 3 : IS 7[Box 4] > 6[Box No.] ? = YES
ANSWER Box 4 = 7
9. Study the flow chart give below and the questions that follow.
A. 43 B. 12 C. 10 D. 11 Answer: 10
Explanation:
Assume Box 2 has number 2, Box 3 has number 3 and so on.
And Box 1 has number 10
Instruction 1 : 2 [Box 2] + 2[Box 2] = 4[Box 2]
Instruction 2 : 2 [Box No.] + 2 = 4 [Box No.]
Instruction 3 : IS 10 [Box 1] < 4 [Box No.] ? NO
Instruction 1 : 4 [Box 4] + 4{Box 4] = 8[Box 4]
Instruction 2 : 4 [Box No.] + 2 = 6 [Box No.]
Instruction 3 : IS 10 [Box 1] < 6 [Box No.] ? NO
Instruction 1 : 6 [Box 6] + 6 [Box 2] = 12[Box 6]
Instruction 2 : 6 [Box No.] + 2 = 8 [Box No.]
Instruction 3 : IS 10 [Box 1] < 8 [Box No.] ? NO
Instruction 1 : 8 [Box 8] + 8 [Box 8] = 16[Box 8]
Instruction 2 : 8 [Box No.] + 2 = 10 [Box No.]
Instruction 3 : IS 10 [Box 1] < 10 [Box No.] ? NO
Instruction 1 : 10 [Box 10] + 10 [Box 10] = 20[Box 10]
Instruction 2 : 10 [Box No.] + 2 = 12 [Box No.]
Instruction 3 : IS 10 [Box 1] < 12 [Box No.] ? YES
ANSWER is 10
10. Study the flow chart give below and the questions that follow.
A. 4 B. 2 C. 6 D. 9 E. 1 Answer: 4
Explanation:
Assume Box 2 has number 2, Box 3 has number 3 and so on.
And Box 10 has number 4
Instruction 1 : 5 [Box 5] - 5 [Box 5] = 0 [Box 5]
Instruction 2 : 1 [Box 1] + 0 [Box 5] = 1[Box 5]
Instruction 3 : IS 1 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 1 [Box 5] + 9 [Box 9] = 10 [Box 5]
Instruction 5 : 1 [Box No.] + 1 = 2[Box No.]
Instruction 6 : 9 [Box No.] - 1 = 8 [ Box No.]
Instruction 2 : 2 [Box 2] + 10 [Box 5] = 12 [Box 5]
Instruction 3 : IS 2 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 12 [Box 5] + 8 [Box 8] = 20 [Box 5]
Instruction 5 : 2 [Box No.] + 1 = 3 [Box No.]
Instruction 6 : 8 [Box No.] - 1 = 7 {box No.]
Instruction 2 : 3 [Box No.] + 20 [Box 5] = 23 [Box 5]
Instruction 3 : IS 3 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 23 [Box 5] + 7 [Box 7] = 30 [Box 5]
Instruction 5 : 3 [Box No.] + 1 = 4 [Box No.]
Instruction 6 : 7 [Box No.] - 1 = 6 [Box No.]
Instruction 2 : 4 [Box 4] + 30 [Box 5] = 34 [Box 5]
Instruction 3 : IS 4 [Box No.] < 4 [Box 10] ? NO
ANSWER Box 10 = 4
11. Study the flow chart give below and the Answer the questions that follow.
What number is now in box 5?
A. 55 B. 48 C. 44 D. 34 Answer: 48
12. Study the flow chart give below and the Answer the questions that follow.
What number is now in box 1?
A. 9 B. 11 C. 5 D. 10 Answer: 10
13. Study the flow chart give below and the Answer the questions that follow.
What number is now in box 11?
A. 55 B. 54 C. 23 D. 58 Answer: 55
Explanation:
Instruction 1 : 1[Box 2] + 0[Box 12] = 1[Box 4]
Instruction 2 : 2[Box 7] * 2[Box 7] = 4[Box 7]
Instruction 3 : Is 1[Box 4] = 5[Box 9] ? NO
Instruction 4 : 1[Box 4 + 2[Box 1] = 3[Box 4]
Instruction 5 : 4[Box 7] - 1[Box 2] = 3[Box 7]
Instruction 2 : 3[Box 7] * 3[Box 7] = 9[Box 7]
Instruction 3 : Is 3[Box 4] = 5[Box 9] ? NO
Instruction 4 : 3[Box 4] + 2[Box 1] = 5[Box 4]
Instruction 5 : 9[Box 7] - 1[Box 2] = 8[Box 7]
Instruction 2 : 8[Box 7] * 8[Box 7] = 64[Box 7]
Instruction 3 : Is 1[Box 4] = 5[Box 9] ? YES
Instruction 6 : 4[Box 3] + 5[Box 9] = 9[Box 10]
Instruction 7 : 64[Box 7] - 9[Box 10] = 55[Box 11]
ANSWER BOX 11 = 55.
14. Study the flow chart give below and the Answer the questions that follow.
What number is in box 12?
A. 34 B. 12 C. 19 D. 20 Answer: 19
Explanation:
Instruction 1 : 5[Box 7] - 5[Box 3] = 0[Box 12]
Instruction 2 : 0[Box 12] + 6[Box 13] = 6[Box 12]
Instruction 3 : Is 6[Box 12] / 5 ? NO
Instruction 4 : 13[Box No.] - 2[Box 4] = 11[Box No.]
Instruction 5 : IS 8[Box 2] < 11[Box No.] ? YES
Instruction 6 : 7[Box 9] - 1 = 6[Box 9]
Instruction 2 : 6[Box 12] + 4[Box 11] = 10[Box 12]
Instruction 3 : Is 10[Box 12] / 5 ? YES
Instruction 2 : 10[Box 12] + 4[Box 11] = 14[Box 12]
Instruction 3 : IS 14[Box 12] / 5 ? NO
Instruction 4 : 11[Box No.] - 2[Box 4] = 9[Box No.]
Instruction 5 : 8[Box 2] < 9[Box No.] ? YES
Instruction 6 : 6[Box 9] - 1 = 5[Box 9]
Instruction 2 : 14[Box 12] + 5[Box 9] = 9[Box 12]
Instruction 3 : IS 19[Box 12] / 5 ? NO
Instruction 4 : 9[Box No.] - 2[Box 4] = 7[Box No.]
Instruction 5 : 8[Box 2] < 7[Box No.] ? NO
ANSWER Box 12 = 19.
15. Study the flow chart give below and the Answer the questions that follow.
What number is now in Box 3 & Box 10 ?
A. 11, 3 B. 9, 4 C. 7,5 D. None of these Answer: None of these
16. The purpose of the following flow-chart is to put a zero in each of the boxes: 4, 5 and 6.
In order to accomplish exactly this -- no more and no less -- what number must be in box 11?
A. 8 B. 3 C. 7 D. 9 Answer: 7
Explanation:
Assume Box 11 = 7
Instruction 1 : 7[Box 1] - 7[Box 1] = 0[Box 4]
Instruction 2 : 4[Box No.] + 1 = 5{Box No.]
Instruction 3 : IS 5[Box No.] = 7[Box 11] ? NO
Instruction 1 : 7[Box 1] - 7[Box 1] = 0[Box 5]
Instruction 2 : 5[Box No.] + 1 = 6[Box No.]
Instruction 3 : IS 6[Box No.] = 7[Box 11] ? NO
Instruction 1 : 7[Box 1] - 7[Box 1] = 0[Box 6]
Instruction 2 : 6[Box No.] + 1 = 7[Box No.]
Instruction 3 : IS 7[Box No.] = 7[Box 11] ? YES
ANSWER
Box 11 = 7
17. The purpose of the following flow-chart is to add up the numbers in boxes 6, 7, 8 and 9, and
put the total in box 1.
In order to accomplish exactly this -- no more and no less -- what number must be in box 3?
A. 3 B. 9 C. 7 D. 8 Answer: 9
Explanation:
Assume Box 3 = 9
Instruction 1 : 3[Box 1] - 3[Box 1] = 0[Box 1]
Instruction 2 : 0[Box 1] + 4[Box 6] = 4[Box 1]
Instruction 3 : IS 9[Box 3] > 6 ? YES
Instruction 4 : 6[Box No.] + 1 = 7[Box No.]
Instruction 2 : 4[Box 1] + 3[Box 7] = 7[Box 1]
Instruction 3 : 9[Box 3] > 7[Box No.] ? YES
Instruction 4 : 7[Box no.] + 1 = 8[Box No.]
Instruction 2 : 7[Box 1] + 12[Box 8] = 19[Box 1]
Instruction 3 : IS 9[Box 3] > 8[Box No.] ? YES
Instruction 4 : 8[Box No.] + 1 = 9{Box No.]
Instruction 2 : 19[Box 1] + 10[Box 9] = 29[Box 1]
Instruction 3 : 9[Box 3] > 9[Box No.] ? NO
ANSWER
Box 3 = 9
18. The purpose of the following flow-chart is to double the number in each of the boxes: 13, 10, 7
and 4.
In order to accomplish exactly this -- no more and no less -- what is the smallest number which may
be in box 14?
A. 8 B. 5 C. 4 D. 1 Answer: 4
Explanation:
Assume Box 14 = 4
Instruction 1 : 13[Box 13] + 13[Box 13] = 26[13]
Instruction 2 : 13[Box No.] -3 = 10[Box No.]
Instruction 3 : IS 4[Box 14] > 10[Box No.] ? NO
Instruction 1 : 10[Box 10] + 10[Box 10] = 20 [Box 10]
Instruction 2 : 10[Box No.] - 3 = 7[Box No.]
Instruction 3 : IS 4[Box 14] > 7[Box No.] ? NO
Instruction 1 : 7[Box 7] + 7[Box 7] = 14[Box 7]
Instruction 2 : 7{Box No.] - 3 = 4[Box No.]
Instruction 3 : IS 4[Box 14] > 4[Box No.] ? YES
ANSWER
Box 14 = 4
19. The purpose of the following flow-chart is to add up the numbers in boxes 3, 4, 5, 6, 9,
10 and 11, and to put the total in box 7.
In order to accomplish exactly this -- no more and no less -- what number must be in
Explanation:
Assume Box 2 = 6
Instruction 1 : Put 0(zero) in Box 7 = 0[Box 7]
Instruction 2 : 7[Box 7] + 3[Box 3] = 10[Box 7]
Instruction 3 : IS 3[Box No.] < 6[Box 2] ? YES
Instruction 4 : 11[Box 11] +10[Box 7] = 21[Box 7]
Instruction 5 : 3[Box No.] + 1 = 4[Box No.]
Instruction 6 : 11[Box No.] - 1 = 10[Box No.]
Instruction 2 : 21[Box 7] + 4[Box 4] = 25[Box 7]
Instruction 3 : IS 4[Box No.] < 6[Box 2] ? YES
Instruction 4 : 10[Box 10] + 25[Box 7] = 35[Box 7]
Instruction 5 : 4[Box No.] + 1 = 5[Box No.]
Instruction 6 : 10[Box No.] - 1 = 9[Box No.]
Instruction 2 : 35[Box 7] + 5[Box 5] = 40[Box 7]
Instruction 3 : IS 5[Box No.] < 6[Box 2] ? NO
Instruction 4 : 9[Box 9] + 40[Box 7] = 49[Box 7]
Instruction 5 : 5[Box No.] + 1 = 6[Box No.]
Instruction 6 : 9[Box No.] - 1 = 8[Box No.]
Instruction 2 : 49[Box 7] + 6[Box 6] = 55[Box 7]
Instruction 3 : IS 6[Box No.] < 6[Box 2] ? NO
ANSWER
BOX 2 = 6
20. In the following problems, you are told something about the result, and you must determine
what the contents of the boxes must have been, in order to obtain that result.
Explanation:
Given Box 4 = A
Also, (1) means number in Box 1;
For A,
IS (3) > (1) ? NO --(1)
IS (2) > (1) ? NO --(2)
IS (3) > (2) ? NO --(3)
ANSWER
The largest number is in BOX 1,
Because number in BOX 1 is not smaller than number in Box 2 and 3(refer (1) and (2)),
And, The smallest number is in BOX 3,
Because number in BOX 3 is not greater than number in Box 1 and Box 2(refer (1) and (3)).
21. In the following problems, you are told something about the result, and you must determine
what the contents of the boxes must have been, in order to obtain that result.
In these problems, the expression (number in box X) is abbreviated as (X).
For example: "Is (4) greater than (7)?"
means "Is (number in box 4) greater than (number in box 7)?"
In each of the following problems, no two boxes contain the same number.
Which of the boxes 1, 2, 3 CANNOT POSSIBLY contain the largest number, the smallest number?
A. BOX 1, BOX 3 B. BOX 2, BOX 3 C. BOX 2, BOX 1 D. BOX 4, BOX 3 Answer: BOX 1, BOX 3
Explanation:
Given Box 4 = EITHER C or F
Also, (1) means number in Box 1.
For C,
IS (3) > (1) ? NO --(1)
IS (2) > (1) ? YES --(2)
For F,
IS (3) > (1) ? YES --(3)
IS (2) > (1) ? YES --(4)
IS (3) > (2) ? YES --(5)
ANSWER
Number in BOX 1 cannot be largest(refer (1), (2), (3) and (4)),
And, Number in BOX 3 cannot be smallest(refer (1), (3) and (5)).
22. In the following problems, you are told something about the result, and you must determine
what the contents of the boxes must have been, in order to obtain that result.
In these problems, the expression (number in box X) is abbreviated as (X).
For example: "Is (4) greater than (7)?"
means "Is (number in box 4) greater than (number in box 7)?"
In each of the following problems, no two boxes contain the same number.
Which of the boxes 1, 2, 3 CANNOT POSSIBLY contain the largest number, the smallest number?
A. BOX 2, BOX 3 B. BOX 1, BOX 3 C. BOX 2, BOX 1 D. None of these Answer: None of these
23. The object of the following flow-chart is to rearrange the numbers in boxes 1, 2 and 3 in such a
fashion that, at the end:
Box 3 will always contain the largest number,
Box 1 will always contain the smallest number,
However, this flow-chart is INCORRECT. As it stands, it will not accomplish the desired purpose.
Which one instruction must be changed to correct the flow-chart?
A. Instruction 5 Box 2 Box 3 B. Instruction 5 Box 3 Box 2 C. Instruction 4 Box 2 Box 3 D. None of
these Answer: Instruction 5 Box 3 Box 2
Explanation:
The two conditions in the flowchart are :
Instruction 1 : IS (1) < (2) ? YES --(1)
Instruction 5 : IS (3) < (2) ? NO --(2)
ANSWER
The error is in Instruction 5, because BOX 3 will always contain the largest number and so the
output to Instruction 5 will always be NO and the loop will end only on a YES.
24. Study the flow chart shown below to answer the following questions.
For an individual who works for a government organization and owns a house, it is given that he is
35 years old and earns Rs. 15,000 per month. What would be the approved amt (in Rs.) for him?
A. 1500000 B. 1875000 C. 1600000 D. 2050000 E. None of these Answer: 1875000
Explanation:
approved_amt = sal * 5 * (60 - age) = 15,000 * 5 * (60 - 35) = 18,75,000 Rs.
25. Study the flow chart shown below to answer the following questions.
A person wishes to apply for a loan worth Rs. 20, 00,000. Person does not own a house and also
does not work for a government
organization. Will he get this loan approved if he draws a salary of Rs. 50,000 and his current age is
26 years?
A. Yes, if his age is less than 40. B. No, he would not get this amount. C. Yes, he would get this
amount. D. Yes, if his age is less than 40. Answer: No, he would not get this amount.
Explanation:
approved_amt = sal * (60 - age)
= 50,000 * (60 - 26)
= 17,00,000 Rs.
So, the loan will not be approved for the person mentioned in the question
26. Study the flow chart shown below to answer the following questions.
A person wishes to avail a loan of Rs. 50, 00,000. He works for a government organization and does
not own a house. Would he get the loan if he draws a salary of Rs. 60,000 and his age is 28 years.
If he does get a loan, what amount would he be entitled? If not, by what amount he would be short
of the required amount?
A. Yes, he would get a loan equal to Rs. 57, 60,000.
27. Study the flow chart shown below to answer the following questions.
In which situation can this flowchart get stuck in an infinite loop?
A. When N >= 0 B. When N <= 0 C. When N > M or F D. will never enter in infinite
loop Answer: When N <= 0
Explanation:
From the flowchart it is evident that M will always be a natural number equal to or greater than 1.
For values of N less than or equal to 0 the flowchart will get struck in an infinite loop.
28. Study the flow chart shown below to answer the following questions.
Which of the following correctly represents the bug present in this flowchart?
A. Not handled for N = M B. Not handled for N <= 0 C. Not handled for N > M D. Not handled for
natural numbers as N Answer: Not handled for N <= 0
Explanation:
The values of N equal to or less than 0 will make the flowchart to get struck in an infinite loop, so
this is this bug
in the flowchart for values of N less than equal to 0.
29. Study the flow chart shown below to answer the following questions.
Which of the following value will be printed if the value of N = 0?
Explanation:
For value of N equal to 0, the flowchart gets struck in an infinite loop. Hence answer to this question
is option D (none of these)
30. Study the flow chart shown below to answer the following questions.
Which among the following operations is not performed as per the process of the flow chart?
A. Take exactly 5 values as input.
31. Study the flow chart shown below to answer the following questions.
For which sets of values will the above flow chart get into an infinite loop?
A. 1, 1, 1, 1, 1 B. 1, 2, 3, 4, 5 C. 5, 4, 3, 2, 1 D. This flowchart will never get into an infinite loop
32. Study the flow chart shown below to answer the following questions.
At the end of the flowchart execution, what would be the values of I and M?
A. I=1, M=1
B. I=6, M=5
C. I=5 M=5
D. I=5, M=6