Recent Placement Papers of BOA (Bank of America)
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
62 / 70
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
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
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
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
66 / 70
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
67 / 70
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
68 / 70
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
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
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)