You are on page 1of 17

TCS MATERIALS ALL IN ONE

WRITTEN PROCESS

TCS Interview Pattern :

Those who have been started preparing for TCS, please refer below pattern.
There are the following rounds of interview in the TCS recruitment.
• Quantitative Ability and Reasoning MCQ
Quants of 40 mins with 20 questions 
Negative Marking: 0.33 for each negative answer
Questions asked from these topics:
• Averages, Mixtures and Alligations
• Percentages, Profit and loss
• Algebra, Ratio and Proportions
• Permutation and Combinations, Probability
• Time, speed, distance, Time and Work
• Functions, Geometry
• Numbers
You can refer below site to prepare these kind of questions
http://prepinsta.com/tcs-quantitative-aptitude-questions/
http://www.indiabix.com/
*************************************** 
• Programming and Computer Science MCQ
Then Computer Science Basics MCQ for 20 mins
It consists of simple c fundamentals, output questions.
Negative Marking: 0.33 for each negative answer
1. Which is the character array used to accept command line arguments?
A) char argv B) char* argv[] C) char argv[] D) char* argv
2. What is a dangling pointer?
3. Which is not a string function?
A) strstr B)strcmp C) strupr D) strchr
4. Which of the following does not require to include math.h header file?
A) pow() B) rand() C)sqrt() D) sinh()
5. What is the task of pre-processor?
A) Expanding B) Compiling C) Linking D) All of the above
6. Which of the following is true?
A) realloc() can change the memory size of arrays
B) Unary operator works on only one operand
C) Struct and Union works in same way.
D) None of the above
7. Which of this is used to skip one iteration:
A) break B) continue C) goto D) return
8. Which address does a pointer to an array store:
A) Memory address of the first element of the array
Don’t remember the other options.
9. Predict the output:
float a = 0.1;
if(a==0.1)
printf(“Yes”);
else
printf(“No”); Answer would be No.
10. Another output based question which basically displayed the input string in reverse pattern.
For example, ABRACADABRA was displayed as ARBADACARBA.
You can refer below site to prepare these kind of questions
http://prepinsta.com/tcs-technical-questions-computer-scie…/
http://www.indiabix.com/
************************************ 
• Coding Test (Based on Command Line Arguments, which is different from C/C++, if you dont
get output in this section you're not selected for next round)
In Coding section, you will have to write a single piece of code. Programs are pretty simple like:
finding factorial, finding prime numbers upto a given range, conversion of binary to decimal etc.
Now the most important is part is the coding section, I observed anyone who hadn't got the
complete output in coding section even though they had scored well in other three section, he
was not selected.
Thus it is very crucial to get output in the coding section. Now that is hard since you don't have to
code in C or C++ they have their own compiler where you can only use command line Arguments
language. You can find Command Line Arguments questions for TCS on google.
Also, they give a little introduction about command line language before taking the test which you
can read for 10 mins and start coding it is 60% similar to C but
scanf
getch
cin
other functions are operated differently.
If you don't get output in command link 90% you're not going to be selected.
Rules for Coding Section:
There is only one question for 20 minutes.
• It has 10 attempts(We can compile only 10 times).
• We must start our code from the scratch.
• The coding platform is divided into two, one for writing the code and other for output. We should
write the whole
program.
• We can’t use any input functions like scanf(), getch(), getchar().
• The input to be provided should be read as command line arguments.
We must only print exact output.
• Output must not be re-framed by extra words.
• If there is any error, the error will be shown in the output dialog box.
• The errors are clearly mentioned.
• If there are no errors, a message like “compiled successfully” will be printed.
• Along with that they will mention four test cases are ‘passed’ or ‘failed’. They are indicated like
private and public test cases. They have not mentioned what is the test case, which is difficult to
understand.
There were 10 questions which were asked in the Technical Aptitude section. There was
negative marking as well. Star marked questions carried higher positive marks as well as higher
negative marks.
You can refer below site to prepare these kinds of questions
http://prepinsta.com/tcs-coding-questions/
http://www.indiabix.com/
******************************************
Technical interview Round:
Please prepare all the skills which u have mentioned in your resume. TCS does not expect much
from fresher. 
Below questions have been asked in technical interview of TCS 
1. Tell me about yourself (other than the things already mentioned in CV).
2. What are your strengths and weaknesses?
3. Where do you see yourself in 5 years?
4. What are your hobbies? (Be prepared with questions related to your hobbies)
5. What is a Deadlock? And some other questions related to it.
6. What kind of project did you work upon in Onternship Programme? Draw a Flowchart of
operations.
7. From DBMS, questions related to Primary Key, Foreign Key, Natural Join, ER Diagram,
Sequence Diagram.
8. Will you be able to relocate? And work on weekends and late night shifts? (Say “Yes” to
everything. Do not go for “No” option or being honest there.)
*************************************
HR Interview:
Tell me about yourself
What you know about TCS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
TCS Technical Interview guidelines :
Hi All, 
Check your email for TCS written exam result.
Here I am sharing the interview experience of some candidates who selected in TCS last year.
Before I would like tell you guys few things keep in mind before going to interview.
Well communicate and be confident.
Try to explain the things very clearly if it is possible give some examples.
No interviewer start interview with high level questions in starting, they ask basics questions, so
try to answer basics questions well.
200% sure they will ask you this questions"tell me about yourself" at least introduce yourself for
2-3 mins
I am 100% sure they are going to ask basics questions only, don't keep unnecessary skills in
your resume. keep only those skills in your resume which you know.
They are going to ask this question, what was your favourite subject in Btech/MCA, so you can
prepare that well
The Person who is going to interviewed in the Technical interview will not meet you in future in
TCS office. so don't hesitate while speaking, speak something
Don't sit ideally at the interview atleast something related to the topics.
********************************************************
(If you're from non IT & CS background)
1. What is an Array. Can we store a string and integer together in an Array? If I can't, and I want
to, what should I do?
2.Different kind of sorting in Data Structure. (They may give some number and tell you to show
how this numbers are getting sorted with a sorting method they will say)
3. What is Dead Lock. What are the method to prevent Dead Lock.
4. What is NULL pointer and VOID pointer.
5. Write a program on Palindrome Number/Palindrome String/Fibonacci with recursive
function/Factorial using recursion.
6. what is linked list. Advantages and Disadvantages of LL of an Array.
7. Difference between DBMS & RDBMS
8. How SQL query works? Step by step process to fetch the data from Database.
9. What is Binary Tree. They may give some number and tell you to form a tree.
10. Difference between RAM and ROM.
11. Return Type in function in C.
12. Why we include header file in C? what is in a header file? How compiler handle it?13. What is
Dangling Pointer?
14. Functions of calloc(), malloc() and free()
15. Be prepared, They may ask question from your training report and the subjects of interests
you’ve written in your CV.
(For IT and CSE students) Other than the above questions prepare for JAVA (Methods, Class,
Polymorphism, Inheritance, Instances, Objects, Method Overloading), Big Data analysis, Cloud
Computing, Web 2.0
2. HR Round
Introduce Yourself
Why TCS?
Tell us about the current projects of TCS
(If you’re a non-IT and CSE) Why you want to switch to IT industries?
How can you contribute to TCS?
Tell us about your short term and long term goals.
Do you have any plan for higher study?
Tell us a situation where you’ve worked under stress and deadline.
Why will we hire you? / What are the qualities that you think one should have to be successful in
a company like ours?
Are you ready to relocate? / Work in night shifts?
How did you plan to achieve you career goals?
Best of luck everyone.  :)

*****************************************
If you are from electronics background:
I am from B.tech ECE branch and the type of questions asked to me in the technical round are
as follows:
What is antenna? Types of Antenna ? (I was asked my favorite subject and I said Satellite
Communication and hence I think I was asked this question)
The whole uplink downlink chain in satellite communications. (and many questions related to the
technology used and machines used and their range of frequency)
Satellites launched in the current year.
Principle of thermodynamics.(I couldn’t figure out from where this question came   Still Thank
:p

God I knew the answer)


Importance of java and how user interface can be enhanced. (This question was from my
summer internship project and then I was asked to explain my whole project to them and its
importance)
Some aptitude questions which checked the presence of mind. Questions were quite simple.
Now Managerial Round:
I was asked why I want to join tcs as I have good score in my core subjects and the interviewer
was trying to convince me that the job they are offering to me is not good according to my cv.
Answered all his questions and he was impressed  :)

Then he asked about the recent technologies trending in the world right now and if I am
interested in any one of them. Answered.
He then asked how can tcs help you in these interests of yours? Answered.
He asked if I have any questions. Asked one.
Now HR Round(it was already 8pm so HR Round was of only 5 minutes)
What’s your name? What does your father and mother do?
Tell me in detail about your father’s job.
How can tcs help you to grow and how can you contribute to tcs to grow?
Will you be comfortable if you are posted in Chennai?
Topics to prepare for ECE canddiates:
Transistors 
Mosfet 
Controllers
Embedded System and Example
Network Related
Digital Electronics
*********************************************************
Important C and Database questions you can check from here.
1> Write a program to print next to last word of a sentence
2> Write a program to remove the vowels from the input string.
3> Write a Program to convert uppercase to lower case and vice versa of a given string or
sentence
4> Write a program to reverse the string 
5> Write a program to print a desired character from string 
6> wap to enter a string then convert it into upper case
7> .wap to enter a string then convert it into lower case
8> wap to enter the String then remove vowels from the string.
9> wap to enter the string remove the blank spaces from the string.
10> wap to enter a sentence then find 2 last word of sentence
11> wap to enter a string then convert the string into reverse order.
12> wap to enter the string then find the respective ascii value of the string.
13> wap to enter the string then count the length of the string.
14> wap to enter the sentence then find the word from the sentence.
15> wap to enter the string then delete the vowels from string.
16> wap to enter the string then count the length of string.
17> wap to enter the sentence then print it in reverse order
18> wap to enter a string then count the no. of vowels in the string.input:-ABCD, output:-BCDE
19> wap to enter a string then print the longest String in java string array
20> WAP to remove comment lines .
21> WAP to reverse the string like i love india so output will be - india love i
22> WAP to find string is palindrom or not.
23> WAP to find the length of string.
24> WAP to find the number is power of 2 or not.
25> WAP for string comparision.
26> WAP of Bubble sort.
27> WAP to find the LCM nd GCD.
28> WAP to find the sum of digits in number like 245 so output will be 2 + 4 + 5 = 11
29> Wap for fibnocci series for n number :0 1 1 2 3 5 8 13 21….
30> wap(write a program ) to find out the highest number in given numbers 
31> .WAP to reverse the string using linked list
32> wap to remove the blanck space from the string without using built in function
33> WAP for 2^n like 2^3..(search on google u will get answer)
34> write a program to find out the sub string of a string without using built in function 
35> wap for bubble sort, insertion sort, selection sort
36> write a recursive function to find the length of the of string 
37> write a recursive function to find the factorial of a number
Data Structure: you should prepare few data structure concepts like:
Linkedlist
Queue
Seraching
Sorting
Queue
Array.
Opps Concepts:
Prepare Opps concept with live examples
.
SQL: in each technical questions you can find 2-3 questions from SQL
SQL Important Questions:
This the material for SQL profile. I am assuming this is sufficient material for SQL preparation. All
the interview questions can be covered from these questions.
You can save these questions for future purpose.
1> What is DBMS? & What is RDBMS and difference between both.
2> What is the difference between SQL and MySQL or SQL Server?
3> What is the difference between SQL and PL/SQL?
4> What are various DDL, DML,DCL commands in SQL? Give brief description of their purposes.
5> Is a NULL value same as zero or a blank space? If not then what is the difference?
6> What is constraints in sql and how many constraints are in SQL 
Not Null ?
Unique Key (prepare Unique key in details)
Primary Key(prepare Unique key in details)
Foreign Key(prepare Unique key in details)
Check Constraint(prepare Unique key in details)
Index(prepare Unique key in details)
Default(prepare Unique key in details)
7> What is difference between Delete , drop and truncate
8> What is difference between where and having clause
9> What is join and types of join with example?
10> What is Union and Union ALL, difference between both
11> What are the properties and different Types of Sub-Queries?
12> Which TCP/IP port does SQL Server run on? How can it be changed? Answer: 1433
13> What is index and types of index
14> What is ACID property in database?
15> What is the difference among NULL value, zero and blank space?
16> Which are the different case manipulation functions in SQL?
17> What is the usage of NVL function?
18> Which function is used to return remainder in a division operator in SQL?
19> What is the usage of DISTINCT keyword?
20> What is Normalization and type of normalizations?
21> What is SQL Injection?
22> What is denormalization?
23> What is a View?
24> What is a Cursor? And type of cursor
25> What are local and global variables and their differences?
26> . What is Datawarehouse?
27> What is OLTP and OLAP and difference between both?
28> What is star Schema and snowflake Schema and difference between
29> What is Union, minus and Interact commands?
30> What is an ALIAS command?
31> What are aggregate and scalar functions?
32> What is the command used to fetch first 5 characters of the string?
Answer: Select SUBSTRING(StudentName,1,5) as studentname from student
33> How to fetch alternate records from a table?
Answer: Select studentId from (Select rowno, studentId from student) where mod(rowno,2)=0
34> How to fetch common records from two tables?
Answer: Select studentID from student. <strong>INTERSECT </strong> Select StudentID from
Exam
35> How can you create an empty table from an existing table?
Answer: Select * into studentcopy from student where 1=2
36> SQL Query to find second highest salary of Employee ?
Answer: select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from
Employ
37> SQL Query to find Max Salary from each department.
Answer:SELECT DeptID, MAX(Salary) FROM Employee GROUP BY DeptID
38> Write SQL Query to display the current date.
Answer:SELECT GetDate();
39> Write an SQL Query to check whether date passed to Query is the date of given format or
not.
Answer: SELECT ISDATE('1/08/13') AS "MM/DD/YY";
40> Write an SQL Query to print the name of the distinct employee whose DOB is between
01/01/1960 to 31/12/1975
Answer:SELECT DISTINCT EmpName FROM Employees WHERE DOB BETWEEN
‘01/01/1960’ AND ‘31/12/1975’;
41> Write SQL Query to find duplicate rows in a database? and then write SQL query to delete
them?
Answer: SELECT * FROM emp a WHERE rowid = (SELECT MAX(rowid) FROM EMP b WHERE
a.empno=b.empno)
And To delete:
DELETE FROM emp a WHERE rowid != (SELECT MAX(rowid) FROM emp b WHERE
a.empno=b.empno);
42> What is a Composite Key ?
43> What are COMMIT and ROLLBACK in SQL?
44> What is RANK function?
45> What is a materialized view?
46> What is the difference between the NVL and the NVL2 functions?
47> What is the difference between cross joins and natural joins?
48> What is the purpose of the MERGE statement in SQL?
49> What is the difference between VARCHAR2 AND CHAR datatypes?
50> What is clone Table
51> What is the difference between the RANK() and DENSE_RANK() functions? Provide an
example.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
TCS Pattern -I

TCS Codding Round

This new section added in TCS new pattern 2018 Exam, where candidates have to solve 1
programming question in 20 minutes, in C Programming using an inbuilt online compiler. Mostly
question will be some Basics/standard C programming using COMMAND LINE ARGUMENTS. To crack
this round candidates need to practice all the basics program using command line like GCD/HCF, LCM,
factorial, Fibonacci series, string, sum of number, even/odd etc. Refer Programs asked in “TCS Coding
Test” of Q4I programming section.

http://q4interview.com/c-cpp-java-python-programs.php…
Go through the Email Writing Topic, Technical Round Question with Answers, HR round interview
Question & Answers.

http://q4interview.com/c-cpp-java-python-programs.php…
http://q4interview.com/company_tests.php?c=3

Email Writing :
http://q4interview.com/latest-email-writing-questions-with-…

TCS Technical Round Q&A


http://q4interview.com/technical-interview-question-answer-…

TCS HR Round Q&A


http://q4interview.com/hr-round-interview-question-answer-c…

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#TCS_Interview_Questions_And_Tips
Go through this guys......
Technical Round:
In the technical round, some of the subjects that you will be tested include C, JAVA and DBMS.
Along with them, prepare on two more subjects from your branch. In most of the technical
interviews, the interview panel will ask your favorite subject- in case of which you can speak out
the subjects that you have prepared.
Managerial Round:
This round is elimination in most of the cases. This is another technical interview but under
pressure. Confidence matters a lot in this round as the interviewers are going to check whether
one is able to manage the stress or not. The interview panel tries to push one out of one's
comfort zone. Keep calm and answer the questions that one knows. If the answer is not known,
then don't give up, try attempting it with one's knowledge.
HR Round:
In the HR round, the interview panel questions you everything and anything related to your
personality, family, education, hobbies, internships, work experience (if relevant), general
knowledge, etc.
=========================================
So here are the top 50 Most probable TCS Interview Questions
What is your strongest programming language (Java, ASP, C, C++, VB, HTML, C#, etc.)?
Describe 2 different ways to concatenate two strings
Give syntax for SQL and ORACLE joins.
Write a program to find factorial of a number using recursive function.
In header files whether functions are declared or defined?
How do you print an address?
How is modularity introduced in C++?
Difference between pass by reference and pass by value?
What are macros? What are its advantages and disadvantages?
Give example to differentiate between call by value and call by
Write a program to reverse a string.
What do you mean by Data mining?
Why the usage of pointers in C++ is not recommended?
What is the difference between a Stack and a Queue?
What is function overloading?
What is a class?
What is function overloading and operator overloading?
What do you mean by inline function?
Tell me something about abstract classes?
What do you mean by friend function?
What is the difference between realloc() and free()?
What is full form of SMAC? Discuss few about it.
How would you connect 8 dots with 3 lines?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is cloud computing? Give some of its applications in real world.
One rectangular plate with length 8inches, breadth 11 inches and 2 inches thickness is there.
What is the length of the circular rod with diameter 8 inches and equal to volume of rectangular
plate?
What are stacks? Give some of its applications
What is the difference between an array and a list?
Can you list out the areas in which data structures are applied extensively?
What is data structure?
What are the two integrity rules used in DBMS?
What are the advantages of inheritance?
Tell something about deadlock and how can we prevent dead lock?
What is Insertion sort, selection sort, and bubblesort (basic differences among the functionality of
the three sorts and not the exact algorithms)
What is doubly link list?
Can you declare a private method as static?
Differentiate between copy and default constructor.
You are given a singly linked list. How would you find out if it contains a loop or not without using
temporary space?
What is #ifdef? What is its application?
What is command line argument?
Advantages of a macro over a function?
What are the different storage classes in C?
Which header file should you include if you are to develop a function which can accept variable
number of arguments?
What is debugger?
What is Memory Alignment?
Difference between keyword and identifier.
What is the Big-O Notation?
What is the role of C++ shorthand’s?
What do you understand by garbage collection in Java? Can it be forced to run?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or
not. Find out its factors.
=========================================
Technical Interview:
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++?
HR Interview:
Describe your hobbies.
Your working hours might be as long as 14 hrs per day. Do you think you'll be able manage that?
Are you willing to relocate?
According to you, which profile in our organization matches your skills?
========================================
Technical interview:
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.
HR Interview:
Tell us something about yourself.
Was asked to give an approach the below problem:
"Let's say that you have 25 horses, and you want to pick the fastest 3 horses out of those 25. In
each race, only 5 horses can run at the same time because there are only 5 tracks. What is the
minimum number of races required to find the 3 fastest horses without using a stopwatch?"
Do you wish to change your domain? If yes, why?
Describe an experience of yours wherein you were asked to do something which you didn't like
to do and how you handled it?
What are your expectations from the company?
Will you be comfortable relocating?
=========================================
Technical interview:
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is full form of SMAC? Discuss few about it.
What is cloud computing? Give some of its applications in real world.
What are stacks? Give some of its applications.
One rectangular plate with length 8inches,breadth 11 inches and 2 inches thickness is there.
what is the length of the circular rod with diameter 8 inches and equal to volume of rectangular
plate?
How would you connect 8 dots with 3 lines.
HR Interview:
Can you please run us through your resume?
Describe your interests and hobbies.
What do you think are leadership qualities?
How would you measure 4 liters using jugs of 3l and 5l? Give a few solutions to this problem?
Write a program to allot rooms to n students on basis of roll number.
=========================================
Technical interview:
Give the difference between the type casting and automatic type conversion. Also tell a suitable
C++ code to illustrate both.
Can you declare a private method as static?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT)
compiler?
Differentiate between copy and default constructor.
What is #ifdef ? What is its application?
You are given a singly linked list. How would you find out if it contains a loop or not without using
temporary space?
A person was fined for exceeding the speed limit by 10 mph. Another person was also fined for
exceeding the same speed limit by twice the same. If the second person was travelling at a
speed of 45 mph. find the speed limit .
What are different errors encountered while complying?
HR Interview:
Why do you think makes you a suitable candidate for this job?
Why haven’t you received any other offer till now?
You are not as experienced as this position demands. How will you cope with it?
Rate your communication skills and technical skills.
What is your style of management? What irks you the most about your co-workers?
=========================================
Technical interview:
How would you implement two stacks using a single array?
Difference between keyword and identifier.
What is the Big-O Notation?
What do you understand by garbage collection in Java? Can it be forced to run?
What happens if an array goes out-of-bounds?
What is the role of C++ shorthand’s?
HR Interview:
Give a brief introduction of yourself.
Where do you see yourself in 5 years from now?
Do you have any questions for us?
Why should you be hired for this role?
Give an instance when you showed leadership skills.
What do you know about the various competitors of TCS in the market?
=========================================
Technical interview:
Discuss the function of conditional operator, size of operator and comma operator with examples.
Describe friend function & its advantages.
Differentiate between null and void pointers.
Write a program to add three numbers in C++ utilizing classes.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or
not. Find out its factors.
Explain debugger.
What are the different types of sorting? Explain the difference between them.
What is meant by entry controlled loop? What all C++ loops are exit controlled?
HR Interview:
Who was your inspiration behind becoming an Engineer?
You will be required to sign bond of two years as terms of work agreement. Will you be
comfortable with it?
Are you comfortable with relocating?
Who was the founder of TCS? Who is the current CEO of TCS?
Do you think you have quick learning ability?
What is your expectation from us?
How would you react if you are criticized by your manager for your work?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#TCS_2018_MCQ_Coding_questions_must_follow
=====================================
1.MCQ: 
------------------------------------------------------------------
Q1: What is the output of this C code?
#include <stdio.h>
void main()
{
int k = 5;
int *p = &k;
int **m = &p;
printf("%d%d%d\n", k, *p, **p);
}
a) 5 5 5
b) 5 5 junk
c) 5 junk junk
d) Compile time error
------------------------------------------------------------------------------
Q2. Which of the following statements about stdout and stderr are true?
a) They both are the same
b) Run time errors are automatically displayed in stderr
c) Both are connected to the screen by default.
d) stdout is line buffered but stderr is unbuffered.
------------------------------------------------------------------------------
Q3: Given the below statements about C programming language;
1) main() function should always be the first function present in a C program file
2) all the elements of an union share their memory location
3) A void pointer can hold address of any type and can be typcasted to any type
4) A static variable hold random junk value if it is not initialised
Which of the above are correct statements?
A) 2,3
B) 1,2
C) 1,2,3
D) 1,2,3,4
-----------------------------------------------------------------------
Q4 If a function is defined as static, it means
A) The value returned by the function does not change
B) all the variable declared inside the function automatically will be assigned initial value of zero
C) It should be called only within the same source code / program file.
D) None of the other choices as it is wrong to add static prefix to a function
-----------------------------------------------------------------------
Q5: Comment on the below while statement
while (0 == 0) { }
A) It has syntax error as there are no statements within braces {}
B) It will run forever
C) It compares 0 with 0 and since they are equal it will exit the loop immediately
D) It has syntax error as the same number is being compared with itself
--------------------------------------------------------------------
Q6.A pointer variable can be
1. Changed within function. https://www.fresherslive.com/placement-papers/tcs-interview-
questions-answershttps://www.fresherslive.com/placement-papers/tcs-interview-questions-
answers
2. Assigned an integer value.
3. None of these
4. Passed to a function as argument.
----------------------------------------------------------------------
Q7. Which of the following uses structure?
1. Linked Lists
2. Array of structures
3. All of these
4. Binary Tree
------------------------------------------------------------------------
Q8. Strings are character arrays. The last index of it contains the null-terminated character
1. \t
2. \1
3. \0
4. \n
------------------------------------------------------------------------
Q9. Which of the following is a collection of different data types?
1. String
2. Structure
3. Array
4. Files
----------------------------------------------------------------------
Q10. What function should be used to free the memory allocated by calloc() ?
1. free();
2. malloc(variable_name, 0)
3. dealloc();
4. memalloc(variable_name, 0)
-------------------------------------------------------------------------
Q11. In the standard library of C programming language, which of the following header file is
designed for basic mathematical operations?
1. conio.h
2. stdio.h
3. math.h
4. dos.h
Q12. int **ptr; is?
1. Pointer to integer
2. None of these
3. Pointer to pointer
4. Invalid declaration
---------------------------------------------------------------------
Q13. Which of the following special symbol allowed in a variable name?
1. (underscore)
2. - (hyphen)
3. | (pipeline)
4. * (asterisk)
Q14. All keywords in C are in
1. Uppercase letters
2. None of these
3. Lowercase letters
4. Camel Case letters
------------------------------------------------------------
Q15. What should the program below print?
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void myfunc(char** param){
++param;
}
int main(){
char* string = (char*)malloc(64);
strcpy(string, "hello_World");
myfunc(&string);
myfunc(&string);
printf("%s\n", string);
// ignore memory leak for sake of quiz
return 0;
}
1. hello_World
2. ello_World
3. lo_World
4. llo_World
-------------------------------------------
https://www.indiabix.com/placement-papers/tcs/2583
https://www.indiabix.com/placement-papers/tcs/4180
============================================
2.Coding: 
--------------------------------------------
1.Write code for swapping two variables without using 3rd variable. 
2.Write a program to print prime numbers upto 10.
3.Write a program to print the nth fibonacci number 
4.Write a program to print odd number in descending order from 1-10.
5.Write a Program to generate random numbers.
6.Write a program using command line argument to input a word and check whether it is
palindrome or not.
7.Write a C program which will check whether a given number N is prime or not. 
8.Write a program using command line argument to input two number and Calculate the Sum of
numbers.
9.Write a program using command line argument to input a string and print the string in reversed
order
10.Write a program using command line arguments to input a number and find that number is
even or odd
11.Write a program using command line arguments to input two number and find the GCD/HCF
of the number.
12.Write a program using command line arguments to input two number and find the LCM of the
number.
13.Write a program using command line argument to input one number and print the Factorial of
the number.
14.Write a C program using command line arguments which will take numbers as input and Find
the average of the numbers
15.15. Write a program in C using command line argument to input one number and print the
square root of the number without using sqrt().
16.Write a program in C using command line argument to print Your Name Using Command Line
Argument.
17.Write a program in C using command line argument to input one number and print Sum of
digits of number
18.Write a program in C using command line argument, take input as diameter of circle and
calculate the area of circle.
19.Write a program to sort an array into two halves, one half ascending and second half
descending
20.Write a c program to convert binary to decimal using command line arguments?
21.Area of a Triangle(Using Command Line Programming)
22.Calculate length of the Hypotenuse of right angled triangle
23.Find the sum of the digits of a number by command line Arguments?
24.Binary to decimal or rev using Command Line Language
25.Square Root of Prime Number using Command Line Argument
26.Armstrong Number
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

http://placement.freshersworld.com/tcs-technical-interview-questions-and-answers/33122057

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

http://placement.freshersworld.com/tcs-question-papers-and-answers/33140000211

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

http://prepinsta.com/tcs-interview-experience/

http://prepinsta.com/tcs-coding-questions/

http://prepinsta.com/tcs/recruitment-process/

http://prepinsta.com/tcs-english-verbal-questions/

http://prepinsta.com/tcs-technical-questions-computer-science/

http://prepinsta.com/tcs-email-writing/

http://prepinsta.com/tcs/recruitment-pattern/

http://prepinsta.com/tcs-interview/

http://prepinsta.com/tcs-placement-papers/

http://prepinsta.com/tcs-syllabus/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://m4maths.com/placement-puzzles.php?SOURCE=tcs

https://m4maths.com/frequently-asked-placement-questions.php?SOURCE=TCS

https://m4maths.com/placement-puzzles.php?

ISSOLVED=Y&SOURCE=tcs&TOPIC=&SUB_TOPIC=

https://m4maths.com/placement-puzzles.php?

ISSOLVED=&page=452&LPP=20&SOURCE=tcs&MYPUZZLE=&TOPIC=&SUB_TOPIC=
https://m4maths.com/placement-puzzles.php?

ISSOLVED=&page=452&LPP=20&SOURCE=tcs&MYPUZZLE=&TOPIC=&SUB_TOPIC=

https://m4maths.com/frequently-asked-placement-questions.phpSOURCETCS?

SOURCE=Tcs&TOPIC=Logical%20Reasoning&SUB_TOPIC=Number%20Series

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://alpingi.com/tcs-placement-papers-with-solution/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://www.indiabix.com/placement-papers/tcs/2608

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://prep.placementseason.com/companies/tcs/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://www.freshersnow.com/tcs-placement-papers/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://www.campusgate.co.in/2014/07/tcs-latest-placement-papers.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://www.offcampusjobs4u.com/download-tcs-placement-test-question-papers-with-solutions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

http://www.123freshersjobs.com/2015/03/tcs-placement-papers-2015-2016-with.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://blog.oureducation.in/tcs-aptitude-test/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

http://mygeekmonkey.com/tcs-placement-papers.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

https://www.allindiajobs.in/2015/11/tcs-placement-papers-2016-with-solutions.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
https://www.fresherslive.com/placement-papers/tcs-interview-questions-answers

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

ALL THE BEST GUYZ

You might also like