Welcome to Your Quiz: Aptitude Test C Programming of TCS Fresher or Campus Interview

Name Email
1. Which is not a string function?
2. Predict the Output : 

float a = 0.1;
if(a==0.1)
printf(“Yes”);
else
printf(“No”)
3. Which of the following is true?
4. The difference between variable declaration and variable definition is
5. Which of the following is NOT a valid storage class in C language?
6. How many times the below loop will be executed?
#include <stdio.h>
int main()
{
int x, y;
for(x=5; x>=1; x--)
{
for(y=1; y<=x; y++)
printf("%d\n",y);
}
}
7. What is the task of pre-processor?
8. Neha is developing an IP telephony software in which the audio is encoded and transmitted by the sender as network packets through a communication channel. At the other end these packets are assembled and processed further.Neha  recognizes that there maybe a very large number of packets this number is unknown and which will be processed while more packets are being received .assume that the packets arrive in right order .what data structure should Neha use?
9. In c language, if a function return type is not explicitly defined then it defaults to what data type?
10. Which of this is used to skip one iteration:
11. The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively. The post-order traversal of the binary tree is:
12. Comment on the below while statement
while(0 == 0)
{
}
13. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
14. Which of the following is true?
15. A program reads in 500 integers in the range [0…100]representing the scores of 500 students.it then prints the frequency of each score above 50.what would be the best way for the program to store the frequencies?
16. Which address does a pointer to an array store:
17. Which is the character array used to accept command line arguments?
18. The full set of operations allowed on a stack are
19. What is a dangling pointer?
20. Which of the following does not require to include math.h header file?

Thank You for Submitting your response for Quiz

Aptitude Test C Programming of TCS Fresher or Campus Interview

Please click on View Result Button to see the Result.



(Visited 141 times, 1 visits today)
Show Buttons
Hide Buttons