Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • TCS
  • /
  • Programming

Frequently Asked TCS Programming Interview Questions with Answers

TCS Select Another Category Programming Select Another Topic

Company

  • 3i-Infotech 345
  • Accenture 547
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9108
  • Tech Mahindra 500
  • Wipro 1182

TCS Question Topics

    Category (489)

    General Ability (141)

  • General Knowledge (140)
  • HR Interview (122)

  • Interview (119)
  • Logical Reasoning (850)

  • Age Problem (1)
  • Blood Relations (138)
  • Coding Decoding (85)
  • Cryptography (43)
  • Decision Making and Problem Solving (54)
  • Direction Sense (28)
  • General Mental Ability (96)
  • Letter Arrangement (24)
  • Letter Series (20)
  • Logical Sequences (60)
  • Mathematical Reasoning (109)
  • Missing Character (20)
  • Number Series (135)
  • Seating Arrangement (31)
  • Numerical Ability (3071)

  • Age Problem (196)
  • Algebra (164)
  • Alligation or Mixture (18)
  • Area and Volume (112)
  • Arithmetic (216)
  • Averages (82)
  • Boats and Streams (13)
  • Clocks and Calendars (50)
  • Co-ordinate geometry (29)
  • Complex Numbers (10)
  • Data Interpretation (24)
  • Data Sufficiency (11)
  • Geometry (116)
  • Height and Distance (15)
  • LCM and HCF (63)
  • Log and Antilog (10)
  • Number System (438)
  • Percentage (104)
  • Permutation and Combination (335)
  • Pipes and Cistern (6)
  • Probability (304)
  • Profit and Loss (102)
  • Quadratic Equations (16)
  • Ratio and Proportion (97)
  • Sequence and Series (86)
  • Simple & Compound Interest (16)
  • Stock and Shares (7)
  • Time and Work (180)
  • Time Distance and Speed (188)
  • Trigonometry (15)
  • Programming (166)

  • Arrays (23)
  • Basics (13)
  • Database (10)
  • Definition (8)
  • Functions (12)
  • Output (18)
  • Program (30)
  • Puzzles (2)
  • Technical (22)
  • Variables (11)
  • Verbal Ability (87)

  • Antonyms (15)
  • Miscellaneous (16)
  • One Word Substitution (8)
  • Sentence Arrangement (12)
  • Sentence Completion (7)
  • Spotting Errors (5)
  • Synonyms (23)
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (27) UnSolved Question (139)
Pages: 17123456789NextLast
Advertisements

(#M40035220) TCS QUESTION C Programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output of:
#include
int main()
{
int x=40;
{
int x=20;
printf("%d",x);
}
printf("%d",x);
return 0;
}

Asked In TCS Subrata Patra (9 years ago)
Solved Saraswathy Read Solution (6)
Is this Puzzle helpful?   (77)   (12) Submit Your Solution Definition

(#M40023857) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

29. A turtle is crossing a field. What is the total distance (in meters) passed by turtle? Consider the following two statements (X) The average speed of the turtle is 2 meters per minute (Y) Had the turtle walked 1 meter per minute faster than his average speed it would have finished 40 minutes earlier
A) Statement X alone is enough to get the answer
B) Both statements X and Y are needed to get the answer
C) Statement Y alone is enough to get the answer
D) Data inadequate

Asked In TCS sahana (9 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (24)   (7) Submit Your Solution Basics
Advertisements

(#M40165183) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

Predict the output of following code:
main()
{
int a=10,x;
x= a-- + ++a;
printf(ā€œ%dā€,x);
}
1. 19 ​
2. 20​
3. 22
4. 23

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (33)   (8) Submit Your Solution Output

(#M40167102) TCS QUESTION Find Prefix and Postfix for the below Infix statement Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find Prefix and Postfix for the below Infix problem statement:

Infix Expression: 11 + 20/5* (20 - 15)^6^5

A. Prefix Expression: 11 20 15 20 5 - ^^*6 5/+
Postfix Expression: +20 / 11 * 5 - 20 ^^15 6 5
B. Prefix Expression: 11 20 5 20 15 - 6 5^^*/+
Postfix Expression: +11 / 20 * 5^^ - 20 15 6 5
C. Prefix Expression: 11 20 5 20 15 - ^^*/+6 5
Postfix Expression: +11 /^^-20 * 5 20 15 6 5
D. Prefix Expression: +11/20 * 5^^ - 20 15 6 5
Postfix Expression: 11 20 5 20 15 - 6 5^^*/+

Asked In TCS Jax (1 year ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (28)   (14) Submit Your Solution Puzzles

(#M40165159) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

int **ptr; is?
1. Pointer to integer
2. None of these
3. Pointer to pointer
4. Invalid declaration

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (9)   (1) Submit Your Solution Output

(#M40165173) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

Are the expressions arr and &arr same for an array of 10 integers?
A.Yes
B.No

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (37)   (5) Submit Your Solution

(#M40003185) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

A race horse starts chasing a wild pony 3 hours after the pony bolts the stable. The pony runs through the entire country of Alberton. Texas jumping over three streams and crossing four 10 meter roads. The race horse finally catches up with the pony after 5 hours by which time the sun had set and the moon was up in the sky for 4 hours. If the average speed of the race horse is 78 kmph. Then the average speed of the wild pony is --------------- kmph.

Asked In TCS Deepesh goyal (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (19)   (11) Submit Your Solution Program

(#M40035227) TCS QUESTION C Programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output of:
main( )
{
float a = 5, b = 2 ;
int c ;
c = a % b ;
printf ( "%d", c ) ;
}

Asked In TCS Subrata Patra (9 years ago)
Solved Saraswathy Read Solution (23)
Is this Puzzle helpful?   (47)   (20) Submit Your Solution Program

(#M40035221) TCS QUESTION C Programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output of the following program:
void main( )
{
int i = 2, j = 3, k, l ;
float a, b ;
k = i / j * j ;
l = j / i * i ;
a = i / j * j ;
b = j / i * i ;
printf( "%d %d %f %f", k, l, a, b ) ;
}

Asked In TCS Subrata Patra (9 years ago)
Solved Saraswathy Read Solution (8)
Is this Puzzle helpful?   (87)   (39) Submit Your Solution Definition

(#M40165166) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

If a function is defined as static, it means
1. The value returned by the function does not change
2. all the variable declared inside the function automatically will be assigned
initial value of zero
3. It should be called only within the same source code / program file.
4. None of the other choices as it is wrong to add static prefix to a function

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (15)   (2) Submit Your Solution Functions
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (27) UnSolved Question (139)
Pages: 17123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

There is no excellent beauty that has not some strangeness in the proportion.

Sir Francis Bacon

Mathematics is the supreme judge; from its decisions there is no appeal.

Tobias Dantzig

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2476K+Registerd user
  • 1734K+Engineers
  • 742K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com