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

Frequently Asked TCS Programming - Variables Interview Questions with Answers

TCS Select Another Category Variables 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 (1) UnSolved Question (10)
Pages: 212NextLast
Advertisements

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

Predict the output of following code:
main()
{
int a=2;
switch(a)
{
case 1: printf(“one”);
case 2: printf(“Two”);
// Executable code ; No break statement
case 3: printf(“Three”);
default:printf(“Invalid option”);
}
}

1. onetwothree
2. Invalid option
3. one two
4. None of these

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

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

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

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (18)   (5) Submit Your Solution Variables
Advertisements

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

Why reference is not same as a pointer?
A)Reference does not need an explicit dereferencing mechanism B)A reference can never be null C) A reference once established cannot be changed D)All of the above

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

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

How many of the following are invalid
variable name?
NUMBER
first.name
midname. _num ​ 93num
num93
last name ​ nUMBER
4321
1. 5
2. 3
3. 2
4. More than 5

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

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

Predict the output of following code:
main()
{
int a,x=2,3,4,5; // Error because list is not within ( )
a=1,2,3,4,5;
printf(“%d%d”,x,a);
}
1. Error
2. 5,1
3. 2,1
4. 5,5

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

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

All keywords in C are in
1. Uppercase letters
2. None of these
3. Lowercase letters
4. Camel Case letters

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

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

Write a program to swap two numbers without using a temporary
variable.

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (25)
Is this Puzzle helpful?   (31)   (3) Submit Your Solution Variables

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

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 Ashish (5 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (5)   (16) Submit Your Solution Variables

(#M40164911) TCS QUESTION C programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

1.Write a c program to convert binary to decimal
using command line arguments?
2.Write a c program to check whether given no. is palindrome or not?
3. C program to find sum of N prime nos.?

Asked In TCS Cs patel (5 years ago)
Solved ashok Read Solution (14)
Is this Puzzle helpful?   (94)   (16) Submit Your Solution Variables

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

There are 20 balls which are red, blue or green. if 7 balls are green and the sum of red balls and green balls is less than 13, at most how many red balls are there?
a)4
b)5
c)6
d)7

Asked In TCS krishnaprasad TATA (10 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (21)   (5) Submit Your Solution Variables
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (1) UnSolved Question (10)
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

MATHEMATICS IS LIKE TRUE LOVE- A SIMPLE IDEA BUT CAN GET COMPLICATED...

Ricky Gakhar

Mathematics is the heart of the World

SrinivasuluReddy

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