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

Frequently Asked TCS Programming - Database Interview Questions with Answers

TCS Select Another Category Database 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 (10)
Pages: 11
Advertisements

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

In base representation for a rupee 100 paise , then the base 8 represention is ?what is rupee value

Asked In TCS priyanka (9 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (7)   (3) Submit Your Solution Database

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

A three digit number xyz is squared,which of the following could be the last digit of the square so obtained?
a)8 b)3 c)2 d)1

Asked In TCS kundan (10 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (56)   (16) Submit Your Solution Database
Advertisements

(#M40165226) 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", printf(“%d”,543210)));
return 0;
}
1. 54321061
2. 543210
3. 5432101
4. 5432106

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (13)
Is this Puzzle helpful?   (46)   (6) Submit Your Solution Database

(#M40117373) TCS QUESTION What will be the output of this program? Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include

int main() {

int i=5;
i=i++ + i++ + i++ + i++ + i++;
printf("%d
",i);
int j=5;
j=++j + ++j + ++j + ++j + ++j;
printf("%d
",j);

return 0;

}

Asked In TCS Shankha (8 years ago)
Unsolved Read Solution (40)
Is this Puzzle helpful?   (24)   (5) Submit Your Solution Database

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

Which of the following uses structure?
1. Linked Lists
2. Array of structures
3. All of these
4. Binary Tree

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

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

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

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

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

f the solutions of the equation x2 + px + q = 0 are the cubes of the solutions of the equation x2 + mx + 2 = 0, then
•
• p – q = m3
•
• p = m3q
•
• p + q = m3
•
• p = m3 + 6m
•
• p = m3 – 6m

Asked In TCS vaibhav sharma (10 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (5)   (13) Submit Your Solution Database

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

8 6 17 14 35 30 71 _ 143.

Asked In TCS shrishti jain (11 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (9)   (5) Submit Your Solution Database

(#M40032729) TCS QUESTION algorithm_challenge Keep an EYE Keep an eye puzzle Keep an eye puzzle

It is a walk-in-interview setup having an interview room with
one chair and a waiting room with a number of chairs. The interviewer interviews
candidates in the interview room. When the interviewer finishes interviewing a candidate,
he dismisses the candidate and goes to the waiting room to see if there are other
candidates waiting. If there are, he brings one of them to his room and interviews him. If
there are no candidates waiting, he returns to his chair in the interview room and
continues reading his last unfinished magazine. If there are no unfinished magazines, he
starts reading a new magazine. After he finishes reading one full magazine, he goes to
sleep.
Each candidate, when he arrives, looks to see what the interviewer is doing. If the
interviewer is reading a magazine, the candidate waits for the interviewer to finish
reading the current page of the magazine. Then the candidate enters the interview room
and asks the interviewer to interview him. If the interviewer is sleeping, the candidate
wakes him up and then asks the interviewer to interview him. If the interviewer is
interviewing another candidate, the candidate goes to the waiting room. If there is a free
chair in the waiting room, the candidate sits in it and waits his turn. If there is no free
chair, then the candidate leaves.
Based on a naive analysis, the above description should ensure that the walk-ininterview
functions correctly, with the interviewer interviewing any candidate who arrives
until there are no more candidates, and then reading magazines and/or sleeping until the
next candidate arrives. In practice, there are a number of problems that can occur that
are illustrative of general scheduling problems. Please discuss those problems and
provide an algorithm to solve those problems.
Note: There are two doors between the interview room and the waiting room.
Tip: Read literature on the Dining Philosophers problem

Asked In TCS RAVI SHANKAR MAHTO (9 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (18)   (5) Submit Your Solution Database

(#M40032730) TCS QUESTION problem posing challenge Keep an EYE Keep an eye puzzle Keep an eye puzzle

The challenge
You will need to phrase your question in multiple forms. In the first form, you can simply
state your question and solution. You will then need to transform question into a more
abstract form. This form can be thought of as a set of instructions that are required for a
computer to be able to solve a problem. You can also transform your question context in
a way that the solution remains the same. In another form, you can transform the
question formula, by retaining the question context. You can also invert the question so
that the formula is inverted. As you immerse yourself in the challenge, you will notice
that a number of interesting combinations of changes can result in a variety of interesting
questions.
In order to create such questions, you need to ask the following questions
1. How can variables be identified?
2. Are there different types of variables?
3. Are there limits to the values that a variable can take?
4. How are the variables related to each other and to the solution?
5. How can the context of the problem be changed? Can the same solution be
obtained by changing the context of the problem?
6. How can you play with the solution formula?
7. Can the problem be made more interesting and educational by adding relevant
textual content from leading international journals or magazines?
Please read the following steps and the example enclosed by which you will be able to
convert a question into an abstract form
1. A portion of a question is said to be generalized when that portion can be
replaced by a variable which can take a set of well defined values. Identify such
variables in the question statement and replace them with variable names such
as variable1, variable2 etc.
E.g. Consider the question “A train travels at 50 Km/hr. Calculate the time it
takes to travel 500 Km”. The underlined portion can be replaced by
another number(s). Hence that portion of the question is said to be generalized.
Note: In this example, we have chosen only one variable which is the speed of
the train. You may be able to identify many such variables in a question.
2. A variable can be one of the following types: text or a number. If you can think of
other types of variables, do not hesitate to declare and use them.
E.g. The original question is transformed into the second form as “A train travels
at Variable1 Km/hr. Calculate the time it takes to travel 500 Km.” In this example,
Variable1 is a number.
3. Declare the identified variables, its type and the possible values it can take. E.g.
Variable1 is a number and it can take values between 50 and 150.
4. You will then need to represent the solution to the question as a function of the
variables identified.
E.g. Answer: 500/Variable1 hours

Asked In TCS RAVI SHANKAR MAHTO (9 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (3)   (0) Submit Your Solution Database
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (0) UnSolved Question (10)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

Pure mathematics is the world's best game. It is more absorbing than chess, more of a gamble than poker, and lasts longer than Monopoly. It's free. It can be played anywhere - Archimedes did it in a bathtub.

Richard J. Trudeau, Dots and Lines

Do math and you can do anything.

Unknown

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