[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.

Placement Questions & Answers :: Sopra Steria

31. Study the flow chart give below and the questions that follow.

Answer: 4

Explanation:

Assume Box 2 has number 2, Box 3 has number 3 and so on.
And Box 10 has number 4
Instruction 1 : 5 [Box 5] - 5 [Box 5] = 0 [Box 5]
Instruction 2 : 1 [Box 1] + 0 [Box 5] = 1[Box 5]
Instruction 3 : IS 1 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 1 [Box 5] + 9 [Box 9] = 10 [Box 5]
Instruction 5 : 1 [Box No.] + 1 = 2[Box No.]
Instruction 6 : 9 [Box No.] - 1 = 8 [ Box No.]
Instruction 2 : 2 [Box 2] + 10 [Box 5] = 12 [Box 5]
Instruction 3 : IS 2 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 12 [Box 5] + 8 [Box 8] = 20 [Box 5]
Instruction 5 : 2 [Box No.] + 1 = 3 [Box No.]
Instruction 6 : 8 [Box No.] - 1 = 7 {box No.]
Instruction 2 : 3 [Box No.] + 20 [Box 5] = 23 [Box 5]
Instruction 3 : IS 3 [Box No.] < 4 [Box 10] ? YES
Instruction 4 : 23 [Box 5] + 7 [Box 7] = 30 [Box 5]
Instruction 5 : 3 [Box No.] + 1 = 4 [Box No.]
Instruction 6 : 7 [Box No.] - 1 = 6 [Box No.]
Instruction 2 : 4 [Box 4] + 30 [Box 5] = 34 [Box 5]
Instruction 3 : IS 4 [Box No.] < 4 [Box 10] ? NO
ANSWER Box 10 = 4

Workspace

Tags:

ThoughtWorks Sopra Steria 

32. Study the flow chart give below and the Answer the questions that follow.

What number is now in box 1?

Answer: 10

Explanation:

Here is no explanation for this answer

Workspace

Tags:

ThoughtWorks Sopra Steria 

33. Study the flow chart give below and the Answer the questions that follow.

What number is now in Box 3 & Box 10 ?

Answer: None of these

Explanation:

Here is no explanation for this answer

Workspace

Tags:

ThoughtWorks Sopra Steria 

34. Polymorphism is done by

Answer: both (a) and (c)

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

35. char *buff, *data;
void main ()
{
const char* const cp = buff;
cp = data; // Line 5
*cp='a'; // Line 6
}

Answer: Both Line 5 and Line 6

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Commvault Sopra Steria 

36. To be called object-oriented, a programming language must allow

Answer: inheritance

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

37. The data type created by the data abstraction process is called

Answer: Abstract data type

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

38. #include
using namespace std;

class test {
float x, y;
public:
test(float a = 1.0, float b = 2.0)
{
x = a;
y = b;
}

test operator + (test & obj) {
return test(this->x + obj.x, y + obj.y);
}

operator float () {
return (x + y) ;
}
};

int main () {
test obj1(1.23, 4.56), obj2;
obj2 = obj1 + obj2;
cout << obj2;
return 0;
}

Answer: 8.79

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Commvault Sopra Steria 

39. Derivation of class from several base classes called_________inheritance.

Answer: multiple

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

40. A program can directly access the_________members of a class.

Answer: public

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria