4th November 2015 11:58 AM | |
Saksham | Re: TCS Technical Interview Questions Here are the some of the questions which are generally asked in the Technical round of the interview: What is the value of the variable a3 after execution of the following code? String a1,a2,a3; a1=56 a2=68< a3=a2+a1 6856 5668 124 error If the int variables int1 and int 1 conatin values 5 and 2 respectively, then the vlue of (double)(int1/int 2) 0.25 0 2.0 2.5 What are th output of following code: for(x=10;x<+ 50;x+=10) y= x/2; cout<< y ; 25 50 12 10 Write one statement equivalent to the following two statements: x=sqr(a); return(x); return(sqr(a)); printf("sqr(a)"); return(a*a*a); printf("%d",sqr(a)); The rand() built in library function is a true random number generator returns positive double values is a pseudo-random number generator returns a different sequence of values each time it is run. What is the output of the following code? x=15;y=0; if(x=10) y=7; else y=1; cout<< y; 7 0 1 6 Other question which are asked are given below: • Write a program to find factorial of a number using recursive function. • Describe 2 different ways to concatenate two strings. • Give syntax for SQL and ORACLE joins. • How is modularity introduced in C++? • What is the difference between a Stack and a Queue. • Give example to differentiate between call by value and call by reference. • Why the usage of pointers in C++ is not recommended ? • What do you mean by Data mining? • Write a program to reverse a string. |
4th November 2015 09:44 AM | |
Unregistered | TCS Technical Interview Questions Hi I would like to have the technical interview questions which are generally asked in the Technical Interview round for TCS? |