Beruflich Dokumente
Kultur Dokumente
Sopra Steria
Aptitude
Questions - Type
2 - Question 1
Following two
Questions are based on the
same data: (n)= no. in box 1
Q1= If the output of the following
algo is box C. Then whic...
Solution :
These types of problems can be easily solved by following the algorithm steps .
Follow The initial values in the boxes are :
1 2 3 4 5 6 7 8 9 10 11 12
2 4 3 7 9 0 1 2 4 1 1
We can consider the collection of boxes as an array. So the contents of the array are :
A[1] A[2] A[3] A[4] A[5] A[6] A[7] A[8] A[9] A[10] A[11]
A[12]
2 4 3 7 9 0 1 2 4 1 1
Now initially after Step 1 & Step 2, the values in the array are :
A[1] A[2] A[3] A[4] A[5] A[6] A[7] A[8] A[9] A[10] A[11] A[12]
2 4 3 7 9 0 1 0 4 1 0 1
From here the iteration starts until the number in box (11) > 0 & it is divisible by 5. We can
rewrite the condition as :
(A[11] > 0) && (A[11] % 5 == 0)
Iteration 1 :
Step 3 : Add the number in box (8) and number in box (1) and put the result in box (8).
This is can be well understood as :
A[8] = A[8] + A[1]
= 0 +2
A[8] = 2
Follow
Step 4 : Add number in box (11) and 2 and put the sum in box (11).
i.e. A[11] = A[11] + 2
FOLLOW BY EMAIL
placementpapersplanet.blogspot.com/2012/02/sopra-aptitude-paper-1.html 1/6
5/29/2019 Placement Papers Planet: Sopra Steria Aptitude Questions - Type 1 - Question 1
FOLLOW BY EMAIL
= 0 +2
A[11] = 2
Email address...
Step 5 : Check if (A[11] > 0) && (A[11] % 5 == 0) then EXIT.
Submit
Here the condition is not fulfilled hence the algorithm controls move to Step 6.
Delivered by FeedBurner
Iteration 2 :
Step 3 : A[8] = A[8] + A[2]
A[8] = 6
Iteration 3 :
Step 3 : A[8] = A[8] + A[3]
A[8] = 9
Iteration 4 :
Step 3 : A[8] = A[8] + A[4]
A[8] = 16
Iteration 5 :
Step 3 : A[8] = A[8] + A[5]
A[8] = 25
------------------------------------------------------------------------------------------------------------
Answer
------------------------------------------------------------------------------------------------------------
Labels: Sopra, Sopra Steria, Sopra Steria Aptitude Questions, Sopra Steria Placement Papers
33 comments:
Replies
Reply
Replies
Follow
Email address...
Anonymous 15 March 2012 at 14:17
Submit
ok bt i want to ask...questions wer direct or programming related???/can u gyv any
xamle Delivered by FeedBurner
Reply
Replies
Reply
Replies
Reply
Follow
FOLLOW BY EMAIL
placementpapersplanet.blogspot.com/2012/02/sopra-aptitude-paper-1.html 4/6
5/29/2019 Placement Papers Planet: Sopra Steria Aptitude Questions - Type 1 - Question 1
FOLLOW BY EMAIL
akky 12 May 2012 at 16:53
i also didnt uderstand please any one can help and any one have any last placement paper of
Email address...
sopra or example papar
Reply Submit
Delivered by FeedBurner
Replies
Reply
Replies
Reply Follow
FOLLOW BY EMAIL
placementpapersplanet.blogspot.com/2012/02/sopra-aptitude-paper-1.html 5/6
5/29/2019 Placement Papers Planet: Sopra Steria Aptitude Questions - Type 1 - Question 1
FOLLOW BY EMAIL
SEO/SMO/SEM EXPERT | CONTACT 8802391993 19 February 2014 at 13:12
inditest.com is the good website portal about educations .It is the same question paper as
Email address...
provided to me by a candidate..
Submit
http://www.inditest.com/placement-papers/
Delivered by FeedBurner
http://www.inditest.com/government-jobs/
Reply
Blogger Widgets
Follow
FOLLOW BY EMAIL
placementpapersplanet.blogspot.com/2012/02/sopra-aptitude-paper-1.html 6/6