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

Name Email
1. Predict the Output : 

float a = 0.1;
if(a==0.1)
printf(“Yes”);
else
printf(“No”)
2. Which is not a string function?
3. The difference between variable declaration and variable definition is
4. Which of the following does not require to include math.h header file?
5. Which of this is used to skip one iteration:
6. Which of the following is NOT a valid storage class in C language?
7. 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?
8. Which address does a pointer to an array store:
9. Which is the character array used to accept command line arguments?
10. What is a dangling pointer?
11. Which of the following is true?
12. What is the task of pre-processor?
13. 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:
14. In c language, if a function return type is not explicitly defined then it defaults to what data type?
15. 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);
}
}
16. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
17. Which of the following is true?
18. 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?
19. The full set of operations allowed on a stack are
20. Comment on the below while statement
while(0 == 0)
{
}

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 133 times, 1 visits today)