[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

61. Which of the following statement is correct?

Answer: A destructor has the same name as the class in which it is present.

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

62. Which of the following is a valid destructor of the class name Country

Answer: void Country()

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

63. A direct access file is:

Answer: Files which are stored on a direct access storage medium

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

64. Template support

Answer: generic programming

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

65. Function template can be overloaded with

Answer: both (a) and (b)

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

66. #include < iostream >
#include < string >
using namespace std;
template < typename T >
void print_mydata(T output)
{
cout << output << endl;
}
int main()
{
double d = 5.5;
string s("Hello World");
print_mydata( d );
print_mydata( s );
return 0;
}

Answer: 5.5

Explanation:

Passing the value to template and printig it in template.

Workspace

Tags:

Sopra Steria 

67. Pick out the correct statement about string template?

Answer: It is used to replace a string with another string at runtime.

Explanation:

Every string template is used to replace the string with another string at runtime.

Workspace

Tags:

Sopra Steria 

68. Which is similar to template specialization?

Answer: function template overloading

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

69. From where does the template class derived?

Answer: a or b

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria 

70. Which of the STL containers store the elements contiguously (in adjecent memory locations)?

Answer: std::map

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Sopra Steria