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

Frequently Asked TCS Programming - Basics Interview Questions with Answers

TCS Select Another Category Basics 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 (0) UnSolved Question (13)
Pages: 212NextLast
Advertisements

(#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

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

What happens when you perform a bitwise operation on these numbers? The result of the expression 4^12 is:
A)2 B)4 C)8 D)12

Asked In TCS Devendra Marghade (2 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (9)   (5) Submit Your Solution Basics
Advertisements

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

What is the output of this C code?
#include
void main()
{
int k = 5;
int *p = &k;
int **m = &p;
printf("%d%d%dn", k, *p, **p);
}
a) 5 5 5
b) 5 5 junk
c) 5 junk junk
d) Compile time error

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (12)   (3) Submit Your Solution Basics

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

Guess the output:
main()
{
printf(“n ks”);
printf(“b mi a”);
printf(“r ha n”);
}
1. ksmiha
2. mis
3. hai ​
4. hamiks

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

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

Predict the output of following code:
main()
{
int a=100,b=300;
if(a>50)
// No braces, so only one immediate statement is part of if
a=200​ ;
b=400;
printf(“%d”,b);
}

1. 400
2. 300
3. 100
4. Error

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (3)   (1) Submit Your Solution Basics

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

What are the 4 basics of OOP?

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

(#M40165469) TCS QUESTION program Keep an EYE Keep an eye puzzle Keep an eye puzzle

How many times is the loop executed in the following program? for (i = 0, j = 10; i <= 100; i++){ j = j * i; }

Asked In TCS narmatha (4 years ago)
Unsolved Read Solution (23)
Is this Puzzle helpful?   (37)   (5) Submit Your Solution Basics

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

Predict the output of following code:
main()
{
if( printf(“Hai”)) // prints content of printf statement and
//takes length of the string for if case
//execution in this case
its 4, So true
printf(“Face”);
else
printf(“Focus”);
}

1. Error
2. HaiFace
3. HaiFocus
4. Face

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

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

Predict the output of following code:
main()
{
if(5,4,3,2,1,0,8,​ 9 ​ ) // Last value of list is considered
printf(“True”);
else
printf(“False”);
}

1. True
2. False
3. True False
4. Error

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

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

Predict the output of following code:
main()
{
if(5,4,3,2,1,​ 0 ​ ) // Last value of list is considered
printf(“True”);
else
printf(“False”);
}
1. True
2. False
3. True False
4. Error

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (7)   (5) Submit Your Solution Basics
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (0) UnSolved Question (13)
Pages: 212NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

I was x years old in the year x^2. (when asked his age.)

Augustus de Morgan

Mathematics is KING of ARTS and QUEEN of SCIENCE...

My_Teacher

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