• 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 : Unsolved Question

TCS Select Another Category Programming 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 (27) UnSolved Question (139)
Pages: 14123456789NextLast
Advertisements

(#M40167099) TCS QUESTION What will be the output of the following Java code? Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output?

public class Main
{
public static int main(String args[])
{
int x = 10;
int y = 10;
if (x^y)
System.out.println(" x is equal to y ");
return 0;
}
}

A. Nothing will print
B. Compile time error
C. x is equal to y
D. Runtime Error​

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (13)   (2) Submit Your Solution Output

(#M40167097) TCS QUESTION Operator Overloading Keep an EYE Keep an eye puzzle Keep an eye puzzle

We cannot overload _______ operator.

A. ::
B. []
C. ()
D. +

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (23)   (1) Submit Your Solution Technical
Advertisements

(#M40167103) TCS QUESTION Find Minimum number of arithmetic operations Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find the minimum number of arithmetic operations required to evaluate below expression

f(P) = 8P^3 + 3P +12

Note - for a given value of P using only one temporary variable.
​

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (65)   (16) Submit Your Solution Output

(#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 (6 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (45)   (13) Submit Your Solution Program

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

Predict the output of following code:
main()
{
int a=b=c=d=10;
//​ error: ‘b’ , ‘c’, ‘d’ undeclared
printf(“%d,%d,%d,%d”,a,b,c,d);
}
1. Error
2. 10,10,10,10
3. GV,GV,GV,10
4. GV,GV,GV,GV

Asked In TCS Ashish (7 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (50)   (12) Submit Your Solution Arrays

(#M40167096) TCS QUESTION SPRAE stands for Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the CORRECT full form of SPRAE - a generic structured testing approach?

A. Specification-Premeditation-Repeatability-Accountability-Evaluation
B. Specification-Programming-Randomization-Accountability-Economy
C. Specification-Programming-Repeatability-Accountability-Economy
D. Specification-Premeditation-Repeatability-Accountability-Economy

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (4)   (1) Submit Your Solution Technical

(#M40167095) TCS QUESTION Guess the output Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output of the following java code?

class Operations
{
protected void getMethods()
{
System.out.println("A");
}
}

public class Main extends Operations
{
protected final void getMethods()
{
System.out.println("B");
}
public static void main(String[] args)
{
Operations obj = new Operations();
obj.getMethods();
}
}

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (4)   (2) Submit Your Solution Output

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

Which of the following statements are correct about 6 used in the program?
int num[6];
num[6]=21;

A)In the first statement 6 specifies a particular element , whereas in the second statement it specifies a array size. B)In both the statements 6 specifies array size C)In the first statement 6 specifies a array size, whereas in the second statement it specifies a particular element of array. D)In the first statement 6 specifies a particular element, whereas in the second statement it specifies a type.

Asked In TCS Devendra Marghade (4 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (52)   (5) Submit Your Solution Arrays

(#M40165507) TCS QUESTION TCS Logical Keep an EYE Keep an eye puzzle Keep an eye puzzle

A Two-dimensional array X(7,9) is stored linearly column-wise in a computer's memory. Each element requires 8 bytes for storage of the value. If the first byte address of X(1,1) is 3000, what would be the last byte address of X(2,3)?
(a) 3247 (b) 3567 (c) 3088 (d) 3225 (e) 3765

Asked In TCS Mehul KOTHARI (7 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (53)   (12) Submit Your Solution Arrays

(#M40167100) TCS QUESTION Which function which accepts string with white spaces? Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following function is used to accept string with white spaces?

A. getStrings();
B. getWhiteSpaceString();
C. scanf();
D. gets();

Asked In TCS Jax (4 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (30)   (3) Submit Your Solution Functions
Keep an EYE (0)TCS Interview Experience (91)
Solved Question (27) UnSolved Question (139)
Pages: 14123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

maths is the study of infinity in life

D . Kalyan Kumar

Language is remarkable, except under the extreme constraints of mathematics and logic, it never can talk only about what it's supposed to talk about but is always spreading around.

Raju Sharma

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 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

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+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