Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Logical Reasoning :: Flow Chart - Discussion

Home > Logical Reasoning > Flow Chart > MCQs Questions Discussion

21 / 42

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?

capgemini-flow-chart-logical-reasoning-question-Answers-part-3

A0

B6

C10

D3

E8

Answer: Option (Login/Signup)

Show Explanation

The answer is E.



The instruction 1 gets modified as long as the condition becomes false.



Step 1 defines (on the first occurance) and executes the instruction



Step 2 modifies the instruction



Step 3 does an evaluation



On each loop, the box 2, 4, 6, 8, 10... gets filled with 0. We need to limit it until 6 only.



When the last box count becomes 6, we need to execute the instruction. So, box 3 should not have 6. After executing instruction, it updates the box number to 8. Here, we need to break. 



So, box 3 should contain 8.

Asked In :: ThoughtWorks Accenture

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +12 -9 +16
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +3 -5 +4
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +5 -3 +3
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +19 -5 +19
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +2 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +2 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +3 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here