• 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
  • /
  • Program

TCS Programming - Program Interview Questions with Answers

TCS Select Another Category Program Select Another Topic

Company

  • 3i-Infotech 345
  • Accenture 548
  • 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 9109
  • Tech Mahindra 500
  • Wipro 1182

TCS Question Topics

    Category (489)

    General Ability (144)

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

  • Interview (119)
  • Logical Reasoning (859)

  • Age Problem (1)
  • Blood Relations (140)
  • Coding Decoding (85)
  • Cryptography (43)
  • Decision Making and Problem Solving (55)
  • Direction Sense (28)
  • General Mental Ability (96)
  • Letter Arrangement (25)
  • Letter Series (20)
  • Logical Sequences (62)
  • Mathematical Reasoning (109)
  • Missing Character (20)
  • Number Series (137)
  • Seating Arrangement (32)
  • Numerical Ability (3078)

  • Age Problem (196)
  • Algebra (164)
  • Alligation or Mixture (19)
  • Area and Volume (112)
  • Arithmetic (217)
  • 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 (105)
  • Permutation and Combination (336)
  • Pipes and Cistern (6)
  • Probability (304)
  • Profit and Loss (103)
  • Quadratic Equations (16)
  • Ratio and Proportion (97)
  • Sequence and Series (86)
  • Simple & Compound Interest (17)
  • Stock and Shares (7)
  • Time and Work (181)
  • 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 (91)
Solved Question (12) UnSolved Question (18)
Pages: 3123NextLast
Advertisements

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

Predict the output of this code snippet?

#include
int main()
{
int i = 3;
switch (i)
{
case 0+1: printf(“Cyber”);
break;
case 1+2: printf(“Tecz”);
break;
default: printf(“CyberTecz”);
}
return 0;
}

A)Cyber B)Tecz C)CyberTecz D)Compiler error

Asked In TCS Devendra Marghade (4 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (16)   (8) Submit Your Solution Program

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

Identify the line number in which the error exists?
# include
# include
void main()
{
float a = 100.00;
{
auto float a = 250.14;
{
auto float b = 325;
printf(“n%f %f”, a, b);
b++;
}
a++;
printf(“n%f %f”, a, b);
a++;
}
printf(“n%f”, a);
}

A)line number 5 B)line number 7 C)line number 9 D)line number 14

Asked In TCS Devendra Marghade (4 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (10)   (6) Submit Your Solution Program
Advertisements

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

Is there any difference between following declarations ?
(i) : extern int fu ();
(ii) : int fun();
A)Both are identical B)No difference except ectern int fun(); is probably in another file C)int fun() is overrided with extern int fun(); D)None of these

Asked In TCS Devendra Marghade (4 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (13)   (8) Submit Your Solution Program

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

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 a union share their memory location
3) A void pointer can hold the address of any type and can be type casted to any type
4) A static variable holds random junk value if it is not initialized
Which of the above are correct statements?
1) 2,3 2) 1,2 3) 1,2,3 4) 1,2,3,4

Asked In TCS Devendra Marghade (4 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (2)   (2) Submit Your Solution Program

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

#include
int main()
{
int i,j;
for(i=0;i<5,i++)
i=j=i;
j=0;
printf("%d",j);
}

Asked In TCS Renuka Parmar (5 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (44)   (13) Submit Your Solution Program

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

Output of following program?
#include
int main()
{
printf("%d", printf("%d", 1234));
return 0;
}
1. 12344
2. 12341
3. 11234
4. 41234

Asked In TCS Ashish (7 years ago)
Unsolved Read Solution (18)
Is this Puzzle helpful?   (102)   (19) Submit Your Solution Program

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

Predict the output of following code:
main()
{
printf(“​ %d​ ”,printf(“​ FACE​ ”)); //valid
}
1.FACE4
2. Error
3. Garbage value
4. FACE

Asked In TCS Ashish (7 years ago)
Unsolved Read Solution (23)
Is this Puzzle helpful?   (46)   (12) Submit Your Solution Program

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

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)

Asked In TCS Ashish (7 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (6)   (2) Submit Your Solution Program

(#M40157794) TCS QUESTION box Keep an EYE Keep an eye puzzle Keep an eye puzzle

-1,0 or 2 in box1 and -A in box 2, A,(A-1),(A+1) box3
get A(A-1)(A-1)A in box-2 and in 3 steps,Use all operations

Asked In TCS sudeep (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (17)   (8) Submit Your Solution Program

(#M40153648) TCS QUESTION pattern print Keep an EYE Keep an eye puzzle Keep an eye puzzle

123
12345
1234567
123456789
print this pattern upto 10 terms..

Asked In TCS pratik raj (9 years ago)
Unsolved Read Solution (39)
Is this Puzzle helpful?   (66)   (24) Submit Your Solution Program
Keep an EYE (0)TCS Interview Experience (91)
Solved Question (12) UnSolved Question (18)
Pages: 3123NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

mathematicians are born, not made.

krishnan

Infinity is a floorless room without walls or ceiling.

Unknown

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 4 years ago

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

yash mittal 5 years ago
  • 2531K+Registerd user
  • 1772K+Engineers
  • 759K+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