Resources
Placement PapersPlease find below are the TCS C Interview Questions.
Latest Questions
8. What is the value of y in the following code? x=7; y=0; if(x=6) y=7; else y=1; A. 7 B. 0 C. 1 D. 6
14. "1 e 02" A. int B. char C. string D. float
16. 15 A. int B. char C. string D. float
24. The operator for exponentiation is A. ** B. ^ C. % D. not available
26. What is y value of the code if input x=10 y=5; if (x==10) else if(x==9) else y=8; A.9 B.8 C.6 D.7
28. a=0; while(a<5) printf("%dn", a++); How many times does the loop occurs? A. infinite B. 5 C. 4 D. 6
38. The format specified for hexadecimal is A. %d B. %o C. %x D. %u
Read More TCS Interview Questions
Ads
GeekInterview
Popular Sections