Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Societe Generale Placement Questions & Answers :: Societe Generale

30.14K

Tot. Mock Test: 3


Total Qs: 224+

NA
SHSTTON
68
Solv. Corr.
35
Solv. In. Corr.
103
Attempted
0 M:0 S
Avg. Time

111 / 224

What is the output of the below C++ program?
#include <iostream>
        using namespace std;
        namespace extra
        {
            int i;
        }
        void i()
        {
            using namespace extra;
            int i;
            i = 9;
            cout << i;
        }
        int main()
        {
            enum  letter { i, j};
            class i { letter j; };
            ::i();
            return 0;
        }

A9

B10

C11

DCompilation Error

Answer: Option A

Explanation:

cope resolution operator without a scope qualifier refers to the global namespace.

Submit Your Solution

NA
SHSTTON
111
Solv. Corr.
48
Solv. In. Corr.
159
Attempted
0 M:0 S
Avg. Time

112 / 224

Find out the error in following block of code.
If (x = 100)
    Cout << "x is 100";

A100 should be enclosed in quotations

BThere is no semicolon at the end of first line

CEquals to operator mistake

DVariable x should not be inside quotation

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
56
Solv. Corr.
103
Solv. In. Corr.
159
Attempted
0 M:0 S
Avg. Time

113 / 224

Choose the correct option.

Which of the following is not a jump statement in C++?


Abreak

Bgoto

Cexit

Dswitch

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
100
Solv. Corr.
47
Solv. In. Corr.
147
Attempted
0 M:0 S
Avg. Time

114 / 224

What is the output of the below C++ program.
#include<iostream.h>
void main()
{
int n=1;
cout<<endl<<"The numbers are;"<<endl;
do
{
cout <<n<<"\t";
n++;
} while (n<=100);
cout << endl;
 }

APrint natural numbers 0 to 99

BPrint natural numbers 1 to 99

CPrint natural numbers 0 to 100

DPrint natural numbers 1 to 100

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
56
Solv. Corr.
117
Solv. In. Corr.
173
Attempted
0 M:0 S
Avg. Time

115 / 224

Choose the correct option.

Which of the following is false for switch statement in C++?


AIt uses labels instead of blocks

Bwe need to put break statement at the end of the group of statement of a condition

Cwe can put range for case such as case 1..3

DNone of above

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
44
Solv. Corr.
95
Solv. In. Corr.
139
Attempted
0 M:0 S
Avg. Time

116 / 224

Choose the correct option.

Which of the following is not recommended in a header file?


AType definitions (typedefs)

BClass definitions

CFunction definitions

DTemplate definitions

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
15
Solv. Corr.
108
Solv. In. Corr.
123
Attempted
0 M:0 S
Avg. Time

117 / 224

Choose the correct option.

What is the difference between overloaded functions and overridden functions?


AOverloading is a dynamic or run-time binding and Overriding is static or compile-time binding

BRedefining a function in a friend class is called function overriding while Redefining a function in a derived class is called a overloaded fucntion

COverloading is a static or compile-time binding and Overriding is dynamic or run-time binding

DRedefining a function in a friend class is called function overloading while Redefining a function in a derived class is called as overridden fucnion

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
34
Solv. Corr.
116
Solv. In. Corr.
150
Attempted
0 M:0 S
Avg. Time

118 / 224

Choose the correct option.

The primary purpose of exception specification is


Adocumentation

Bobject-orientedness

Cstructure

Dreduction of code.

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
64
Solv. Corr.
72
Solv. In. Corr.
136
Attempted
0 M:0 S
Avg. Time

119 / 224

Choose the correct option.

A default catch block catch


Aall thrown objects

Bno thrown objects

Cany thrown objects that has not been caught by an earlier catch block

Dall thrown objects that have been caught by an earlier catch block.

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
66
Solv. Corr.
65
Solv. In. Corr.
131
Attempted
0 M:0 S
Avg. Time

120 / 224

Choose the correct option.

Which of the following is not a standard exception built in C++


Astd::bad_creat

Bstd::bad_alloc

Cstd::bad_cast

Dstd::bad_typeid

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution


Here is the list of questions asked in Societe Generale Technical Questions in Written Test . Practice Societe Generale Written Test Papers with Solutions and take Q4Interview Societe Generale Online Test Questions to crack Societe Generale written round test. Overall the level of the Societe Generale Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of Societe Generale