[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 Paper :: MosChip Semiconductor

Companies-Placement-paper-experience
  • MosChip Semiconductor-Hyderabad
Total View : 5.25K
4 
0 
-------------- C WRITTEN TEST 1 HOUR -------------------

/* There were 13 questions from C and 2 questions from Logical section that were very simple*/

Q1) Write a program to display Xth bit of a given number.

Q2) What does in *p++ increment?

Q3) What is the difference between char a[]="string" and char *a="string" ?

Q4) What is the output?

main()
{
printf("%x",-1<<4);
}

Q5) What is the difference between array of pointers and pointer to an array ? Explain with example.

Q6) What is the output ?

main()
{
int a, b, c, abc=0;
a = b = c = 40;

if(c) {
int abc;
abc = a+b*c;
}
printf("c=%d, abc=%d",c,abc);
}


Q7) What is the output?

main()
{
int i=5;

i = i++ +i ++i;

printf("%d",i);

}

Q8) Declare a function pointer and explain with an example using it.

Q9) What is the output?

#define ABC 20
#define XYZ 10
#define XXX ABC+XYZ

main()
{
int a;

a = XXX * 10;

printf("%d",a);

}

Q10)Write a data structure and print all its elements values implementing a function pointer.

Q11)Write a program to delete a given node from a single link list.

Q12)Write a program to reverse a string.

Q13)What will be the output?

main()
{
char a[]="1234567890";
char p;

p = (a+1)[5];
printf("%d",p);
}


Q14)Logical section question on a simple tricky diagram

Q15)Two numbers add to 110. One number is 150% than the other. What are the two numbers?