[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Verbal Reasoning :: Logical Problems - Discussion

Home > Verbal Reasoning > Logical Problems > MCQs Questions Discussion

11 / 58

Below is a pseudo code Read x

While(x < 60)
write x
x = x*3

The last number in the sequence is 54, what has the user entered as the initial value of x

A2

B5

C3

D4

Answer: Option (Login/Signup)

Show Explanation

Given Last value int seq. = 54.

and in every Loop result multiplied By 3.

So By Backward Approach

54/3=18 => 18/3=6

=> 6/3=2.

So, The Starting Value Is 2

Asked In :: Mu-Sigma

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here