TCS
Company
Logical Reasoning
Number Series
3 persons a,b,c were there A always says truth,B lies on Monday,tusday,&
Wednesday.but C lies on thrusday,Friday & saturday .one day A said”that B & C said to A
that” B said “yesterday way one of the days when I lies”,C said that”yesterday way one of
the days when I lies too”.then which day was that?
Read Solution (Total 8)
-
- the ans is Thursday
A is telling the truth. B is telling truth to A on Thursday that he tells lie on the previous day. and this is truth that B tells lie on Wednesday.
C tells lie on Thursday. So he is lying about what he said to A.
So, only Thursday satisfies the condition because one of B or C have to tell the truth and B is telling the truth. - 9 years agoHelpfull: Yes(3) No(0)
- It must be Thursday. Coz here B is telling truth that Wednesday was the way of his days he lies . but C too told that . C is lying .
- 9 years agoHelpfull: Yes(1) No(0)
- Analysis:
A always tells truth so there is no need of thinking about A.
B Said a statement that could be either true or false.
In case of C is also it is same
Monday to wednesday whose ever statemet we wake the condition is not satisfying. so now we go for thrusday..its yesterday is yednessday(here B told the truth that yesterday he lied. and C lied that he lied on wednesday)
So the day is Thursday.. - 9 years agoHelpfull: Yes(1) No(0)
- Wednesday
if yesterday was Wednesday then today is thursday. on thursays lion tells the truth whereas on thursdays rat tells lies.
therefore, "Yesterday was one of the days which, I tell lyingÂ?" said by lion is true and "Yesterday was one of the days
which I tell lying " said by rat is false...... - 9 years agoHelpfull: Yes(1) No(0)
- let num be abc then
100a+10b+c-495=100c+10b+a
a-c=5-------(1)
we have a+b+c=17-----(2)
from above equations 2a+b=22----(3)
if you check options 863 satisifies above conditions.. - 9 years agoHelpfull: Yes(0) No(0)
- wednesday
- 9 years agoHelpfull: Yes(0) No(0)
- making truth table of
all three of them
we can find ans to be friday - 9 years agoHelpfull: Yes(0) No(0)
- answer is wednesday..
if yesterday was Wednesday then today is thursday. on thursays lion tells the truth whereas on Thursdays rat tells lies.
therefore, "Yesterday was one of the days which, I tell lyingÂ?" said by lion is true and "Yesterday was one of the days
which I tell lying " said by rat is false - 9 years agoHelpfull: Yes(0) No(0)
TCS Other Question
a three digit number, sum of the digit is 17, the sum of square of digits is 109, if it is subtracted wit 495 the number gets reversed, find the three digit number.
A) 683
B) 863
C) 368
D) 686
A robot is programmed to move forward F meters and backwards again, say B meters, in a straight line. The Robot covers 1 meter in T units of time. On Robot's path there is a ditch at a distance FD from initial position in forward direction as well as a ditch at a distance BD from initial position in backward direction. This forward and backward movement is performed repeatedly by the Robot.
Your task is to calculate amount of time taken, before the Robot falls in either ditch, if at all it falls in a ditch.
Input Format:
First line contains total number of test cases, denoted by N
Next N lines, contain a tuple containing 5 values delimited by space
F B T FD BD, where
F denotes forward displacement in meters
B denotes backward displacement in meters
T denotes time taken to cover 1 meter
FD denotes distance from Robot's starting position and the ditch in forward direction
BD denotes distance from Robot's starting position and the ditch in backward direction
Output Format:
For each test case print time taken by the Robot to fall in the ditch and also state which ditch he falls into. Print F for forward and B for backward. Both the outputs must be delimited by whitespace
OR
Print No Ditch if the Robot does not fall in either ditch
Constraints:
First move will always be in forward direction
1 <= N <= 100
forward displacement > 0
backward displacement > 0
time > 0
distance of ditch in forward direction (FD) > 0
distance of ditch in backward direction (BD) > 0
All input values must be positive integers only
Sample Input and Output
SNo. Input Output
1
3
9 4 3 13 10
9 7 1 11 13
4 4 3 8 12
63 F
25 F
No Ditch
2
5
8 4 7 11 22
4 5 4 25 6
4 9 3 6 29
7 10 6 24 12
10 10 1 9 7
133 F
216 B
231 B
408 B
9 F