Skip to main content

Sopra Steria Aptitude Questions - Type 2 - Question 1





(n)= no. in box 1

Following two Questions are based on the same data:

Q1= If the output of the following algo is box C. Then whichof the boxes (1),(2),(3) can have the greatest and the smallest number?


Q2. If the output of the following algo is box C & boxB. Then which of the boxes (1),(2),(3)can have the greatest and the smallest number?

Popular posts from this blog

Sopra Steria Aptitude Questions - Type 1 - Question 1

Q1. The following algorithm adds the numbers in box no. 1,2,3,4,5 and puts the sum in box number 8. For this to happen what should be the minimum value in box number 11. where (n) means box number n. Step1: Initialization : Put 0 in box number (8). Step2 : Put 0 in box number (11). Step3. Add: Add number in box (8) and no. in box (1) and put the result in box (8). Step4: Add : no. in box (11) +2 and put the sum in box number (11). Step 5 : Check if no. in box (11) > 0 & it is divisible by 5 Step6:Change instruction 3 : Increase the second box number in step 2 by 1.       1           2          3           4           5            6           7           8             9          10         11         12 2 4 3 7 9 0 1 2 4 1 1 Solution : These types of problems can be easily solved by following the algorithm steps . The initial values in the boxes are :              1  

Sopra Steria Aptitude Questions - Type 2 - Quetions 2

Q3.If the output of the following program executes the instructions written in box A. Then which of the boxes  (1), (2), (3) may contain the smallest and the largest number? Q4. If the output of the following program executes the instructions written in box C & box F. Then which of the boxes (1), (2), (3) may contain the smallest and the largest number? Q5. If the output of the following program executes the instructions written in box D & box C. Then which of the boxes (1), (2), (3) may contain the smallest and the largest number?