ThoughtWorks Aptitude Test Question with Answers
21 / 33
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?
AInstruction 5 Box 2 Box 3
BInstruction 5 Box 3 Box 2
CInstruction 4 Box 2 Box 3
DNone of these
Answer: Option B
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.
Submit Your Solution
22 / 33
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?
A1500000
B1875000
C1600000
D2050000
ENone of these
Answer: Option B
Explanation:approved_amt = sal * 5 * (60 - age) = 15,000 * 5 * (60 - 35) = 18,75,000 Rs.
ShortCut By :: Nagaraj150000
Submit Your Solution
23 / 33
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?
AYes, if his age is less than 40.
BNo, he would not get this amount.
CYes, he would get this amount.
DYes, if his age is less than 40.
Answer: Option B
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.
Correct answer: Option B
According to the given flow chart, highest approved amount of loan for the man is: 50000*(60-26)=1,700,000
Loan of rs. 2,000,000 can't be approved.
Submit Your Solution
24 / 33
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?
AYes, he would get a loan equal to Rs. 57, 60,000.
BYes, he would get a loan exactly equal to Rs. 50, 00,000.
CNo, he would not get a loan. He would be short of Rs. 7, 00,000.
DNo, he would not get a loan. He would be short of Rs. 7, 60,000.
Answer: Option A
Explanation:approved_amt = sal * 3 * (60 - age)
approved_amt = 60,000 * 3 * (60 - 28)
approved amt = 57,60,000 Rs. So, yes, he would get a loan equal to Rs. 57,60,000.
Submit Your Solution
25 / 33
Study the flow chart shown below to answer the following questions.
In which situation can this flowchart get stuck in an infinite loop?
AWhen N >= 0
BWhen N <= 0
CWhen N > M or F
Dwill never enter in infinite loop
Answer: Option B
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.
Submit Your Solution
26 / 33
Study the flow chart shown below to answer the following questions.
Which of the following correctly represents the bug present in this flowchart?
ANot handled for N = M
BNot handled for N <= 0
CNot handled for N > M
DNot handled for natural numbers as N
Answer: Option B
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.
Submit Your Solution
27 / 33
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?
A0
B720
C5040
DNone of these
Answer: Option D
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)
Submit Your Solution
28 / 33
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?
ATake exactly 5 values as input.
BSort the list in descending order.
CPrint all 5 values which were given as input.
DNever get into the "Is List > Val" loop
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
29 / 33
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?
A1, 1, 1, 1, 1
B1, 2, 3, 4, 5
C5, 4, 3, 2, 1
DThis flowchart will never get into an infinite loop
Answer: Option D
Explanation:Here is no explanation for this answer
Submit Your Solution
30 / 33
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?
AI=1, M=1
BI=6, M=5
CI=5 M=5
DI=5, M=6
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
Here is the list of questions asked in ThoughtWorks Aptitude Test Question with Answers ThoughtWorks Mock Test. Practice ThoughtWorks Written Test Papers with Solutions and take Q4Interview ThoughtWorks Online Test Questions to crack ThoughtWorks written round test. Overall the level of the ThoughtWorks Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of ThoughtWorks