[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

81. #include
#include
int myalloc(char *x, int n){
x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}
int main(){
char *g="String";
myalloc(g,20);
printf("The string is %s",g);
return 0;
}

Answer: The string is: String

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS Sopra Steria 

82. FUNC (int *p)
{
p = (int *)malloc(100);
printf("p:%x",p);
}

int main( )
{
int *ptr;
FUNC(ptr);
printf("Ptr:%x",ptr);
return 0;
}

Answer: Both print different values

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Global Edge Sopra Steria 

83. Is the following statement True or False

Statement:
If the condition in Step C updates the value in Box 3 instead of Box 2, then the flow chart will enter into infinite loop

Answer: FALSE

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Capgemini Sopra Steria Accenture