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

Recent Placement Papers of BOA (Bank of America)

67.6K

Tot. Mock Test: 1


Total Qs: 70+

NA
SHSTTON
56
Solv. Corr.
14
Solv. In. Corr.
70
Attempted
1 M:34 S
Avg. Time

61 / 70

What would be the Output?

int main()
{
typedef int Currency;
Currency Dollar=10;
Currency Pound = 20;
printf("%d, %d", Dollar, Pound);
}


AError

B10,20

C20,10

DNo Output

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
18
Solv. Corr.
85
Solv. In. Corr.
103
Attempted
0 M:26 S
Avg. Time

62 / 70

What would be the Output?

void main()
{
char input[] = "SSSWILTECH1\1\1";
int i, c;
for ( i=2; (c=input[i])!='\0'; i++)
{
switch(c)
{
case 'a': putchar ('i'); continue;
case '1 ': break;
case 1: while
(( c = input[++i]) != '\1' && c!= '\0');
case 9: putchar('S');
case 'E':
case 'L': continue;
default: putchar(c);continue;
}
putchar(' ');
}
putchar('\n');
}


ASSSWILTECH1

BSWITCH1S

CSWITCH

DError

ENone of these

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
41
Solv. Corr.
62
Solv. In. Corr.
103
Attempted
0 M:0 S
Avg. Time

63 / 70

A recursive function would result in infinite recursion, of the following were left out:


ABase call

BRecursive call

CSubtraction

DLocal variable declarations

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
65
Solv. Corr.
29
Solv. In. Corr.
94
Attempted
0 M:0 S
Avg. Time

64 / 70

void fn(int *p)
{
static int val = 100;
p = &val;
}
main()
{
int i=10;
printf("i=%d\n", i);
fn(&i);
printf("i=%d\n", i);
}
What is the o/p of the above code?


Ai=100 i=10

Bi=10 i=10

Ci=100 i=100

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
54
Solv. Corr.
104
Solv. In. Corr.
158
Attempted
0 M:0 S
Avg. Time

65 / 70

What will print out?

#include
void main()
{
char *p1="name";
char *p2;
p2=(char*)malloc(20);
memset (p2, 0, 20);
while(*p2++ = *p1++);
printf("%s\n",p2);
}


Aname

Bempty string

Cnull values

DNone of these

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
1635
Solv. Corr.
2012
Solv. In. Corr.
3647
Attempted
0 M:47 S
Avg. Time

66 / 70

Choose the correct option.

Time taken for addition of element in queue is


AO(1)

BO(n)

CO(log n)

DNone of these options

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
1280
Solv. Corr.
1112
Solv. In. Corr.
2392
Attempted
0 M:27 S
Avg. Time

67 / 70

Choose the correct option.

To create a linked list, we can allocate space and make something point to it, by

writing:

struct-narne *pointer-variable;

Which of the following statement will correctly allocate the space


Apointer-variable= malloc(sizeof(*struct-narne));

Bpointer-variable = malloc(sizeof(struct struct-name));

Cpointer-variable = a!loc(sizeof(struct struct-name));

Dpointer-variable = alloc(sizeof(*struct-name));

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
31
Solv. Corr.
191
Solv. In. Corr.
222
Attempted
2 M:7 S
Avg. Time

68 / 70

Choose the correct option.

fputs function is used to


AWrite characters to a file

BTakes 2 parameters

CReturns a character

DRequires a file pointer

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
54
Solv. Corr.
48
Solv. In. Corr.
102
Attempted
0 M:13 S
Avg. Time

69 / 70

We all know that a const variable needs to be initialized at the time of declaration. Then what will be the output of the program given below, even when we have not initialized p?

void main()
{
const char *p ;
p="A const pointer" ;
cout << p;
}


AA const pointer

Bnull

CCompiler Error: Pis not initialized

DNone of these

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
29
Solv. Corr.
116
Solv. In. Corr.
145
Attempted
0 M:18 S
Avg. Time

70 / 70

char a[5] ="hello"
What is wrong in the above syntax?


AIn array we can't do the operation

BSize of a is too large

CSize of a is too small

DNothing wrong with it

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution


Here is the list of questions asked in Placement Papers of BOA (Bank of America) Recent Placement Papers of BOA (Bank of America). Practice BOA (Bank of America) Written Test Papers with Solutions and take Q4Interview BOA (Bank of America) Online Test Questions to crack BOA (Bank of America) written round test. Overall the level of the BOA (Bank of America) 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 BOA (Bank of America)